lib/shuttle/strategy.rb in shuttle-deploy-0.2.3 vs lib/shuttle/strategy.rb in shuttle-deploy-0.3.0.beta1
- old
+ new
@@ -273,11 +273,11 @@
ssh.export(k, v)
end
end
end
- def execute_hook(name, allow_failures=false)
+ def execute_hook(name, allow_failures = false)
if config.hooks && config.hooks[name]
execute_commands(config.hooks[name], allow_failures)
end
end
@@ -296,10 +296,10 @@
def changes_at?(path)
result = ssh.run(%{diff -r #{current_path}/#{path} #{release_path}/#{path} 2>/dev/null})
result.success? ? false : true
end
- def execute_commands(commands=[], allow_failures=false)
+ def execute_commands(commands = [], allow_failures = false)
Shuttle::Hook.new(self).run(commands, allow_failures)
end
end
end
\ No newline at end of file