Class: Kumade::Outputter

Inherits:
Object
  • Object
show all
Defined in:
lib/kumade/outputter.rb

Instance Method Summary collapse

Instance Method Details

#error(message) ⇒ Object



11
12
13
14
# File 'lib/kumade/outputter.rb', line 11

def error(message)
  STDOUT.puts "==> ! #{message}"
  raise Kumade::DeploymentError, message
end

#info(message) ⇒ Object



7
8
9
# File 'lib/kumade/outputter.rb', line 7

def info(message)
  STDOUT.puts "==> #{message}"
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(message)
  STDOUT.puts "==> #{message}"
end