Class: ForgeCLI::Output
- Inherits:
-
Object
- Object
- ForgeCLI::Output
- 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, , output = STDOUT) msg = [] (12 - action.length).times { msg << " " } msg << action.foreground(93, 255, 85) msg << " " msg << output.puts msg.join('') end |