Class: GDK::Command::Cells
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- GDK::Command::Cells
- Defined in:
- lib/gdk/command/cells.rb
Instance Attribute Summary
Attributes inherited from BaseCommand
Instance Method Summary collapse
Methods inherited from BaseCommand
#config, #display_help_message, #help, #initialize, #print_help, #print_ready_message, #ready_messages, validate_config?
Constructor Details
This class inherits a constructor from GDK::Command::BaseCommand
Instance Method Details
#run(args = []) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/gdk/command/cells.rb', line 6 def run(args = []) subcommand = args.shift case subcommand when 'up' up when 'start' start when 'stop' stop when 'restart' restart when 'status' status when 'update' update else return run_in_cell(subcommand, args) if cell_manager.cell_exist?(subcommand) GDK::Output.warn('Usage: gdk cells up') GDK::Output.warn(' gdk cells start|stop|restart') GDK::Output.warn(' gdk cells status') GDK::Output.warn(' gdk cells update') GDK::Output.warn(' gdk cells <cell> <command...>') abort end end |