Class: Smdev::CLI
- Inherits:
-
Object
- Object
- Smdev::CLI
- Defined in:
- lib/smdev.rb
Instance Method Summary collapse
Instance Method Details
#run(args = ARGV) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/smdev.rb', line 14 def run(args = ARGV) command = args.shift || 'help' subcommand = args.shift case command when 'update' handle_update_command(subcommand) when 'help' display_help else puts "Unknown command: #{command}" display_help end end |