Method: Cri::Command#run
- Defined in:
- lib/SANStore/cri/command.rb
#run(options, arguments) ⇒ Object
Executes the command. Subclasses must implement this method (obviously... what's the point of a command that can't be run?).
optionsA hash containing the parsed commandline options. For example, '--foo=bar' will be converted into { :foo => 'bar' }. See the Cri::OptionParser documentation for details.
argumentsAn array of strings representing the commandline arguments given to this command.
58 59 60 |
# File 'lib/SANStore/cri/command.rb', line 58 def run(, arguments) raise NotImplementedError.new("Command subclasses should override #run") end |