Module: Radiant::Extension::Script

Defined in:
lib/radiant/extension/script.rb

Defined Under Namespace

Modules: Util Classes: Help, Info, Install, Uninstall

Class Method Summary collapse

Class Method Details

.execute(args) ⇒ Object



258
259
260
261
262
263
264
265
266
# File 'lib/radiant/extension/script.rb', line 258

def execute(args)
  command = args.shift || 'help'
  begin
    const_get(command.camelize).new(args)
  rescue ArgumentError => e
    puts e.message
    Help.new [command]
  end
end