lib/amp/support/support.rb
##
# If the string is the name of a command, run it. Else,
# raise hell.
# 
# @param [Hash] options hash of the options for the command
# @param [Array] args array of extra args
# @return [Amp::Command] the command which will be run
If the string is the name of a command, run it. Else,
raise hell.
If the string is the name of a command run it . Else raise hell .
def run(options={}, args=[])
    if cmd = Amp::Command[self]
      cmd.run options, args
    else
      raise "No such command #{self}"
    end
  end
def run ( options = { } , args = [ ] ) if cmd = Amp :: Command [ self ] cmd . run options , args else raise "No such command #{self}" end end
If the string is the name of a command, run it.
If the string is the name of a command run it .
the command which will be run
the command which will be run
Amp::Command
options
<not_specific>
args
<not_specific>
<not_specific>
args array of extra args
args array of extra args