Class: Resedit::ShellCommand

Inherits:
AppCommand show all
Defined in:
lib/resedit/app/std_commands.rb

Instance Attribute Summary

Attributes inherited from AppCommand

#names, #ohash, #opts, #params, #type

Instance Method Summary collapse

Methods inherited from AppCommand

#addOption, #addParam, #log, #logd, #loge, #parseParams, #run

Constructor Details

#initializeShellCommand

Returns a new instance of ShellCommand.



94
95
96
97
# File 'lib/resedit/app/std_commands.rb', line 94

def initialize
    super(['shell'])
    addParam('shell', 'shell name', "")
end

Instance Method Details

#job(params) ⇒ Object



98
99
100
# File 'lib/resedit/app/std_commands.rb', line 98

def job(params)
    App::get().setShell(params['shell'])
end