Class: Contraption::CommandSelector
- Inherits:
-
Object
- Object
- Contraption::CommandSelector
- Defined in:
- lib/contraption/command_selector.rb
Class Method Summary collapse
Class Method Details
.go(args) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/contraption/command_selector.rb', line 10 def go args case args.first when 'diagnose' args.shift Diagnoser when 'generate' args.shift Generator when 'preview' args.shift Previewer else Runner end.send("new", Options.new(args)).run! end |