Class: Orbacle::CommandLineInterface
- Inherits:
-
Object
- Object
- Orbacle::CommandLineInterface
- Defined in:
- lib/orbacle/command_line_interface.rb
Defined Under Namespace
Classes: Options
Instance Method Summary collapse
Instance Method Details
#call(args) ⇒ Object
47 48 49 50 51 52 53 |
# File 'lib/orbacle/command_line_interface.rb', line 47 def call(args) = Options.new OptionParser.new do |parser| .(parser) end.parse!(args) call_command(args[0], ) end |
#call_command(command, options) ⇒ Object
55 56 57 58 59 60 61 62 |
# File 'lib/orbacle/command_line_interface.rb', line 55 def call_command(command, ) case command when 'index' then index() when 'file-server' then file_server() when 'generate-datajs' then generate_datajs() else no_command end end |