vagrant-instant-rsync-auto 0.1.1 → 0.1.2

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: 08a9bd78db6685783f4ad671ab49cc1992542488
4
- data.tar.gz: 6298d89a58384cd7d43ead3cb66e325eb82d3e80
3
+ metadata.gz: 37cc063785c8e541c164342ed6d669b172d4afd4
4
+ data.tar.gz: 0d716695aa373d4b5fdc3ef8e05f0202ae2432d2
5
5
  SHA512:
6
- metadata.gz: 8cfb74f1c9716f025d5bfa31f525d58627ba7e9bd10f8da82b63b5adb40ce4dab8ffcef7ee14cb8765a92d5642456066dc0bbcc59b16ae32545509240ad04331
7
- data.tar.gz: a99663667301e9217a885ed5bf1a2921933ca119fd0ab9103bca7be21ca899d4acca8702b0375d6dd6ffb600ef887897713af2315230beb11906d6f30127c458
6
+ metadata.gz: d3bdd01443480a9f22126b066332530d4aa4d8fb9aac4762ffa1bc5c98db85aeab2b5c1d5ee63bd1abf5e6c72ba4aabdfca8bdfb21abc7e2d3830640aca7e2d1
7
+ data.tar.gz: 1b4c46c75e2d2a54b19376899c679d05dd9e3b129ddb5c0c4a116ea8436424ccb7e8aa49b830c009c1ed52a7a343ab826e2a1a1be0d78caa18492d0b0ddd9745
@@ -0,0 +1,16 @@
1
+ ## 0.1.2 (May 26, 2016)
2
+
3
+ Bugfix release.
4
+
5
+ BUG FIXES:
6
+
7
+ - Fixing a bug with rsync when using zsh on the guest
8
+ - Properly handle the guest being shut down or halting
9
+
10
+ ## 0.1.1 (May 20, 2016)
11
+
12
+ - Properly setting the owner/group of rsynced-files
13
+
14
+ ## 0.1.0 (May 20, 2016)
15
+
16
+ Initial release.
data/LICENSE CHANGED
@@ -1,7 +1,5 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2014 Steven Merrill
4
-
5
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
4
  of this software and associated documentation files (the "Software"), to deal
7
5
  in the Software without restriction, including without limitation the rights
data/README.md CHANGED
@@ -1,11 +1,13 @@
1
1
  # vagrant-instant-rsync-auto
2
2
 
3
3
  An rsync watcher for Vagrant 1.5.1+ that's much faster than the native
4
- `vagrant rsync-auto` command.
4
+ `vagrant rsync-auto` command; especially if you have a decent amount of
5
+ logic in your Vagrantfile and/or plugins that makes the parsing and loading
6
+ of it a bit slow.
5
7
 
6
8
  ## Installation
7
9
 
8
- To get started, you need to have Vagrant 1.5.1 installed on your Linux, Mac, or
10
+ To get started, you need to have Vagrant 1.5.1+ installed on your Linux, Mac, or
9
11
  Windows host machine. To install the plugin, use the following command.
10
12
 
11
13
  ```bash
@@ -17,7 +19,8 @@ vagrant plugin install vagrant-instant-rsync-auto
17
19
  This plugin should behave exactly the same as `vagrant rsync-auto`, and in
18
20
  particular it uses the same configuration. So simply run
19
21
  ```bash
20
- vagrant instant-rsync-auto```
22
+ vagrant instant-rsync-auto
23
+ ```
21
24
  _in lieu_ of your usual `vagrant rsync-auto`, and you should be good to go!
22
25
 
23
26
  Hopefully this will make it into Vagrant proper, there's a pull request opened
@@ -25,8 +28,10 @@ for that: https://github.com/mitchellh/vagrant/pull/7332
25
28
 
26
29
  ## Troubleshooting
27
30
 
28
- This plugin requires rsync >= 3.1.0 on both the host and the guest; you can see
31
+ This plugin requires rsync 3.1.0+ on both the host and the guest; you can see
29
32
  your rsync version with
30
33
  ```bash
31
34
  rsync --version
32
35
  ```
36
+
37
+ (On Mac OS X, rsync can be upgraded with `brew install homebrew/dupes/rsync`)
@@ -184,10 +184,16 @@ module VagrantPlugins
184
184
  next
185
185
  end
186
186
 
187
- ssh_info = opts[:machine].ssh_info
188
187
  begin
188
+ rsync_helper = rsync_helper(opts[:machine], opts[:id], opts[:opts])
189
+
190
+ unless rsync_helper
191
+ # couldn't find SSH info for that machine
192
+ raise Vagrant::Errors::MachineGuestNotReady
193
+ end
194
+
189
195
  start = Time.now
190
- rsync_helper(opts[:machine], opts[:id], opts[:opts]).rsync_single
196
+ rsync_helper.rsync_single
191
197
  finish = Time.now
192
198
  time_spent_msg = "Time spent in rsync: #{finish-start} (in seconds)"
193
199
  @logger.info(time_spent_msg)
@@ -212,7 +212,10 @@ module VagrantPlugins
212
212
  args << '--no-group' unless args.include?('--group') || args.include?('-g')
213
213
  else
214
214
  # requires rsync >= 3.1.0
215
- args << "--chown=#{@opts[:owner]}:#{@opts[:group]}"
215
+ # we don't use --chown because of a bug with zsh's globbing
216
+ # (if using zsh on the guest)
217
+ args << "--usermap='*:#{@opts[:owner]}'"
218
+ args << "--groupmap='*:#{@opts[:group]}'"
216
219
  end
217
220
 
218
221
  # Tell local rsync how to invoke remote rsync with sudo
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module InstantRsyncAuto
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-instant-rsync-auto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Rouge
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-20 00:00:00.000000000 Z
11
+ date: 2016-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -75,6 +75,7 @@ extra_rdoc_files: []
75
75
  files:
76
76
  - ".gitignore"
77
77
  - ".ruby-version"
78
+ - CHANGELOG.md
78
79
  - Gemfile
79
80
  - Gemfile.lock
80
81
  - LICENSE
@@ -106,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
107
  version: '0'
107
108
  requirements: []
108
109
  rubyforge_project:
109
- rubygems_version: 2.4.5.1
110
+ rubygems_version: 2.5.1
110
111
  signing_key:
111
112
  specification_version: 4
112
113
  summary: A faster alternative to `vagrant rsync-auto`