Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/v0.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
frapposelli committed Feb 26, 2014
2 parents 0cad0ce + 55b5909 commit 55d6c34
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions lib/vagrant-vcloud/action/sync_folders.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,16 @@ def call(env)
env[:machine].communicate.sudo("mkdir -p '#{guestpath}'")
env[:machine].communicate.sudo(
"chown #{ssh_info[:username]} '#{guestpath}'")

# Since Vagrant 1.4 the private key path may be an array
ssh_key_paths = ssh_info[:private_key_path].is_a?(Array) ? ssh_info[:private_key_path] : [ ssh_info[:private_key_path] ]
ssh_keys = ssh_key_paths.map {|p| "-i '#{p}'"}.join(" ")

# Rsync over to the guest path using the SSH info
command = [
"rsync", "--verbose", "--archive", "-z",
"--exclude", ".vagrant/", "--exclude", "Vagrantfile",
"-e", "ssh -p #{ssh_info[:port]} -o StrictHostKeyChecking=no -i '#{ssh_info[:private_key_path]}'",
"-e", "ssh -p #{ssh_info[:port]} -o StrictHostKeyChecking=no #{ssh_keys}",
hostpath,
"#{ssh_info[:username]}@#{ssh_info[:host]}:#{guestpath}"]

Expand All @@ -110,4 +114,4 @@ def call(env)
end
end
end
end
end
2 changes: 1 addition & 1 deletion lib/vagrant-vcloud/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module VagrantPlugins
module VCloud
VERSION = "0.1.1"
VERSION = "0.1.2"
end
end

0 comments on commit 55d6c34

Please sign in to comment.