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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4117f71f6469b9f328afbfcc926054dd2c3b1751
4
- data.tar.gz: db01eb256c20cb008295fedad381169c4b35a950
3
+ metadata.gz: 08a9bd78db6685783f4ad671ab49cc1992542488
4
+ data.tar.gz: 6298d89a58384cd7d43ead3cb66e325eb82d3e80
5
5
  SHA512:
6
- metadata.gz: b298fe657fb8ee55ab6919a0531f19472b1024f541b22e454fa5a3dd56ccf125b3309b737ad915c220d4e5449b91c8ee3d2d2bd581bd05506717ade64b7a03e8
7
- data.tar.gz: 1782ff3141f6e2a1eebc070358cfd2dde42ed33a5d878eb1c0bd8320f72288d0a101505fd610cf2651a92ac996d425dcc2daaef98c0c26ad511fcd714d64a037
6
+ metadata.gz: 8cfb74f1c9716f025d5bfa31f525d58627ba7e9bd10f8da82b63b5adb40ce4dab8ffcef7ee14cb8765a92d5642456066dc0bbcc59b16ae32545509240ad04331
7
+ data.tar.gz: a99663667301e9217a885ed5bf1a2921933ca119fd0ab9103bca7be21ca899d4acca8702b0375d6dd6ffb600ef887897713af2315230beb11906d6f30127c458
data/.gitignore CHANGED
@@ -0,0 +1 @@
1
+ /pkg/
data/Gemfile.lock CHANGED
@@ -24,7 +24,7 @@ GIT
24
24
  PATH
25
25
  remote: .
26
26
  specs:
27
- vagrant-instant-rsync-auto (0.1.0)
27
+ vagrant-instant-rsync-auto (0.1.1)
28
28
 
29
29
  GEM
30
30
  remote: https://rubygems.org/
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 << '--no-owner' unless args.include?('--owner') || args.include?('-o')
210
- args << '--no-group' unless args.include?('--group') || args.include?('-g')
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]
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module InstantRsyncAuto
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-instant-rsync-auto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Rouge