vagrant-bindfs 1.0.10 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Vagrantfile +6 -5
- data/lib/vagrant-bindfs/bindfs.rb +1 -1
- data/lib/vagrant-bindfs/bindfs/option_set.rb +2 -3
- data/lib/vagrant-bindfs/vagrant/capabilities.json +120 -0
- data/lib/vagrant-bindfs/vagrant/capabilities.rb +11 -91
- data/lib/vagrant-bindfs/vagrant/capabilities/gentoo.rb +13 -0
- data/lib/vagrant-bindfs/vagrant/capabilities/gentoo/bindfs.rb +68 -0
- data/lib/vagrant-bindfs/vagrant/capabilities/gentoo/fuse.rb +18 -0
- data/lib/vagrant-bindfs/vagrant/capabilities/gentoo/package_manager.rb +21 -0
- data/lib/vagrant-bindfs/vagrant/plugin.rb +9 -7
- data/lib/vagrant-bindfs/version.rb +1 -1
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ea2b8920c39f6a2706fb6961e59b10821986ef0
|
4
|
+
data.tar.gz: d03fb93229d6e9bb52b261061a51d18b6a679246
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe917a556f92d71713ca398329d2bd54ff6c7e87023125f14641ac868448d34087dfd887c67b377e9753ca1a3bceacd52dc10484713f94bd869106b5ed17a693
|
7
|
+
data.tar.gz: da6e2822e63a035c565f027247a7931f7b9424e25c365efd54db4ba531b5ae7f6b66b0081f6ef807c8ca03604269ce0d35e1fed421b46dba55d15c4289bde63d
|
data/Vagrantfile
CHANGED
@@ -5,13 +5,14 @@
|
|
5
5
|
|
6
6
|
# Uncomment machines you want to test
|
7
7
|
test_machines = {
|
8
|
-
# debian: { box: "bento/debian-
|
9
|
-
# ubuntu: { box: "bento/ubuntu-
|
10
|
-
# fedora: { box: "bento/fedora-
|
11
|
-
# redhat: { box: "bento/centos-7
|
8
|
+
# debian: { box: "bento/debian-9" },
|
9
|
+
# ubuntu: { box: "bento/ubuntu-17.10" },
|
10
|
+
# fedora: { box: "bento/fedora-26" },
|
11
|
+
# redhat: { box: "bento/centos-7" },
|
12
|
+
# gentoo: { box: "generic/gentoo" },
|
12
13
|
|
13
14
|
# The `vagrant` user group does not exist in this box.
|
14
|
-
# suse: { box: "bento/opensuse-leap-42
|
15
|
+
# suse: { box: "bento/opensuse-leap-42", args: { group: 'users' } },
|
15
16
|
|
16
17
|
# **This box require the Oracle VM VirtualBox Extension Pack for Virtualbox.**
|
17
18
|
# The `vagrant` user group does not exist in this box.
|
@@ -50,9 +50,8 @@ module VagrantBindfs
|
|
50
50
|
normalized_key = key.to_s.tr('_', '-')
|
51
51
|
canonical_name = canonical_option_name(normalized_key)
|
52
52
|
|
53
|
-
|
54
|
-
|
55
|
-
end
|
53
|
+
raise VagrantBindfs::Vagrant::ConfigError.new(:conflicting_options, name: canonical_name) \
|
54
|
+
if normalized.key?(canonical_name)
|
56
55
|
|
57
56
|
normalized[canonical_name] = value
|
58
57
|
normalized
|
@@ -0,0 +1,120 @@
|
|
1
|
+
{
|
2
|
+
// System checks
|
3
|
+
"bindfs_exists_user": {
|
4
|
+
"darwin": "Darwin::SystemChecks",
|
5
|
+
"linux": "Linux::SystemChecks"
|
6
|
+
},
|
7
|
+
"bindfs_exists_group": {
|
8
|
+
"darwin": "Darwin::SystemChecks",
|
9
|
+
"linux": "Linux::SystemChecks"
|
10
|
+
},
|
11
|
+
"bindfs_exists_directory": {
|
12
|
+
"darwin": "All::SystemChecks",
|
13
|
+
"linux": "All::SystemChecks"
|
14
|
+
},
|
15
|
+
"bindfs_exists_mount": {
|
16
|
+
"darwin": "All::SystemChecks",
|
17
|
+
"linux": "All::SystemChecks"
|
18
|
+
},
|
19
|
+
|
20
|
+
// Package manager
|
21
|
+
"bindfs_package_manager_name": {
|
22
|
+
"darwin": "Darwin::PackageManager",
|
23
|
+
"debian": "Debian::PackageManager",
|
24
|
+
"gentoo": "Gentoo::PackageManager",
|
25
|
+
"redhat": "RedHat::PackageManager",
|
26
|
+
"suse": "Suse::PackageManager"
|
27
|
+
},
|
28
|
+
"bindfs_package_manager_installed": {
|
29
|
+
"darwin": "All::PackageManager",
|
30
|
+
"linux": "All::PackageManager"
|
31
|
+
},
|
32
|
+
|
33
|
+
"bindfs_package_manager_install": {
|
34
|
+
"darwin": "Darwin::PackageManager",
|
35
|
+
"linux": "Linux::PackageManager"
|
36
|
+
},
|
37
|
+
"bindfs_package_manager_update": {
|
38
|
+
"darwin": "Darwin::PackageManager",
|
39
|
+
"debian": "Debian::PackageManager",
|
40
|
+
"gentoo": "Gentoo::PackageManager",
|
41
|
+
"redhat": "RedHat::PackageManager",
|
42
|
+
"suse": "Suse::PackageManager"
|
43
|
+
},
|
44
|
+
|
45
|
+
// Fuse
|
46
|
+
"bindfs_fuse_installed": {
|
47
|
+
"darwin": "Darwin::Fuse",
|
48
|
+
"linux": "Linux::Fuse"
|
49
|
+
},
|
50
|
+
"bindfs_fuse_install": {
|
51
|
+
"darwin": "Darwin::Fuse",
|
52
|
+
"debian": "Debian::Fuse",
|
53
|
+
"gentoo": "Gentoo::Fuse",
|
54
|
+
"redhat": "RedHat::Fuse",
|
55
|
+
"suse": "Suse::Fuse"
|
56
|
+
},
|
57
|
+
"bindfs_fuse_loaded": {
|
58
|
+
"darwin": "Darwin::Fuse",
|
59
|
+
"linux": "Linux::Fuse",
|
60
|
+
"ubuntu": "Ubuntu::Fuse"
|
61
|
+
},
|
62
|
+
"bindfs_fuse_load": {
|
63
|
+
"darwin": "Darwin::Fuse",
|
64
|
+
"linux": "Linux::Fuse",
|
65
|
+
"ubuntu": "Ubuntu::Fuse"
|
66
|
+
},
|
67
|
+
|
68
|
+
// Bindfs
|
69
|
+
"bindfs_bindfs_full_path": {
|
70
|
+
"darwin": "All::Bindfs",
|
71
|
+
"linux": "All::Bindfs"
|
72
|
+
},
|
73
|
+
"bindfs_bindfs_installed": {
|
74
|
+
"darwin": "All::Bindfs",
|
75
|
+
"linux": "All::Bindfs"
|
76
|
+
},
|
77
|
+
"bindfs_bindfs_version": {
|
78
|
+
"darwin": "All::Bindfs",
|
79
|
+
"linux": "All::Bindfs"
|
80
|
+
},
|
81
|
+
"bindfs_bindfs_search": {
|
82
|
+
"darwin": "Darwin::Bindfs",
|
83
|
+
"debian": "Debian::Bindfs",
|
84
|
+
"gentoo": "Gentoo::Bindfs",
|
85
|
+
"redhat": "RedHat::Bindfs",
|
86
|
+
"suse": "Suse::Bindfs"
|
87
|
+
},
|
88
|
+
"bindfs_bindfs_install": {
|
89
|
+
"darwin": "Darwin::Bindfs",
|
90
|
+
"debian": "Debian::Bindfs",
|
91
|
+
"gentoo": "Gentoo::Bindfs",
|
92
|
+
"redhat": "RedHat::Bindfs",
|
93
|
+
"suse": "Suse::Bindfs"
|
94
|
+
},
|
95
|
+
"bindfs_bindfs_search_version": {
|
96
|
+
"darwin": "Darwin::Bindfs",
|
97
|
+
"debian": "Debian::Bindfs",
|
98
|
+
"gentoo": "Gentoo::Bindfs",
|
99
|
+
"redhat": "RedHat::Bindfs",
|
100
|
+
"suse": "Suse::Bindfs"
|
101
|
+
},
|
102
|
+
"bindfs_bindfs_install_version": {
|
103
|
+
"darwin": "Darwin::Bindfs",
|
104
|
+
"debian": "Debian::Bindfs",
|
105
|
+
"gentoo": "Gentoo::Bindfs",
|
106
|
+
"redhat": "RedHat::Bindfs",
|
107
|
+
"suse": "Suse::Bindfs"
|
108
|
+
},
|
109
|
+
"bindfs_bindfs_install_compilation_requirements": {
|
110
|
+
"darwin": "Darwin::Bindfs",
|
111
|
+
"debian": "Debian::Bindfs",
|
112
|
+
"gentoo": "Gentoo::Bindfs",
|
113
|
+
"redhat": "RedHat::Bindfs",
|
114
|
+
"suse": "Suse::Bindfs"
|
115
|
+
},
|
116
|
+
"bindfs_bindfs_install_from_source": {
|
117
|
+
"darwin": "All::Bindfs",
|
118
|
+
"linux": "All::Bindfs"
|
119
|
+
}
|
120
|
+
}
|
@@ -11,105 +11,25 @@ module VagrantBindfs
|
|
11
11
|
autoload :Debian, 'vagrant-bindfs/vagrant/capabilities/debian'
|
12
12
|
autoload :Ubuntu, 'vagrant-bindfs/vagrant/capabilities/ubuntu'
|
13
13
|
|
14
|
+
autoload :Gentoo, 'vagrant-bindfs/vagrant/capabilities/gentoo'
|
15
|
+
|
14
16
|
autoload :RedHat, 'vagrant-bindfs/vagrant/capabilities/redhat'
|
15
17
|
|
16
18
|
autoload :Suse, 'vagrant-bindfs/vagrant/capabilities/suse'
|
17
19
|
|
18
20
|
class << self
|
19
21
|
def included(base)
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
base.guest_capability('darwin', 'bindfs_exists_user') { Capabilities::Darwin::SystemChecks }
|
28
|
-
base.guest_capability('linux', 'bindfs_exists_user') { Capabilities::Linux::SystemChecks }
|
29
|
-
|
30
|
-
base.guest_capability('darwin', 'bindfs_exists_group') { Capabilities::Darwin::SystemChecks }
|
31
|
-
base.guest_capability('linux', 'bindfs_exists_group') { Capabilities::Linux::SystemChecks }
|
32
|
-
|
33
|
-
base.guest_capability('darwin', 'bindfs_exists_directory') { Capabilities::All::SystemChecks }
|
34
|
-
base.guest_capability('linux', 'bindfs_exists_directory') { Capabilities::All::SystemChecks }
|
35
|
-
|
36
|
-
base.guest_capability('darwin', 'bindfs_exists_mount') { Capabilities::All::SystemChecks }
|
37
|
-
base.guest_capability('linux', 'bindfs_exists_mount') { Capabilities::All::SystemChecks }
|
38
|
-
end
|
39
|
-
|
40
|
-
def declare_capabilities_for_package_manager!(base)
|
41
|
-
base.guest_capability('darwin', 'bindfs_package_manager_name') { Capabilities::Darwin::PackageManager }
|
42
|
-
base.guest_capability('debian', 'bindfs_package_manager_name') { Capabilities::Debian::PackageManager }
|
43
|
-
base.guest_capability('redhat', 'bindfs_package_manager_name') { Capabilities::RedHat::PackageManager }
|
44
|
-
base.guest_capability('suse', 'bindfs_package_manager_name') { Capabilities::Suse::PackageManager }
|
45
|
-
|
46
|
-
base.guest_capability('darwin', 'bindfs_package_manager_installed') { Capabilities::All::PackageManager }
|
47
|
-
base.guest_capability('linux', 'bindfs_package_manager_installed') { Capabilities::All::PackageManager }
|
48
|
-
|
49
|
-
base.guest_capability('darwin', 'bindfs_package_manager_install') { Capabilities::Darwin::PackageManager }
|
50
|
-
base.guest_capability('linux', 'bindfs_package_manager_install') { Capabilities::Linux::PackageManager }
|
51
|
-
|
52
|
-
base.guest_capability('darwin', 'bindfs_package_manager_update') { Capabilities::Darwin::PackageManager }
|
53
|
-
base.guest_capability('debian', 'bindfs_package_manager_update') { Capabilities::Debian::PackageManager }
|
54
|
-
base.guest_capability('redhat', 'bindfs_package_manager_update') { Capabilities::RedHat::PackageManager }
|
55
|
-
base.guest_capability('suse', 'bindfs_package_manager_update') { Capabilities::Suse::PackageManager }
|
56
|
-
end
|
57
|
-
|
58
|
-
def declare_capabilities_for_fuse!(base)
|
59
|
-
base.guest_capability('darwin', 'bindfs_fuse_installed') { Capabilities::Darwin::Fuse }
|
60
|
-
base.guest_capability('linux', 'bindfs_fuse_installed') { Capabilities::Linux::Fuse }
|
61
|
-
|
62
|
-
base.guest_capability('darwin', 'bindfs_fuse_install') { Capabilities::Darwin::Fuse }
|
63
|
-
base.guest_capability('debian', 'bindfs_fuse_install') { Capabilities::Debian::Fuse }
|
64
|
-
base.guest_capability('redhat', 'bindfs_fuse_install') { Capabilities::RedHat::Fuse }
|
65
|
-
base.guest_capability('suse', 'bindfs_fuse_install') { Capabilities::Suse::Fuse }
|
66
|
-
|
67
|
-
base.guest_capability('darwin', 'bindfs_fuse_loaded') { Capabilities::Darwin::Fuse }
|
68
|
-
base.guest_capability('linux', 'bindfs_fuse_loaded') { Capabilities::Linux::Fuse }
|
69
|
-
base.guest_capability('ubuntu', 'bindfs_fuse_loaded') { Capabilities::Ubuntu::Fuse }
|
70
|
-
|
71
|
-
base.guest_capability('darwin', 'bindfs_fuse_load') { Capabilities::Darwin::Fuse }
|
72
|
-
base.guest_capability('linux', 'bindfs_fuse_load') { Capabilities::Linux::Fuse }
|
73
|
-
base.guest_capability('ubuntu', 'bindfs_fuse_load') { Capabilities::Ubuntu::Fuse }
|
22
|
+
capabilities = JSON.parse(File.read(File.expand_path('../capabilities.json', __FILE__)))
|
23
|
+
capabilities.each do |cap_name, oses|
|
24
|
+
oses.each do |os_name, module_name|
|
25
|
+
mod = module_by_name(module_name)
|
26
|
+
base.guest_capability(os_name.to_s, cap_name.to_s) { mod }
|
27
|
+
end
|
28
|
+
end
|
74
29
|
end
|
75
30
|
|
76
|
-
def
|
77
|
-
|
78
|
-
base.guest_capability('linux', 'bindfs_bindfs_full_path') { Capabilities::All::Bindfs }
|
79
|
-
|
80
|
-
base.guest_capability('darwin', 'bindfs_bindfs_installed') { Capabilities::All::Bindfs }
|
81
|
-
base.guest_capability('linux', 'bindfs_bindfs_installed') { Capabilities::All::Bindfs }
|
82
|
-
|
83
|
-
base.guest_capability('darwin', 'bindfs_bindfs_version') { Capabilities::All::Bindfs }
|
84
|
-
base.guest_capability('linux', 'bindfs_bindfs_version') { Capabilities::All::Bindfs }
|
85
|
-
|
86
|
-
base.guest_capability('darwin', 'bindfs_bindfs_search') { Capabilities::Darwin::Bindfs }
|
87
|
-
base.guest_capability('debian', 'bindfs_bindfs_search') { Capabilities::Debian::Bindfs }
|
88
|
-
base.guest_capability('redhat', 'bindfs_bindfs_search') { Capabilities::RedHat::Bindfs }
|
89
|
-
base.guest_capability('suse', 'bindfs_bindfs_search') { Capabilities::Suse::Bindfs }
|
90
|
-
|
91
|
-
base.guest_capability('darwin', 'bindfs_bindfs_install') { Capabilities::Darwin::Bindfs }
|
92
|
-
base.guest_capability('debian', 'bindfs_bindfs_install') { Capabilities::Debian::Bindfs }
|
93
|
-
base.guest_capability('redhat', 'bindfs_bindfs_install') { Capabilities::RedHat::Bindfs }
|
94
|
-
base.guest_capability('suse', 'bindfs_bindfs_install') { Capabilities::Suse::Bindfs }
|
95
|
-
|
96
|
-
base.guest_capability('darwin', 'bindfs_bindfs_search_version') { Capabilities::Darwin::Bindfs }
|
97
|
-
base.guest_capability('debian', 'bindfs_bindfs_search_version') { Capabilities::Debian::Bindfs }
|
98
|
-
base.guest_capability('redhat', 'bindfs_bindfs_search_version') { Capabilities::RedHat::Bindfs }
|
99
|
-
base.guest_capability('suse', 'bindfs_bindfs_search_version') { Capabilities::Suse::Bindfs }
|
100
|
-
|
101
|
-
base.guest_capability('darwin', 'bindfs_bindfs_install_version') { Capabilities::Darwin::Bindfs }
|
102
|
-
base.guest_capability('debian', 'bindfs_bindfs_install_version') { Capabilities::Debian::Bindfs }
|
103
|
-
base.guest_capability('redhat', 'bindfs_bindfs_install_version') { Capabilities::RedHat::Bindfs }
|
104
|
-
base.guest_capability('suse', 'bindfs_bindfs_install_version') { Capabilities::Suse::Bindfs }
|
105
|
-
|
106
|
-
base.guest_capability('darwin', 'bindfs_bindfs_install_compilation_requirements') { Capabilities::Darwin::Bindfs }
|
107
|
-
base.guest_capability('debian', 'bindfs_bindfs_install_compilation_requirements') { Capabilities::Debian::Bindfs }
|
108
|
-
base.guest_capability('redhat', 'bindfs_bindfs_install_compilation_requirements') { Capabilities::RedHat::Bindfs }
|
109
|
-
base.guest_capability('suse', 'bindfs_bindfs_install_compilation_requirements') { Capabilities::Suse::Bindfs }
|
110
|
-
|
111
|
-
base.guest_capability('darwin', 'bindfs_bindfs_install_from_source') { Capabilities::All::Bindfs }
|
112
|
-
base.guest_capability('linux', 'bindfs_bindfs_install_from_source') { Capabilities::All::Bindfs }
|
31
|
+
def module_by_name(camel_cased_word)
|
32
|
+
camel_cased_word.split('::').inject(self) { |constant, name| constant.const_get(name) }
|
113
33
|
end
|
114
34
|
end
|
115
35
|
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module VagrantBindfs
|
4
|
+
module Vagrant
|
5
|
+
module Capabilities
|
6
|
+
module Gentoo
|
7
|
+
autoload :PackageManager, 'vagrant-bindfs/vagrant/capabilities/gentoo/package_manager'
|
8
|
+
autoload :Fuse, 'vagrant-bindfs/vagrant/capabilities/gentoo/fuse'
|
9
|
+
autoload :Bindfs, 'vagrant-bindfs/vagrant/capabilities/gentoo/bindfs'
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module VagrantBindfs
|
4
|
+
module Vagrant
|
5
|
+
module Capabilities
|
6
|
+
module Gentoo
|
7
|
+
module Bindfs
|
8
|
+
class << self
|
9
|
+
def bindfs_bindfs_search(machine)
|
10
|
+
machine.guest.capability(:bindfs_package_manager_update)
|
11
|
+
machine.communicate.tap do |comm|
|
12
|
+
# Ensure equery is installed
|
13
|
+
comm.sudo('emerge app-portage/gentoolkit')
|
14
|
+
return comm.test("equery -q list -po #{bindfs_package_name}")
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def bindfs_bindfs_install(machine)
|
19
|
+
machine.guest.capability(:bindfs_package_manager_update)
|
20
|
+
allow_bindfs_installation(machine)
|
21
|
+
machine.communicate.sudo("emerge #{bindfs_package_name}")
|
22
|
+
end
|
23
|
+
|
24
|
+
def bindfs_bindfs_search_version(machine, version)
|
25
|
+
machine.guest.capability(:bindfs_package_manager_update)
|
26
|
+
machine.communicate.tap do |comm|
|
27
|
+
# Ensure equery is installed
|
28
|
+
comm.sudo('emerge app-portage/gentoolkit')
|
29
|
+
comm.sudo("equery -q list -po -F '$fullversion' #{bindfs_package_name} || true") do |_, output|
|
30
|
+
output.strip.gsub(/\s+/, ' ').split(' ').each do |package_version|
|
31
|
+
return package_version if !package_version.empty? && !package_version.match(/^#{version}/).nil?
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
false
|
36
|
+
end
|
37
|
+
|
38
|
+
def bindfs_bindfs_install_version(machine, version)
|
39
|
+
machine.guest.capability(:bindfs_package_manager_update)
|
40
|
+
package_version = machine.guest.capability(:bindfs_bindfs_search_version, version)
|
41
|
+
allow_bindfs_installation(machine)
|
42
|
+
machine.communicate.sudo("emerge =#{bindfs_package_name}-#{package_version.shellescape}")
|
43
|
+
end
|
44
|
+
|
45
|
+
def bindfs_bindfs_install_compilation_requirements(machine)
|
46
|
+
machine.guest.capability(:bindfs_package_manager_update)
|
47
|
+
machine.communicate.sudo('emerge wget tar')
|
48
|
+
end
|
49
|
+
|
50
|
+
private
|
51
|
+
|
52
|
+
def bindfs_package_name
|
53
|
+
'sys-fs/bindfs'
|
54
|
+
end
|
55
|
+
|
56
|
+
def allow_bindfs_installation(machine)
|
57
|
+
machine.communicate.sudo <<-SHELL
|
58
|
+
arch=$(equery -q list -po -F '$keywords' #{bindfs_package_name})
|
59
|
+
keywords=$(echo $arch | tr ' ' "\n" | sort | uniq | tr "\n" ' ')
|
60
|
+
echo "#{bindfs_package_name} $keywords" > /etc/portage/package.accept_keywords/bindfs
|
61
|
+
SHELL
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module VagrantBindfs
|
4
|
+
module Vagrant
|
5
|
+
module Capabilities
|
6
|
+
module Gentoo
|
7
|
+
module Fuse
|
8
|
+
class << self
|
9
|
+
def bindfs_fuse_install(machine)
|
10
|
+
machine.guest.capability(:bindfs_package_manager_update)
|
11
|
+
machine.communicate.sudo('emerge sys-fs/fuse')
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module VagrantBindfs
|
4
|
+
module Vagrant
|
5
|
+
module Capabilities
|
6
|
+
module Gentoo
|
7
|
+
module PackageManager
|
8
|
+
class << self
|
9
|
+
def bindfs_package_manager_name(_machine)
|
10
|
+
'emerge'
|
11
|
+
end
|
12
|
+
|
13
|
+
def bindfs_package_manager_update(machine)
|
14
|
+
machine.communicate.sudo('emaint -a sync')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -26,18 +26,20 @@ module VagrantBindfs
|
|
26
26
|
class << self
|
27
27
|
def hooks
|
28
28
|
@hooks ||= begin
|
29
|
-
synced_folders = if ::Vagrant::Action::Builtin.const_defined? :NFS
|
30
|
-
::Vagrant::Action::Builtin::NFS
|
31
|
-
else
|
32
|
-
::Vagrant::Action::Builtin::SyncedFolders
|
33
|
-
end
|
34
|
-
|
35
29
|
{
|
36
|
-
synced_folders:
|
30
|
+
synced_folders: synced_folders_hook,
|
37
31
|
provision: ::Vagrant::Action::Builtin::Provision
|
38
32
|
}
|
39
33
|
end
|
40
34
|
end
|
35
|
+
|
36
|
+
def synced_folders_hook
|
37
|
+
if ::Vagrant::Action::Builtin.const_defined? :NFS
|
38
|
+
::Vagrant::Action::Builtin::NFS
|
39
|
+
else
|
40
|
+
::Vagrant::Action::Builtin::SyncedFolders
|
41
|
+
end
|
42
|
+
end
|
41
43
|
end
|
42
44
|
end
|
43
45
|
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.11
|
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-12-
|
13
|
+
date: 2017-12-20 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
|
@@ -42,6 +42,7 @@ files:
|
|
42
42
|
- lib/vagrant-bindfs/vagrant/actions/concerns/machine.rb
|
43
43
|
- lib/vagrant-bindfs/vagrant/actions/installer.rb
|
44
44
|
- lib/vagrant-bindfs/vagrant/actions/mounter.rb
|
45
|
+
- lib/vagrant-bindfs/vagrant/capabilities.json
|
45
46
|
- lib/vagrant-bindfs/vagrant/capabilities.rb
|
46
47
|
- lib/vagrant-bindfs/vagrant/capabilities/all.rb
|
47
48
|
- lib/vagrant-bindfs/vagrant/capabilities/all/bindfs.rb
|
@@ -56,6 +57,10 @@ files:
|
|
56
57
|
- lib/vagrant-bindfs/vagrant/capabilities/debian/bindfs.rb
|
57
58
|
- lib/vagrant-bindfs/vagrant/capabilities/debian/fuse.rb
|
58
59
|
- lib/vagrant-bindfs/vagrant/capabilities/debian/package_manager.rb
|
60
|
+
- lib/vagrant-bindfs/vagrant/capabilities/gentoo.rb
|
61
|
+
- lib/vagrant-bindfs/vagrant/capabilities/gentoo/bindfs.rb
|
62
|
+
- lib/vagrant-bindfs/vagrant/capabilities/gentoo/fuse.rb
|
63
|
+
- lib/vagrant-bindfs/vagrant/capabilities/gentoo/package_manager.rb
|
59
64
|
- lib/vagrant-bindfs/vagrant/capabilities/linux.rb
|
60
65
|
- lib/vagrant-bindfs/vagrant/capabilities/linux/fuse.rb
|
61
66
|
- lib/vagrant-bindfs/vagrant/capabilities/linux/package_manager.rb
|