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?).

options

A hash containing the parsed commandline options. For example, '--foo=bar' will be converted into { :foo => 'bar' }. See the Cri::OptionParser documentation for details.

arguments

An array of strings representing the commandline arguments given to this command.

Raises:

  • (NotImplementedError)


58
59
60
# File 'lib/SANStore/cri/command.rb', line 58

def run(options, arguments)
  raise NotImplementedError.new("Command subclasses should override #run")
end