Class | Fission::Action::ShellExecutor |
In: |
lib/fission/action/shell_executor.rb
|
Parent: | Object |
Internal: Create a new ShellExecutor object.
cmd - Command to execute as a String
Examples:
Fission::Action::ShellExecutor.new 'ls /var/log'
Returns a new Fission::Action::ShellExecutor object.
Internal: Executes the command in the shell. The command will be executed using the ruby ’`’ method.
Examples:
@executor.execute
Returns a Hash with two keys. The key ‘output’ will contain the output from the command. The key ‘process_status’ will conatian a standard ruby Process::Status object.