Method: Shell::Initializer#run_command
- Defined in:
- lib/crane/shell_initializer.rb
#run_command(command, args = []) ⇒ Object
43 44 45 46 47 48 49 |
# File 'lib/crane/shell_initializer.rb', line 43 def run_command command, args = [] command = @command unless command return inexistent_command unless command_exist?(command) require get_command_file(command) command = command.capitalize @command_obj = Crane::Commands.const_get(command).new(@args) end |