Class: Percheron::Actions::ExecLocal
- Inherits:
-
Object
- Object
- Percheron::Actions::ExecLocal
- Includes:
- Base
- Defined in:
- lib/percheron/actions/exec_local.rb
Instance Method Summary collapse
- #execute! ⇒ Object
-
#initialize(unit, scripts, description) ⇒ ExecLocal
constructor
A new instance of ExecLocal.
Methods included from Base
#base_dir, #in_working_directory
Constructor Details
#initialize(unit, scripts, description) ⇒ ExecLocal
8 9 10 11 12 |
# File 'lib/percheron/actions/exec_local.rb', line 8 def initialize(unit, scripts, description) @unit = unit @scripts = scripts @description = description end |
Instance Method Details
#execute! ⇒ Object
14 15 16 17 18 |
# File 'lib/percheron/actions/exec_local.rb', line 14 def execute! results = [] results << execute_scripts! results.compact.empty? ? nil : unit end |