lib/cloudstrap/hook.rb in cloudstrap-0.48.0.pre vs lib/cloudstrap/hook.rb in cloudstrap-0.48.2.pre

- old
+ new

@@ -37,12 +37,13 @@ def upload! return false unless exists? [local, remote].tap do |local_file, remote_file| - ssh.to(host) { + ssh.to(host) do execute :mkdir, '-p', File.dirname(remote_file) - upload! local_file, remote_file } + upload! local_file, remote_file + end end end def execute! return true unless enabled?