Class: VraptorScaffold::Execution

Inherits:
Object
  • Object
show all
Defined in:
lib/vraptor-scaffold/execution.rb

Instance Method Summary collapse

Instance Method Details

#run(args) ⇒ Object



5
6
7
8
# File 'lib/vraptor-scaffold/execution.rb', line 5

def run(args)
  action = args.shift
  runner_for(action).new.run(args)
end

#runner_for(action) ⇒ Object



10
11
12
# File 'lib/vraptor-scaffold/execution.rb', line 10

def runner_for(action)
  VraptorScaffold::COMMANDS.fetch(action, Runner::CommandsHelp)
end