Class: ForgeCLI::Output

Inherits:
Object
  • Object
show all
Defined in:
lib/forge-cli/output.rb

Class Method Summary collapse

Class Method Details

.write(action, message, output = STDOUT) ⇒ Object



2
3
4
5
6
7
8
9
# File 'lib/forge-cli/output.rb', line 2

def self.write(action, message, output = STDOUT)
  msg = []
  (12 - action.length).times { msg << " " }
  msg << action.foreground(93, 255, 85)
  msg << "  "
  msg << message
  output.puts msg.join('')
end