vagrant-bindfs 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/vagrant-bindfs/bindfs.rb +1 -1
- data/lib/vagrant-bindfs/bindfs/command.rb +18 -9
- data/lib/vagrant-bindfs/bindfs/option_definitions.json +4 -0
- data/lib/vagrant-bindfs/bindfs/option_set.rb +0 -1
- data/lib/vagrant-bindfs/vagrant/actions/mounter.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/config.rb +8 -7
- data/lib/vagrant-bindfs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b44e609392e7b300f9aefcd61d6afa5cc943425d
|
4
|
+
data.tar.gz: 1135fcbae549d91466d5a2831572265cceceb64c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c79b60b20d2cfe92e2c8d48f58f3bf29ff5166bcf54f2f888549c25454d59639539d2fa001f5763d244890f628370f66ea0e941469bfb30daf8714bc8d6aee61
|
7
|
+
data.tar.gz: 598c3cf093444f9c2fcde064ac7d3bfcefec6ce376141bb931a07c9f62d708ce2416472b68245a3a3089e206cfd2a4f56f4d60befbbc018c636e0d4e14e8dce3
|
data/README.md
CHANGED
@@ -23,17 +23,26 @@ module VagrantBindfs
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def format_argument(name, value)
|
26
|
-
|
26
|
+
send("format_#{argument_type(name)}", name, value)
|
27
|
+
end
|
28
|
+
|
29
|
+
def format_flag(name, value)
|
30
|
+
return unless !!value
|
31
|
+
compatible_name = argument_compatible_name(name)
|
32
|
+
(argument_shorthand_only?(name) ? "-#{compatible_name}" : "--#{compatible_name}")
|
33
|
+
end
|
34
|
+
|
35
|
+
def format_option(name, value)
|
27
36
|
compatible_name = argument_compatible_name(name)
|
37
|
+
(argument_shorthand_only?(name) ? "-#{compatible_name} #{value}" : "--#{compatible_name}=#{value}")
|
38
|
+
end
|
39
|
+
|
40
|
+
def argument_type(name)
|
41
|
+
argument_definition(name)['type']
|
42
|
+
end
|
28
43
|
|
29
|
-
|
30
|
-
|
31
|
-
return "--#{compatible_name}"
|
32
|
-
end
|
33
|
-
if definition['type'] == 'option'
|
34
|
-
return "-#{compatible_name} #{value}" if definition['long'].empty? # Shorthand only options
|
35
|
-
return "--#{compatible_name}=#{value}"
|
36
|
-
end
|
44
|
+
def argument_shorthand_only?(name)
|
45
|
+
argument_definition(name)['long'].empty?
|
37
46
|
end
|
38
47
|
|
39
48
|
def argument_definition(name)
|
@@ -39,6 +39,10 @@
|
|
39
39
|
"xattr-ro": { "long": ["xattr-ro"], "short": [], "type": "flag", "since": "0.0.1" },
|
40
40
|
"xattr-rw": { "long": ["xattr-rw"], "short": [], "type": "flag", "since": "0.0.1" },
|
41
41
|
|
42
|
+
// Other file operations
|
43
|
+
"delete-deny": { "long": ["delete-deny"], "short": [], "type": "flag", "since": "1.13.9" },
|
44
|
+
"rename-deny": { "long": ["rename-deny"], "short": [], "type": "flag", "since": "1.13.9" },
|
45
|
+
|
42
46
|
// Rate limits
|
43
47
|
"read-rate": { "long": ["read-rate"], "short": [], "type": "option", "since": "1.12.6" },
|
44
48
|
"write-rate": { "long": ["write-rate"], "short": [], "type": "option", "since": "1.12.6" },
|
@@ -31,7 +31,7 @@ module VagrantBindfs
|
|
31
31
|
bindfs_version = guest.capability(:bindfs_bindfs_version)
|
32
32
|
bindfs_full_path = guest.capability(:bindfs_bindfs_full_path)
|
33
33
|
|
34
|
-
binded_folders(hook).
|
34
|
+
binded_folders(hook).each_value do |folder|
|
35
35
|
folder.reverse_merge!(config.default_options)
|
36
36
|
folder.to_version!(bindfs_version)
|
37
37
|
|
@@ -3,12 +3,12 @@
|
|
3
3
|
module VagrantBindfs
|
4
4
|
module Vagrant
|
5
5
|
class Config < ::Vagrant.plugin('2', :config)
|
6
|
-
|
6
|
+
attr_reader :debug
|
7
7
|
|
8
8
|
attr_accessor :bindfs_version
|
9
|
-
|
9
|
+
attr_reader :install_bindfs_from_source
|
10
10
|
|
11
|
-
|
11
|
+
attr_reader :default_options
|
12
12
|
attr_accessor :binded_folders
|
13
13
|
|
14
14
|
attr_accessor :skip_validations
|
@@ -20,9 +20,10 @@ module VagrantBindfs
|
|
20
20
|
@install_bindfs_from_source = false
|
21
21
|
|
22
22
|
@binded_folders = {}
|
23
|
-
@default_options = Bindfs::OptionSet.new(nil,
|
24
|
-
|
25
|
-
|
23
|
+
@default_options = Bindfs::OptionSet.new(nil,
|
24
|
+
'force-user' => 'vagrant',
|
25
|
+
'force-group' => 'vagrant',
|
26
|
+
'perms' => 'u=rwX:g=rD:o=rD')
|
26
27
|
|
27
28
|
@skip_validations = []
|
28
29
|
end
|
@@ -75,7 +76,7 @@ module VagrantBindfs
|
|
75
76
|
def validate(_machine)
|
76
77
|
errors = _detected_errors
|
77
78
|
|
78
|
-
binded_folders.
|
79
|
+
binded_folders.each_value do |folder|
|
79
80
|
validator = Bindfs::Validators::Config.new(folder)
|
80
81
|
errors << validator.errors unless validator.valid?
|
81
82
|
end
|
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: 1.0.
|
4
|
+
version: 1.0.10
|
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: 2017-
|
13
|
+
date: 2017-12-01 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: " A Vagrant plugin to automate bindfs mount in the VM. This allow you
|
16
16
|
to change owner, group and permissions on files and, for example, work around NFS
|