Module: HeadChef::UI
- Defined in:
- lib/head_chef/ui.rb
Instance Method Summary collapse
- #error(message, color = :red) ⇒ Object
- #info(message, color = :cyan) ⇒ Object
- #mute! ⇒ Object
- #unmute! ⇒ Object
Instance Method Details
#error(message, color = :red) ⇒ Object
11 12 13 14 |
# File 'lib/head_chef/ui.rb', line 11 def error(, color = :red) = set_color(, *color) if color super() end |
#info(message, color = :cyan) ⇒ Object
16 17 18 19 |
# File 'lib/head_chef/ui.rb', line 16 def info(, color = :cyan) = set_color(, *color) if color super() 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 |