Class: Kumade::Outputter
- Inherits:
-
Object
- Object
- Kumade::Outputter
- Defined in:
- lib/kumade/outputter.rb
Instance Method Summary collapse
- #error(message) ⇒ Object
- #info(message) ⇒ Object
- #say_command(command) ⇒ Object
- #success(message) ⇒ Object
Instance Method Details
#error(message) ⇒ Object
11 12 13 14 |
# File 'lib/kumade/outputter.rb', line 11 def error() STDOUT.puts "==> ! #{}" raise Kumade::DeploymentError, end |
#info(message) ⇒ Object
7 8 9 |
# File 'lib/kumade/outputter.rb', line 7 def info() STDOUT.puts "==> #{}" end |
#say_command(command) ⇒ Object
16 17 18 19 |
# File 'lib/kumade/outputter.rb', line 16 def say_command(command) prefix = " " * 8 STDOUT.puts "#{prefix}#{command}" end |
#success(message) ⇒ Object
3 4 5 |
# File 'lib/kumade/outputter.rb', line 3 def success() STDOUT.puts "==> #{}" end |