Class: VraptorScaffold::Execution

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) run(args)



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

- (Object) runner_for(action)



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

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