Module: Chimps::Commands::ClassMethods

Defined in:
lib/chimps-cli/commands.rb

Instance Method Summary collapse

Instance Method Details

#commandChimps::Command

Create a new command from the given command_name. The resulting command will be initialized but will not have been executed.

Returns:



22
23
24
25
26
# File 'lib/chimps-cli/commands.rb', line 22

def command
  return unless Chimps.config.command
  # Chimps.config.command_settings.resolve!
  Chimps::Commands.class_for(Chimps.config.command_name).new(Chimps.config.command_settings)
end