vagrant-bindfs 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/vagrant-bindfs/bindfs.rb +1 -1
- data/lib/vagrant-bindfs/bindfs/folder.rb +4 -5
- data/lib/vagrant-bindfs/bindfs/option_definitions.json +2 -0
- data/lib/vagrant-bindfs/bindfs/option_set.rb +5 -6
- data/lib/vagrant-bindfs/bindfs/validators/config.rb +2 -2
- data/lib/vagrant-bindfs/vagrant/actions/installer.rb +2 -2
- data/lib/vagrant-bindfs/vagrant/actions/mounter.rb +4 -4
- data/lib/vagrant-bindfs/vagrant/config.rb +8 -10
- data/lib/vagrant-bindfs/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fa28f942676808592e86a1fbad388ad70006aeda091b39486b3d75165292cc2
|
4
|
+
data.tar.gz: 21393b9f50debe7e6033643ebe68417652d3197217e9ecfb530cc2ed505a6923
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d792f4f486dab52ea65ca6a7bf2cfe8f4967449d8a1f88a185b21876a1107360f004111a45b1c7d36d6cda8a7dda62b1b17ae612f77016f408f373d58a48d03d
|
7
|
+
data.tar.gz: bb34d7b15db3c38a6138f925c2fd4a29220cc57912b4dd7055cdb7882a56711ae77c76db8cf5f9f5d7ace5d3eceba155c60d0a73e1a53014c1c39ab85f632094
|
data/README.md
CHANGED
@@ -92,7 +92,7 @@ Remember that Vagrant use `/vagrant` on guest side to automatically share your p
|
|
92
92
|
### bindfs support
|
93
93
|
|
94
94
|
The `bind_folder` config accept any option you can pass to bindfs.
|
95
|
-
vagrant-bindfs is compatible with bindfs from version 1.9 to 1.14.
|
95
|
+
vagrant-bindfs is compatible with bindfs from version 1.9 to 1.14.7.
|
96
96
|
Check [lib/vagrant-bindfs/bindfs/option_definitions.json](https://github.com/gael-ian/vagrant-bindfs/blob/master/lib/vagrant-bindfs/bindfs/option_definitions.json) for a complete list of supported options and default values and read the [bindfs man page](http://bindfs.org/docs/bindfs.1.html) for full documentation.
|
97
97
|
|
98
98
|
Both long arguments and shorthand are supported.
|
@@ -5,11 +5,10 @@ require 'digest/sha1'
|
|
5
5
|
module VagrantBindfs
|
6
6
|
module Bindfs
|
7
7
|
class Folder
|
8
|
-
attr_reader :source
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
attr_reader :hook
|
8
|
+
attr_reader :source,
|
9
|
+
:destination,
|
10
|
+
:options,
|
11
|
+
:hook
|
13
12
|
|
14
13
|
def initialize(hook, source, destination, options = {})
|
15
14
|
@hook = hook
|
@@ -7,6 +7,8 @@
|
|
7
7
|
"mirror": { "long": ["mirror"], "short": ["m"], "type": "option", "since": "0.0.1" },
|
8
8
|
"mirror-only": { "long": ["mirror-only"], "short": ["M"], "type": "option", "since": "0.0.1" },
|
9
9
|
"map": { "long": ["map"], "short": [], "type": "option", "since": "1.10" },
|
10
|
+
"map-passwd": { "long": ["map-passwd"], "short": [], "type": "option", "since": "1.14.6" },
|
11
|
+
"map-group": { "long": ["map-group"], "short": [], "type": "option", "since": "1.14.6" },
|
10
12
|
"uid-offset": { "long": ["uid-offset"], "short": [], "type": "option", "since": "1.13.2" },
|
11
13
|
"gid-offset": { "long": ["gid-offset"], "short": [], "type": "option", "since": "1.13.2" },
|
12
14
|
|
@@ -5,11 +5,10 @@ require 'forwardable'
|
|
5
5
|
module VagrantBindfs
|
6
6
|
module Bindfs
|
7
7
|
class OptionSet
|
8
|
-
attr_reader :version
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
attr_reader :unsupported_options
|
8
|
+
attr_reader :version,
|
9
|
+
:options,
|
10
|
+
:invalid_options,
|
11
|
+
:unsupported_options
|
13
12
|
|
14
13
|
include ::Enumerable
|
15
14
|
extend ::Forwardable
|
@@ -101,7 +100,7 @@ module VagrantBindfs
|
|
101
100
|
return true if [true, 'true', 'True', 'yes', 'Yes', 'y', 'Y', 'on', 'On', 1].include?(value)
|
102
101
|
return false if [false, 'false', 'False', 'no', 'No', 'n', 'N', 'off', 'Off', 0].include?(value)
|
103
102
|
|
104
|
-
!!value
|
103
|
+
!!value
|
105
104
|
end
|
106
105
|
|
107
106
|
class << self
|
@@ -4,9 +4,9 @@ module VagrantBindfs
|
|
4
4
|
module Vagrant
|
5
5
|
module Actions
|
6
6
|
class Mounter
|
7
|
-
attr_reader :app
|
8
|
-
|
9
|
-
|
7
|
+
attr_reader :app,
|
8
|
+
:env,
|
9
|
+
:hook
|
10
10
|
|
11
11
|
include Concerns::Machine
|
12
12
|
include Concerns::Log
|
@@ -61,7 +61,7 @@ module VagrantBindfs
|
|
61
61
|
|
62
62
|
def empty_mountpoint?(folder)
|
63
63
|
return false unless config.force_empty_mountpoints
|
64
|
-
return false if folder.options.key?('o') &&
|
64
|
+
return false if folder.options.key?('o') && folder.options['o'].include?('nonempty')
|
65
65
|
|
66
66
|
true
|
67
67
|
end
|
@@ -9,18 +9,16 @@ module VagrantBindfs
|
|
9
9
|
'perms' => 'u=rwX:g=rD:o=rD'
|
10
10
|
}.freeze
|
11
11
|
|
12
|
-
attr_reader :debug
|
12
|
+
attr_reader :debug,
|
13
|
+
:install_bindfs_from_source,
|
14
|
+
:default_options,
|
15
|
+
:force_empty_mountpoints
|
13
16
|
|
14
|
-
attr_accessor :bindfs_version
|
15
|
-
|
17
|
+
attr_accessor :bindfs_version,
|
18
|
+
:bound_folders,
|
19
|
+
:skip_validations
|
16
20
|
|
17
|
-
|
18
|
-
attr_accessor :bound_folders
|
19
|
-
|
20
|
-
attr_accessor :skip_validations
|
21
|
-
attr_reader :force_empty_mountpoints
|
22
|
-
|
23
|
-
def initialize
|
21
|
+
def initialize # rubocop:disable Lint/MissingSuper
|
24
22
|
@debug = false
|
25
23
|
|
26
24
|
@bindfs_version = UNSET_VALUE
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-bindfs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gaël-Ian Havard
|
8
8
|
- Igor Serebryany
|
9
9
|
- Thomas Boerger
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-
|
13
|
+
date: 2020-09-04 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
|
@@ -86,7 +86,7 @@ licenses:
|
|
86
86
|
metadata:
|
87
87
|
allowed_push_host: https://rubygems.org
|
88
88
|
issue_tracker: https://github.com/gael-ian/vagrant-bindfs/issues
|
89
|
-
post_install_message:
|
89
|
+
post_install_message:
|
90
90
|
rdoc_options: []
|
91
91
|
require_paths:
|
92
92
|
- lib
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
version: 1.3.6
|
103
103
|
requirements: []
|
104
104
|
rubygems_version: 3.0.3
|
105
|
-
signing_key:
|
105
|
+
signing_key:
|
106
106
|
specification_version: 4
|
107
107
|
summary: A Vagrant plugin to automate bindfs mount in the VM
|
108
108
|
test_files:
|