Module: Chester::Command
- Defined in:
- lib/chester/command.rb,
lib/chester/commands/base.rb,
lib/chester/commands/brew.rb,
lib/chester/commands/install.rb,
lib/chester/commands/generate.rb
Defined Under Namespace
Classes: Base, Brew, Generate, Install
Class Method Summary
collapse
Class Method Details
.run(command, args) ⇒ Object
9
10
11
|
# File 'lib/chester/command.rb', line 9
def run(command, args)
run_internal(command, args)
end
|
.run_internal(command, args) ⇒ Object
13
14
15
16
17
|
# File 'lib/chester/command.rb', line 13
def run_internal(command, args)
klass = eval("Chester::Command::#{command.capitalize}")
runner = klass.new(args)
runner.send(:index)
end
|