lib/rbfs/rsync.rb in rbfs-0.0.9 vs lib/rbfs/rsync.rb in rbfs-0.0.10
- old
+ new
@@ -12,10 +12,10 @@
def remote_url
"#{@host.ip}:#{@config[:root]}"
end
def mkdir
- args = [remote_url, "mkdir", "-p", @config[:root]]
+ args = [@host.ip, "mkdir", "-p", @config[:root]]
command("ssh", args)
end
def rsync
args = ["-ae", "ssh", "--delete", @config[:root], remote_url]