Method: Convoy::Formatter::Commands.command_for
- Defined in:
- lib/convoy/formatter/commands.rb
.command_for(setup, context) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/convoy/formatter/commands.rb', line 7 def command_for(setup, context) if context.empty? GlobalCommand.new(setup) else Command.new(context.last, setup, context) end end |