lib/percheron/actions/exec_local.rb in percheron-0.7.16 vs lib/percheron/actions/exec_local.rb in percheron-0.8.0
- old
+ new
@@ -1,11 +1,10 @@
require 'open3'
module Percheron
module Actions
class ExecLocal
-
include Base
def initialize(unit, scripts, description)
@unit = unit
@scripts = scripts
@@ -24,10 +23,10 @@
def execute_scripts!
$logger.debug "Executing #{description} scripts '#{scripts.inspect}' locally"
scripts.each do |script|
in_working_directory(base_dir) do
- execute_command!('/bin/sh -x %s 2>&1' % Pathname.new(File.expand_path(script)))
+ execute_command!('/bin/sh -x %s 2>&1' % [ Pathname.new(File.expand_path(script)) ])
end
end
end
def execute_command!(command)