vagrant-bindfs 0.4.3 → 0.4.4

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: 11ff91b2336c0411e50fd703acd8d5e6ad48661e
4
- data.tar.gz: a124f67f87f2a71bfa52c24f6966a3d74edfbb6e
3
+ metadata.gz: ded7690b53fef5f95c0a62e146e84f1ce44e7543
4
+ data.tar.gz: 4e52e161ec2787628514b10dc1b0b63da29f0a49
5
5
  SHA512:
6
- metadata.gz: 2418de12bcb59623f33bc3d695f4a319c81b84e052e527275fba2b68cc2bdf2c9752d59950781e153ba3d3094128b57a40ba3b6a2f2437603bfab1b98c0f2b04
7
- data.tar.gz: aba7cb77a5c744f28fdf49c3009b96f07e0d2081dc81e277f62392c0b831eb5f817f1873f47e4a4c91d975b38c0ee879ea697673a1a9aea63fa9392a4265c0bc
6
+ metadata.gz: e25b86d19175e5e9c18f61b318aee9ee61fd5249f7df9a879197601d53a0c1838252a7db7ce40d8a7906ddcfa7b15980135584a9a9a3774bccd794174f57711b
7
+ data.tar.gz: 2cfc75f2dbe087ab68628b01ec0012c74c23db968c71d78530221c74c48d05577bea0818b682675b91e48e201cd2839cd8a0d1dd5b9c04beeb6d48b50d6aab77
data/README.md CHANGED
@@ -105,7 +105,7 @@ See [bindfs man page](http://bindfs.org/docs/bindfs.1.html) for details.
105
105
  vagrant-bindfs detects installed version of bindfs, translate option names when needed and ignore an option if it is not supported.
106
106
  As we may have missed something, it will warn you when a binding command fail.
107
107
 
108
- On Debian, SUSE and CentOS (5-6) guest systems, vagrant-bindfs will try to install bindfs automatically if it is not installed.
108
+ On Debian (this includes Ubuntu), SUSE and CentOS (5-6) guest systems, vagrant-bindfs will try to install bindfs automatically if it is not installed.
109
109
  On other system, you'll get warned.
110
110
 
111
111
 
@@ -46,7 +46,7 @@ module VagrantPlugins
46
46
  next
47
47
  end
48
48
 
49
- unless @machine.communicate.test("getent passwd #{command.user.shellescape}")
49
+ unless options[:skip_verify_user] == true || @machine.communicate.test("getent passwd #{command.user.shellescape}")
50
50
  @env[:ui].error I18n.t(
51
51
  "vagrant.config.bindfs.errors.user_not_exist",
52
52
  user: command.user
@@ -54,7 +54,7 @@ module VagrantPlugins
54
54
  next
55
55
  end
56
56
 
57
- unless @machine.communicate.test("getent group #{command.group.shellescape}")
57
+ unless options[:skip_verify_user] == true || @machine.communicate.test("getent group #{command.group.shellescape}")
58
58
  @env[:ui].error I18n.t(
59
59
  "vagrant.config.bindfs.errors.group_not_exist",
60
60
  group: command.group
@@ -160,9 +160,14 @@ module VagrantPlugins
160
160
  end
161
161
 
162
162
  def bindfs_version_lower_than(version)
163
- bindfs_version_command = %{sudo bindfs --version | cut -d" " -f2}
164
- bindfs_version = @machine.communicate.execute(bindfs_version_command);
165
- Gem::Version.new(bindfs_version) < Gem::Version.new(version)
163
+ bindfs_version < Gem::Version.new(version)
164
+ end
165
+
166
+ def bindfs_version
167
+ @bindfs_version ||= begin
168
+ bindfs_version = @machine.communicate.execute(%{sudo -i bindfs --version | cut -d" " -f2});
169
+ Gem::Version.new(bindfs_version)
170
+ end
166
171
  end
167
172
 
168
173
  end
@@ -1,6 +1,6 @@
1
1
  module VagrantPlugins
2
2
  module Bindfs
3
- VERSION = "0.4.3"
4
- SOURCE_VERSION = "1.12.6"
3
+ VERSION = "0.4.4"
4
+ SOURCE_VERSION = "1.13.0"
5
5
  end
6
6
  end
data/locales/en.yml CHANGED
@@ -2,7 +2,7 @@ en:
2
2
  vagrant:
3
3
  config:
4
4
  bindfs:
5
- not_installed: "Bindfs seems to not be installed on the virtual machine"
5
+ not_installed: "Bindfs seems to not be installed on the virtual machine, installing now"
6
6
  not_loaded: "Fuse kernel module seems to be not loaded, trying to load it"
7
7
  already_mounted: "There's already a bindfs mount to destination %{dest}"
8
8
  status:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-bindfs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gaël-Ian Havard
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-08-31 00:00:00.000000000 Z
13
+ date: 2015-11-29 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: A Vagrant plugin to automate bindfs mount in the VM. This allow you to
16
16
  change owner, group and permissions on files and, for example, work around NFS share