Module: HeadChef::UI

Defined in:
lib/head_chef/ui.rb

Instance Method Summary collapse

Instance Method Details

#error(message, color = :red) ⇒ Object



11
12
13
14
# File 'lib/head_chef/ui.rb', line 11

def error(message, color = :red)
  message = set_color(message, *color) if color
  super(message)
end

#info(message, color = :cyan) ⇒ Object



16
17
18
19
# File 'lib/head_chef/ui.rb', line 16

def info(message, color = :cyan)
  message = set_color(message, *color) if color
  super(message)
end

#mute!Object



3
4
5
# File 'lib/head_chef/ui.rb', line 3

def mute!
  @mute = true
end

#unmute!Object



7
8
9
# File 'lib/head_chef/ui.rb', line 7

def unmute!
  @mute = false
end