vagrant-instant-rsync-auto 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/README.md +8 -0
- data/lib/vagrant-instant-rsync-auto/helper.rb +8 -2
- data/lib/vagrant-instant-rsync-auto/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 08a9bd78db6685783f4ad671ab49cc1992542488
|
4
|
+
data.tar.gz: 6298d89a58384cd7d43ead3cb66e325eb82d3e80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cfb74f1c9716f025d5bfa31f525d58627ba7e9bd10f8da82b63b5adb40ce4dab8ffcef7ee14cb8765a92d5642456066dc0bbcc59b16ae32545509240ad04331
|
7
|
+
data.tar.gz: a99663667301e9217a885ed5bf1a2921933ca119fd0ab9103bca7be21ca899d4acca8702b0375d6dd6ffb600ef887897713af2315230beb11906d6f30127c458
|
data/.gitignore
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
/pkg/
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -22,3 +22,11 @@ _in lieu_ of your usual `vagrant rsync-auto`, and you should be good to go!
|
|
22
22
|
|
23
23
|
Hopefully this will make it into Vagrant proper, there's a pull request opened
|
24
24
|
for that: https://github.com/mitchellh/vagrant/pull/7332
|
25
|
+
|
26
|
+
## Troubleshooting
|
27
|
+
|
28
|
+
This plugin requires rsync >= 3.1.0 on both the host and the guest; you can see
|
29
|
+
your rsync version with
|
30
|
+
```bash
|
31
|
+
rsync --version
|
32
|
+
```
|
@@ -206,8 +206,14 @@ module VagrantPlugins
|
|
206
206
|
# Disable rsync's owner/group preservation (implied by --archive) unless
|
207
207
|
# specifically requested, since we adjust owner/group to match shared
|
208
208
|
# folder setting ourselves.
|
209
|
-
args
|
210
|
-
|
209
|
+
if args.include?('-o') || args.include?('--owner') || args.include?('-g') \
|
210
|
+
|| args.include?('--group') || args.include?('--chown')
|
211
|
+
args << '--no-owner' unless args.include?('-o') || args.include?('--owner')
|
212
|
+
args << '--no-group' unless args.include?('--group') || args.include?('-g')
|
213
|
+
else
|
214
|
+
# requires rsync >= 3.1.0
|
215
|
+
args << "--chown=#{@opts[:owner]}:#{@opts[:group]}"
|
216
|
+
end
|
211
217
|
|
212
218
|
# Tell local rsync how to invoke remote rsync with sudo
|
213
219
|
rsync_path = @opts[:rsync_path]
|