lib/percheron/actions/exec_local.rb in percheron-0.7.6 vs lib/percheron/actions/exec_local.rb in percheron-0.7.7

- old
+ new

@@ -4,24 +4,24 @@ module Actions class ExecLocal include Base - def initialize(container, scripts, description) - @container = container + def initialize(unit, scripts, description) + @unit = unit @scripts = scripts @description = description end def execute! results = [] results << execute_scripts! - results.compact.empty? ? nil : container + results.compact.empty? ? nil : unit end private - attr_reader :container, :scripts, :description + attr_reader :unit, :scripts, :description def execute_scripts! $logger.debug "Executing #{description} scripts '#{scripts.inspect}' locally" scripts.each do |script| in_working_directory(base_dir) do