vagrant-bindfs 1.1.8 → 1.2.0
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/CHANGELOG.md +462 -0
- data/README.md +2 -3
- data/Vagrantfile +6 -10
- data/lib/vagrant-bindfs/bindfs/command.rb +1 -1
- data/lib/vagrant-bindfs/bindfs/folder.rb +1 -1
- data/lib/vagrant-bindfs/bindfs/option_definitions.json +2 -0
- data/lib/vagrant-bindfs/bindfs/option_set.rb +2 -2
- data/lib/vagrant-bindfs/bindfs/validators/config.rb +14 -6
- data/lib/vagrant-bindfs/bindfs/validators/runtime.rb +5 -5
- data/lib/vagrant-bindfs/bindfs/validators.rb +1 -1
- data/lib/vagrant-bindfs/bindfs.rb +2 -2
- data/lib/vagrant-bindfs/vagrant/actions/concerns/log.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/actions/concerns/machine.rb +4 -6
- data/lib/vagrant-bindfs/vagrant/actions/concerns.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/actions/installer.rb +8 -3
- data/lib/vagrant-bindfs/vagrant/actions/mounter.rb +5 -2
- data/lib/vagrant-bindfs/vagrant/actions.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/capabilities/all/bindfs.rb +11 -2
- data/lib/vagrant-bindfs/vagrant/capabilities/all/package_manager.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/capabilities/all/system_checks.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/capabilities/all.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/capabilities/darwin/bindfs.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/capabilities/darwin/fuse.rb +3 -3
- data/lib/vagrant-bindfs/vagrant/capabilities/darwin/package_manager.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/capabilities/darwin/system_checks.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/capabilities/darwin.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/capabilities/debian/bindfs.rb +8 -4
- data/lib/vagrant-bindfs/vagrant/capabilities/debian/fuse.rb +2 -2
- data/lib/vagrant-bindfs/vagrant/capabilities/debian/package_manager.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/capabilities/debian.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/capabilities/gentoo/bindfs.rb +22 -12
- data/lib/vagrant-bindfs/vagrant/capabilities/gentoo/fuse.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/capabilities/gentoo/package_manager.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/capabilities/gentoo.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/capabilities/linux/fuse.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/capabilities/linux/package_manager.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/capabilities/linux/system_checks.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/capabilities/linux.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/capabilities/redhat/bindfs.rb +3 -3
- data/lib/vagrant-bindfs/vagrant/capabilities/redhat/fuse.rb +2 -2
- data/lib/vagrant-bindfs/vagrant/capabilities/redhat/package_manager.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/capabilities/redhat.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/capabilities/suse/bindfs.rb +4 -2
- data/lib/vagrant-bindfs/vagrant/capabilities/suse/fuse.rb +2 -2
- data/lib/vagrant-bindfs/vagrant/capabilities/suse/package_manager.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/capabilities/suse.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/capabilities/ubuntu/fuse.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/capabilities/ubuntu.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/capabilities.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/config.rb +1 -1
- data/lib/vagrant-bindfs/vagrant/errors.rb +3 -3
- data/lib/vagrant-bindfs/vagrant/plugin.rb +5 -7
- data/lib/vagrant-bindfs/vagrant.rb +1 -1
- data/lib/vagrant-bindfs/version.rb +1 -1
- data/lib/vagrant-bindfs.rb +1 -1
- data/vagrant-bindfs.gemspec +43 -0
- metadata +18 -13
- data/Rakefile +0 -25
@@ -4,7 +4,7 @@ module VagrantBindfs
|
|
4
4
|
module Vagrant
|
5
5
|
module Actions
|
6
6
|
module Concerns
|
7
|
-
module Machine
|
7
|
+
module Machine # :nodoc:
|
8
8
|
def machine
|
9
9
|
env[:machine]
|
10
10
|
end
|
@@ -14,11 +14,9 @@ module VagrantBindfs
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def bound_folders(hook = nil)
|
17
|
-
@bound_folders ||=
|
18
|
-
|
19
|
-
|
20
|
-
bound
|
21
|
-
end
|
17
|
+
@bound_folders ||= config.bound_folders.each_with_object({}) do |(id, folder), bound|
|
18
|
+
bound[id] = folder if hook.nil? || folder.hook == hook
|
19
|
+
bound
|
22
20
|
end
|
23
21
|
end
|
24
22
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module VagrantBindfs
|
4
4
|
module Vagrant
|
5
5
|
module Actions
|
6
|
-
class Installer
|
6
|
+
class Installer # :nodoc:
|
7
7
|
attr_reader :app,
|
8
8
|
:env
|
9
9
|
|
@@ -91,9 +91,14 @@ module VagrantBindfs
|
|
91
91
|
end
|
92
92
|
|
93
93
|
def install_bindfs_from_source!
|
94
|
-
version = (config.bindfs_version == :latest ? VagrantBindfs::Bindfs::SOURCE_VERSION : config.bindfs_version.to_s)
|
95
94
|
guest.capability(:bindfs_bindfs_install_compilation_requirements)
|
96
|
-
guest.capability(:bindfs_bindfs_install_from_source,
|
95
|
+
guest.capability(:bindfs_bindfs_install_from_source, source_version)
|
96
|
+
end
|
97
|
+
|
98
|
+
def source_version
|
99
|
+
return VagrantBindfs::Bindfs::SOURCE_VERSION if config.bindfs_version == :latest
|
100
|
+
|
101
|
+
config.bindfs_version.to_s
|
97
102
|
end
|
98
103
|
|
99
104
|
def install_from_source?
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module VagrantBindfs
|
4
4
|
module Vagrant
|
5
5
|
module Actions
|
6
|
-
class Mounter
|
6
|
+
class Mounter # :nodoc:
|
7
7
|
attr_reader :app,
|
8
8
|
:env,
|
9
9
|
:hook
|
@@ -87,7 +87,10 @@ module VagrantBindfs
|
|
87
87
|
)
|
88
88
|
|
89
89
|
command = VagrantBindfs::Bindfs::Command.new(folder)
|
90
|
-
comm.sudo(command.to_s(bindfs_full_path),
|
90
|
+
comm.sudo(command.to_s(bindfs_full_path),
|
91
|
+
error_class: VagrantBindfs::Vagrant::Error,
|
92
|
+
error_key: 'bindfs.mount_failed')
|
93
|
+
|
91
94
|
debug(command.to_s(bindfs_full_path))
|
92
95
|
end
|
93
96
|
|
@@ -4,7 +4,7 @@ module VagrantBindfs
|
|
4
4
|
module Vagrant
|
5
5
|
module Capabilities
|
6
6
|
module All
|
7
|
-
module Bindfs
|
7
|
+
module Bindfs # :nodoc:
|
8
8
|
class << self
|
9
9
|
def bindfs_bindfs_full_path(machine)
|
10
10
|
machine.communicate.execute('bash -c "type -P bindfs || true"') do |_, output|
|
@@ -21,7 +21,7 @@ module VagrantBindfs
|
|
21
21
|
|
22
22
|
def bindfs_bindfs_version(machine)
|
23
23
|
bindfs_full_path = machine.guest.capability(:bindfs_bindfs_full_path)
|
24
|
-
|
24
|
+
bindfs_bindfs_version_detection_commands(bindfs_full_path).each do |command|
|
25
25
|
machine.communicate.execute(command) do |_, output|
|
26
26
|
version = output.strip
|
27
27
|
return Gem::Version.new(version) if !version.empty? && Gem::Version.correct?(version)
|
@@ -58,6 +58,15 @@ module VagrantBindfs
|
|
58
58
|
make && \
|
59
59
|
sudo make install
|
60
60
|
SHELL
|
61
|
+
|
62
|
+
protected
|
63
|
+
|
64
|
+
def bindfs_bindfs_version_detection_commands(bindfs_full_path)
|
65
|
+
[
|
66
|
+
%(sudo #{bindfs_full_path} --version | cut -d" " -f2),
|
67
|
+
%(sudo -i #{bindfs_full_path} --version | cut -d" " -f2)
|
68
|
+
]
|
69
|
+
end
|
61
70
|
end
|
62
71
|
end
|
63
72
|
end
|
@@ -4,7 +4,7 @@ module VagrantBindfs
|
|
4
4
|
module Vagrant
|
5
5
|
module Capabilities
|
6
6
|
module All
|
7
|
-
module PackageManager
|
7
|
+
module PackageManager # :nodoc:
|
8
8
|
class << self
|
9
9
|
def bindfs_package_manager_installed(machine)
|
10
10
|
package_manager_name = machine.guest.capability(:bindfs_package_manager_name)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module VagrantBindfs
|
4
4
|
module Vagrant
|
5
5
|
module Capabilities
|
6
|
-
module All
|
6
|
+
module All # :nodoc:
|
7
7
|
autoload :SystemChecks, 'vagrant-bindfs/vagrant/capabilities/all/system_checks'
|
8
8
|
autoload :PackageManager, 'vagrant-bindfs/vagrant/capabilities/all/package_manager'
|
9
9
|
autoload :Bindfs, 'vagrant-bindfs/vagrant/capabilities/all/bindfs'
|
@@ -4,15 +4,15 @@ module VagrantBindfs
|
|
4
4
|
module Vagrant
|
5
5
|
module Capabilities
|
6
6
|
module Darwin
|
7
|
-
module Fuse
|
7
|
+
module Fuse # :nodoc:
|
8
8
|
class << self
|
9
9
|
def bindfs_fuse_installed(machine)
|
10
|
-
machine.communicate.test('test -d /Library/Frameworks/
|
10
|
+
machine.communicate.test('test -d /Library/Frameworks/macFUSE.framework/')
|
11
11
|
end
|
12
12
|
|
13
13
|
def bindfs_fuse_install(machine)
|
14
14
|
machine.guest.capability(:bindfs_package_manager_update)
|
15
|
-
machine.communicate.execute('brew
|
15
|
+
machine.communicate.execute('brew install --cask macfuse')
|
16
16
|
end
|
17
17
|
|
18
18
|
# OSXFuse is automatically loaded.
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module VagrantBindfs
|
4
4
|
module Vagrant
|
5
5
|
module Capabilities
|
6
|
-
module Darwin
|
6
|
+
module Darwin # :nodoc:
|
7
7
|
autoload :SystemChecks, 'vagrant-bindfs/vagrant/capabilities/darwin/system_checks'
|
8
8
|
autoload :PackageManager, 'vagrant-bindfs/vagrant/capabilities/darwin/package_manager'
|
9
9
|
autoload :Fuse, 'vagrant-bindfs/vagrant/capabilities/darwin/fuse'
|
@@ -4,7 +4,7 @@ module VagrantBindfs
|
|
4
4
|
module Vagrant
|
5
5
|
module Capabilities
|
6
6
|
module Debian
|
7
|
-
module Bindfs
|
7
|
+
module Bindfs # :nodoc:
|
8
8
|
class << self
|
9
9
|
def bindfs_bindfs_search(machine)
|
10
10
|
machine.guest.capability(:bindfs_package_manager_update)
|
@@ -16,18 +16,22 @@ module VagrantBindfs
|
|
16
16
|
machine.communicate.sudo('apt-get install -y bindfs')
|
17
17
|
end
|
18
18
|
|
19
|
+
# rubocop:disable Layout/LineLength
|
19
20
|
def bindfs_bindfs_search_version(machine, version)
|
20
21
|
machine.guest.capability(:bindfs_package_manager_update)
|
21
22
|
machine.communicate.tap do |comm|
|
22
23
|
# Ensure aptitude is installed as Ubuntu removed it
|
23
24
|
comm.sudo('apt-get install aptitude')
|
24
|
-
comm.sudo("aptitude versions bindfs | sed -n '/p/,${p}' | sed 's/\s
|
25
|
+
comm.sudo("aptitude versions bindfs | sed -n '/p/,${p}' | sed 's/\s+/ /g' | cut -d' ' -f2") do |_, output|
|
25
26
|
package_version = output.strip
|
26
|
-
|
27
|
+
next false if package_version.empty? || package_version.match(/^#{version}/).nil?
|
28
|
+
|
29
|
+
"bindfs-#{package_version}"
|
27
30
|
end
|
28
31
|
end
|
29
32
|
false
|
30
33
|
end
|
34
|
+
# rubocop:enable Layout/LineLength
|
31
35
|
|
32
36
|
def bindfs_bindfs_install_version(machine, version)
|
33
37
|
machine.guest.capability(:bindfs_package_manager_update)
|
@@ -37,7 +41,7 @@ module VagrantBindfs
|
|
37
41
|
|
38
42
|
def bindfs_bindfs_install_compilation_requirements(machine)
|
39
43
|
machine.guest.capability(:bindfs_package_manager_update)
|
40
|
-
machine.communicate.sudo('apt-get install -y build-essential pkg-config wget tar
|
44
|
+
machine.communicate.sudo('apt-get install -y build-essential pkg-config wget tar libfuse3-dev')
|
41
45
|
end
|
42
46
|
end
|
43
47
|
end
|
@@ -4,11 +4,11 @@ module VagrantBindfs
|
|
4
4
|
module Vagrant
|
5
5
|
module Capabilities
|
6
6
|
module Debian
|
7
|
-
module Fuse
|
7
|
+
module Fuse # :nodoc:
|
8
8
|
class << self
|
9
9
|
def bindfs_fuse_install(machine)
|
10
10
|
machine.guest.capability(:bindfs_package_manager_update)
|
11
|
-
machine.communicate.sudo('apt-get install -y
|
11
|
+
machine.communicate.sudo('apt-get install -y fuse3')
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module VagrantBindfs
|
4
4
|
module Vagrant
|
5
5
|
module Capabilities
|
6
|
-
module Debian
|
6
|
+
module Debian # :nodoc:
|
7
7
|
autoload :PackageManager, 'vagrant-bindfs/vagrant/capabilities/debian/package_manager'
|
8
8
|
autoload :Fuse, 'vagrant-bindfs/vagrant/capabilities/debian/fuse'
|
9
9
|
autoload :Bindfs, 'vagrant-bindfs/vagrant/capabilities/debian/bindfs'
|
@@ -4,30 +4,30 @@ module VagrantBindfs
|
|
4
4
|
module Vagrant
|
5
5
|
module Capabilities
|
6
6
|
module Gentoo
|
7
|
-
module Bindfs
|
7
|
+
module Bindfs # :nodoc:
|
8
8
|
class << self
|
9
9
|
def bindfs_bindfs_search(machine)
|
10
10
|
machine.guest.capability(:bindfs_package_manager_update)
|
11
11
|
machine.communicate.tap do |comm|
|
12
|
-
|
13
|
-
comm.sudo('emerge app-portage/gentoolkit')
|
12
|
+
ensure_equery_is_installed(comm)
|
14
13
|
return comm.test("equery -q list -po #{bindfs_package_name}")
|
15
14
|
end
|
16
15
|
end
|
17
16
|
|
18
17
|
def bindfs_bindfs_install(machine)
|
19
18
|
machine.guest.capability(:bindfs_package_manager_update)
|
20
|
-
|
21
|
-
|
19
|
+
machine.communicate.tap do |comm|
|
20
|
+
allow_bindfs_installation(comm)
|
21
|
+
comm.sudo("emerge #{bindfs_package_name}")
|
22
|
+
end
|
22
23
|
end
|
23
24
|
|
24
25
|
def bindfs_bindfs_search_version(machine, version)
|
25
26
|
machine.guest.capability(:bindfs_package_manager_update)
|
26
27
|
machine.communicate.tap do |comm|
|
27
|
-
|
28
|
-
comm.sudo('emerge app-portage/gentoolkit')
|
28
|
+
ensure_equery_is_installed(comm)
|
29
29
|
comm.sudo("equery -q list -po -F '$fullversion' #{bindfs_package_name} || true") do |_, output|
|
30
|
-
output.strip.gsub(/\s+/, ' ').split
|
30
|
+
output.strip.gsub(/\s+/, ' ').split.each do |package_version|
|
31
31
|
return package_version unless package_version.match(/^#{version}/).nil?
|
32
32
|
end
|
33
33
|
end
|
@@ -38,8 +38,10 @@ module VagrantBindfs
|
|
38
38
|
def bindfs_bindfs_install_version(machine, version)
|
39
39
|
machine.guest.capability(:bindfs_package_manager_update)
|
40
40
|
package_version = machine.guest.capability(:bindfs_bindfs_search_version, version)
|
41
|
-
|
42
|
-
|
41
|
+
machine.communicate.tap do |comm|
|
42
|
+
allow_bindfs_installation(comm)
|
43
|
+
comm.sudo("emerge =#{bindfs_package_name}-#{package_version.shellescape}")
|
44
|
+
end
|
43
45
|
end
|
44
46
|
|
45
47
|
def bindfs_bindfs_install_compilation_requirements(machine)
|
@@ -53,13 +55,21 @@ module VagrantBindfs
|
|
53
55
|
'sys-fs/bindfs'
|
54
56
|
end
|
55
57
|
|
56
|
-
def allow_bindfs_installation(
|
57
|
-
|
58
|
+
def allow_bindfs_installation(communicator)
|
59
|
+
communicator.sudo <<-SHELL
|
58
60
|
arch=$(equery -q list -po -F '$keywords' #{bindfs_package_name})
|
59
61
|
keywords=$(echo $arch | tr ' ' "\n" | sort | uniq | tr "\n" ' ')
|
60
62
|
echo "#{bindfs_package_name} $keywords" > /etc/portage/package.accept_keywords/bindfs
|
61
63
|
SHELL
|
62
64
|
end
|
65
|
+
|
66
|
+
def ensure_equery_is_installed(communicator)
|
67
|
+
return if communicator.test('equery --help')
|
68
|
+
|
69
|
+
# Let the whole system falls back on distribution defaults for supported Python versions.
|
70
|
+
communicator.sudo("sed -i '/^PYTHON_TARGETS=.*$/d' /etc/portage/make.conf")
|
71
|
+
communicator.sudo('emerge app-portage/gentoolkit')
|
72
|
+
end
|
63
73
|
end
|
64
74
|
end
|
65
75
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module VagrantBindfs
|
4
4
|
module Vagrant
|
5
5
|
module Capabilities
|
6
|
-
module Gentoo
|
6
|
+
module Gentoo # :nodoc:
|
7
7
|
autoload :PackageManager, 'vagrant-bindfs/vagrant/capabilities/gentoo/package_manager'
|
8
8
|
autoload :Fuse, 'vagrant-bindfs/vagrant/capabilities/gentoo/fuse'
|
9
9
|
autoload :Bindfs, 'vagrant-bindfs/vagrant/capabilities/gentoo/bindfs'
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module VagrantBindfs
|
4
4
|
module Vagrant
|
5
5
|
module Capabilities
|
6
|
-
module Linux
|
6
|
+
module Linux # :nodoc:
|
7
7
|
autoload :SystemChecks, 'vagrant-bindfs/vagrant/capabilities/linux/system_checks'
|
8
8
|
autoload :PackageManager, 'vagrant-bindfs/vagrant/capabilities/linux/package_manager'
|
9
9
|
autoload :Fuse, 'vagrant-bindfs/vagrant/capabilities/linux/fuse'
|
@@ -4,11 +4,11 @@ module VagrantBindfs
|
|
4
4
|
module Vagrant
|
5
5
|
module Capabilities
|
6
6
|
module RedHat
|
7
|
-
module Bindfs
|
7
|
+
module Bindfs # :nodoc:
|
8
8
|
class << self
|
9
9
|
def bindfs_bindfs_search(machine)
|
10
10
|
machine.guest.capability(:bindfs_package_manager_update)
|
11
|
-
machine.communicate.test("[[ $(yum search bindfs 2>/dev/null | egrep -i '^bindfs
|
11
|
+
machine.communicate.test("[[ $(yum search bindfs 2>/dev/null | egrep -i '^bindfs.' | wc -l) != 0 ]]")
|
12
12
|
end
|
13
13
|
|
14
14
|
def bindfs_bindfs_install(machine)
|
@@ -35,7 +35,7 @@ module VagrantBindfs
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def bindfs_bindfs_install_compilation_requirements(machine)
|
38
|
-
machine.communicate.sudo('yum -y install make automake gcc gcc-c++ kernel-devel wget tar
|
38
|
+
machine.communicate.sudo('yum -y install make automake gcc gcc-c++ kernel-devel wget tar fuse3-devel')
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -4,11 +4,11 @@ module VagrantBindfs
|
|
4
4
|
module Vagrant
|
5
5
|
module Capabilities
|
6
6
|
module RedHat
|
7
|
-
module Fuse
|
7
|
+
module Fuse # :nodoc:
|
8
8
|
class << self
|
9
9
|
def bindfs_fuse_install(machine)
|
10
10
|
machine.guest.capability(:bindfs_package_manager_update)
|
11
|
-
machine.communicate.sudo('yum -y install
|
11
|
+
machine.communicate.sudo('yum -y install fuse3')
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module VagrantBindfs
|
4
4
|
module Vagrant
|
5
5
|
module Capabilities
|
6
|
-
module RedHat
|
6
|
+
module RedHat # :nodoc:
|
7
7
|
autoload :PackageManager, 'vagrant-bindfs/vagrant/capabilities/redhat/package_manager'
|
8
8
|
autoload :Fuse, 'vagrant-bindfs/vagrant/capabilities/redhat/fuse'
|
9
9
|
autoload :Bindfs, 'vagrant-bindfs/vagrant/capabilities/redhat/bindfs'
|
@@ -4,7 +4,7 @@ module VagrantBindfs
|
|
4
4
|
module Vagrant
|
5
5
|
module Capabilities
|
6
6
|
module Suse
|
7
|
-
module Bindfs
|
7
|
+
module Bindfs # :nodoc:
|
8
8
|
class << self
|
9
9
|
def bindfs_bindfs_search(machine)
|
10
10
|
machine.guest.capability(:bindfs_package_manager_update)
|
@@ -16,6 +16,7 @@ module VagrantBindfs
|
|
16
16
|
machine.communicate.sudo('zypper -n install bindfs')
|
17
17
|
end
|
18
18
|
|
19
|
+
# rubocop:disable Layout/LineLength
|
19
20
|
def bindfs_bindfs_search_version(machine, version)
|
20
21
|
machine.guest.capability(:bindfs_package_manager_update)
|
21
22
|
machine.communicate.tap do |comm|
|
@@ -26,6 +27,7 @@ module VagrantBindfs
|
|
26
27
|
end
|
27
28
|
false
|
28
29
|
end
|
30
|
+
# rubocop:enable Layout/LineLength
|
29
31
|
|
30
32
|
def bindfs_bindfs_install_version(machine, version)
|
31
33
|
machine.guest.capability(:bindfs_package_manager_update)
|
@@ -36,7 +38,7 @@ module VagrantBindfs
|
|
36
38
|
def bindfs_bindfs_install_compilation_requirements(machine)
|
37
39
|
machine.guest.capability(:bindfs_package_manager_update)
|
38
40
|
machine.communicate.tap do |comm|
|
39
|
-
comm.sudo('zypper -n install make automake gcc gcc-c++ kernel-devel wget tar
|
41
|
+
comm.sudo('zypper -n install make automake gcc gcc-c++ kernel-devel wget tar fuse3-devel')
|
40
42
|
end
|
41
43
|
end
|
42
44
|
end
|
@@ -4,11 +4,11 @@ module VagrantBindfs
|
|
4
4
|
module Vagrant
|
5
5
|
module Capabilities
|
6
6
|
module Suse
|
7
|
-
module Fuse
|
7
|
+
module Fuse # :nodoc:
|
8
8
|
class << self
|
9
9
|
def bindfs_fuse_install(machine)
|
10
10
|
machine.guest.capability(:bindfs_package_manager_update)
|
11
|
-
machine.communicate.sudo('zypper -n install
|
11
|
+
machine.communicate.sudo('zypper -n install fuse3')
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module VagrantBindfs
|
4
4
|
module Vagrant
|
5
5
|
module Capabilities
|
6
|
-
module Suse
|
6
|
+
module Suse # :nodoc:
|
7
7
|
autoload :PackageManager, 'vagrant-bindfs/vagrant/capabilities/suse/package_manager'
|
8
8
|
autoload :Fuse, 'vagrant-bindfs/vagrant/capabilities/suse/fuse'
|
9
9
|
autoload :Bindfs, 'vagrant-bindfs/vagrant/capabilities/suse/bindfs'
|
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
module VagrantBindfs
|
4
4
|
module Vagrant
|
5
|
-
class Error < ::Vagrant::Errors::VagrantError
|
5
|
+
class Error < ::Vagrant::Errors::VagrantError # :nodoc:
|
6
6
|
error_namespace('vagrant-bindfs.errors')
|
7
7
|
end
|
8
8
|
|
9
|
-
class ConfigError < Error
|
10
|
-
error_namespace('
|
9
|
+
class ConfigError < Error # :nodoc:
|
10
|
+
error_namespace('vagrant_bindfs.errors.config')
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|