vagrant-rsync 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/command.rb +13 -7
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmZhNjg4ODYyZTVjNTM2YmY0YTBhOTA5ODE4MmY3NmE0ZWZlYzU5MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGNiMDI0M2E1Zjk3NjRhNzgyMWUxNzYzMmJiZjY1OTRjN2ZjNDQyYQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTdkNzI1ZmJmZDBkOTNkZmExMGVlYzAxZjc0MGVjYzQ5NmM0ZjE0Njc1NDhm
|
10
|
+
YzVlMjFkM2MyNmM2YThkZjY1MzI5OTYxMDlhNDgwOTVkMDA2ZWI1NzA4NTJm
|
11
|
+
ZDQ0NWIwNzU3YzE0MGM0YTFkODQwMjcyMDRiZmYwMDkxYmFlNmE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzU0YjZlYjhlYTY2NWQ0ODhkNGNkNjA2Y2RiNjU2ZjU2ZjRkMzlkYWJlNDAw
|
14
|
+
YWY1MThmNGIyOWZjYThjYjY4Mzc4MzZmZGI4MmE0NDdiYzkxYjg3ZWFmZDlj
|
15
|
+
MDNmYmJjM2RlNTI4NzcyMTViODU4NjVlYjc5OWJiYWFkYjIyMjk=
|
data/lib/command.rb
CHANGED
@@ -30,16 +30,22 @@ module VagrantPlugins
|
|
30
30
|
guestpath = data[:guestpath]
|
31
31
|
ssh_info = vm.ssh_info
|
32
32
|
|
33
|
-
|
34
|
-
|
33
|
+
rsync_options = "-aze --exclude #{vm.env.root_path}/.vagrant/ "
|
34
|
+
rsync_options << '-vvv' if options[:verbose]
|
35
35
|
|
36
|
-
|
37
|
-
|
36
|
+
command = [
|
37
|
+
"rsync", "--verbose", "--archive", "-z",
|
38
|
+
"--exclude", ".vagrant/",
|
39
|
+
"-e", "ssh -p #{ssh_info[:port]} -o StrictHostKeyChecking=no -i '#{ssh_info[:private_key_path]}'",
|
40
|
+
hostpath,
|
41
|
+
"#{ssh_info[:username]}@#{ssh_info[:host]}:#{guestpath}"]
|
38
42
|
|
39
|
-
command = 'rsync %s --delete %s -e "ssh %s" %s' % [rsync_options, hostpath, ssh_options, ssh_host]
|
40
|
-
puts command if options[:verbose]
|
41
43
|
|
42
|
-
|
44
|
+
if options[:verbose]
|
45
|
+
puts command.join(" ")
|
46
|
+
end
|
47
|
+
|
48
|
+
r = Vagrant::Util::Subprocess.execute(*command)
|
43
49
|
if r.exit_code != 0
|
44
50
|
raise Errors::RsyncError,
|
45
51
|
:guestpath => guestpath,
|
data/lib/version.rb
CHANGED