Class Cri::CommandRunner
In: lib/cri/command_runner.rb
Parent: Object

A command runner is responsible for the execution of a command. Using it is optional, but it is useful for commands whose execution block is large.

Methods

call   new   run  

Attributes

arguments  [R]  @return [Array] The list of arguments
command  [R]  @return [Command] The command
options  [R]  @return [Hash] A hash contain the options and their values

Public Class methods

@param [Hash] options A hash contain the options and their values

@param [Array] arguments The list of arguments

@param [Cri::Command] command The Cri command

Public Instance methods

Runs the command. By default, this simply does the actual execution, but subclasses may choose to add error handling around the actual execution.

@return [void]

Performs the actual execution of the command.

@return [void]

@abstract

[Validate]