Class: Kaisoku::Commands::MapCommand
- Inherits:
-
Object
- Object
- Kaisoku::Commands::MapCommand
- Defined in:
- lib/kaisoku/commands/map_command.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(argv, options) ⇒ MapCommand
constructor
A new instance of MapCommand.
Constructor Details
#initialize(argv, options) ⇒ MapCommand
Returns a new instance of MapCommand.
8 9 10 11 12 |
# File 'lib/kaisoku/commands/map_command.rb', line 8 def initialize(argv, ) @argv = argv @context = RuntimeContext.new() @options = end |
Instance Method Details
#call ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/kaisoku/commands/map_command.rb', line 14 def call subcommand = @argv.shift return build if subcommand == 'build' return export if subcommand == 'export' return import if subcommand == 'import' return hot if subcommand == 'hot' warn 'usage: kaisoku map build|export|import|hot [--adapter NAME] [--map PATH]' 1 end |