Method: Integra.command!

Defined in:
lib/integra.rb

.command!(options = {}) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/integra.rb', line 14

def self.command!(options={})
  @logger = Logger.new
  @config = Config.new(options)

  #
  # When user enters with a path or file as argument, just run it.
  #
  unless Commands.respond_to?(options[:command])
    options[:args] << options[:command]
    options[:command] = :run
  end

  Commands.send(options[:command], options)
end