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
221
222
223
224
225
226
227
228
229
|
# File 'lib/radiant/extension/script.rb', line 221
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
|