Class: DAF::ShellAction

Inherits:
Action
  • Object
show all
Defined in:
lib/daf/actions/shell_action.rb

Overview

An action that executes a shell script

Instance Method Summary collapse

Methods inherited from Action

#activate

Methods included from Configurable

included

Instance Method Details

#invokeObject



15
16
17
18
19
# File 'lib/daf/actions/shell_action.rb', line 15

def invoke
  arguments = self.arguments.value ? " #{self.arguments.value}" : ''
  @results = `#{path.value}#{arguments}`
  $CHILD_STATUS.exitstatus
end