class Fission::Action::ShellExecutor

def execute

object.
The key 'process_status' will conatian a standard ruby Process::Status
The key 'output' will contain the output from the command.
Returns a Hash with two keys.

@executor.execute

Examples:

executed using the ruby '`' method.
Internal: Executes the command in the shell. The command will be
def execute
  { 'output' => `#{@cmd}`, 'process_status' => $? }
end

def initialize(cmd)

Returns a new Fission::Action::ShellExecutor object.

Fission::Action::ShellExecutor.new 'ls /var/log'

Examples:

cmd - Command to execute as a String

Internal: Create a new ShellExecutor object.
def initialize(cmd)
  @cmd = cmd
end