vagrant-bindfs 1.1.8 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +462 -0
  3. data/README.md +2 -3
  4. data/Vagrantfile +6 -10
  5. data/lib/vagrant-bindfs/bindfs/command.rb +1 -1
  6. data/lib/vagrant-bindfs/bindfs/folder.rb +1 -1
  7. data/lib/vagrant-bindfs/bindfs/option_definitions.json +2 -0
  8. data/lib/vagrant-bindfs/bindfs/option_set.rb +2 -2
  9. data/lib/vagrant-bindfs/bindfs/validators/config.rb +14 -6
  10. data/lib/vagrant-bindfs/bindfs/validators/runtime.rb +5 -5
  11. data/lib/vagrant-bindfs/bindfs/validators.rb +1 -1
  12. data/lib/vagrant-bindfs/bindfs.rb +2 -2
  13. data/lib/vagrant-bindfs/vagrant/actions/concerns/log.rb +1 -1
  14. data/lib/vagrant-bindfs/vagrant/actions/concerns/machine.rb +4 -6
  15. data/lib/vagrant-bindfs/vagrant/actions/concerns.rb +1 -1
  16. data/lib/vagrant-bindfs/vagrant/actions/installer.rb +8 -3
  17. data/lib/vagrant-bindfs/vagrant/actions/mounter.rb +5 -2
  18. data/lib/vagrant-bindfs/vagrant/actions.rb +1 -1
  19. data/lib/vagrant-bindfs/vagrant/capabilities/all/bindfs.rb +11 -2
  20. data/lib/vagrant-bindfs/vagrant/capabilities/all/package_manager.rb +1 -1
  21. data/lib/vagrant-bindfs/vagrant/capabilities/all/system_checks.rb +1 -1
  22. data/lib/vagrant-bindfs/vagrant/capabilities/all.rb +1 -1
  23. data/lib/vagrant-bindfs/vagrant/capabilities/darwin/bindfs.rb +1 -1
  24. data/lib/vagrant-bindfs/vagrant/capabilities/darwin/fuse.rb +3 -3
  25. data/lib/vagrant-bindfs/vagrant/capabilities/darwin/package_manager.rb +1 -1
  26. data/lib/vagrant-bindfs/vagrant/capabilities/darwin/system_checks.rb +1 -1
  27. data/lib/vagrant-bindfs/vagrant/capabilities/darwin.rb +1 -1
  28. data/lib/vagrant-bindfs/vagrant/capabilities/debian/bindfs.rb +8 -4
  29. data/lib/vagrant-bindfs/vagrant/capabilities/debian/fuse.rb +2 -2
  30. data/lib/vagrant-bindfs/vagrant/capabilities/debian/package_manager.rb +1 -1
  31. data/lib/vagrant-bindfs/vagrant/capabilities/debian.rb +1 -1
  32. data/lib/vagrant-bindfs/vagrant/capabilities/gentoo/bindfs.rb +22 -12
  33. data/lib/vagrant-bindfs/vagrant/capabilities/gentoo/fuse.rb +1 -1
  34. data/lib/vagrant-bindfs/vagrant/capabilities/gentoo/package_manager.rb +1 -1
  35. data/lib/vagrant-bindfs/vagrant/capabilities/gentoo.rb +1 -1
  36. data/lib/vagrant-bindfs/vagrant/capabilities/linux/fuse.rb +1 -1
  37. data/lib/vagrant-bindfs/vagrant/capabilities/linux/package_manager.rb +1 -1
  38. data/lib/vagrant-bindfs/vagrant/capabilities/linux/system_checks.rb +1 -1
  39. data/lib/vagrant-bindfs/vagrant/capabilities/linux.rb +1 -1
  40. data/lib/vagrant-bindfs/vagrant/capabilities/redhat/bindfs.rb +3 -3
  41. data/lib/vagrant-bindfs/vagrant/capabilities/redhat/fuse.rb +2 -2
  42. data/lib/vagrant-bindfs/vagrant/capabilities/redhat/package_manager.rb +1 -1
  43. data/lib/vagrant-bindfs/vagrant/capabilities/redhat.rb +1 -1
  44. data/lib/vagrant-bindfs/vagrant/capabilities/suse/bindfs.rb +4 -2
  45. data/lib/vagrant-bindfs/vagrant/capabilities/suse/fuse.rb +2 -2
  46. data/lib/vagrant-bindfs/vagrant/capabilities/suse/package_manager.rb +1 -1
  47. data/lib/vagrant-bindfs/vagrant/capabilities/suse.rb +1 -1
  48. data/lib/vagrant-bindfs/vagrant/capabilities/ubuntu/fuse.rb +1 -1
  49. data/lib/vagrant-bindfs/vagrant/capabilities/ubuntu.rb +1 -1
  50. data/lib/vagrant-bindfs/vagrant/capabilities.rb +1 -1
  51. data/lib/vagrant-bindfs/vagrant/config.rb +1 -1
  52. data/lib/vagrant-bindfs/vagrant/errors.rb +3 -3
  53. data/lib/vagrant-bindfs/vagrant/plugin.rb +5 -7
  54. data/lib/vagrant-bindfs/vagrant.rb +1 -1
  55. data/lib/vagrant-bindfs/version.rb +1 -1
  56. data/lib/vagrant-bindfs.rb +1 -1
  57. data/vagrant-bindfs.gemspec +43 -0
  58. metadata +18 -13
  59. 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 ||= begin
18
- config.bound_folders.each_with_object({}) do |(id, folder), bound|
19
- bound[id] = folder if hook.nil? || folder.hook == hook
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
- module Concerns
6
+ module Concerns # :nodoc:
7
7
  autoload :Log, 'vagrant-bindfs/vagrant/actions/concerns/log'
8
8
  autoload :Machine, 'vagrant-bindfs/vagrant/actions/concerns/machine'
9
9
  end
@@ -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, version)
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), error_class: VagrantBindfs::Vagrant::Error, error_key: 'bindfs.mount_failed')
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
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module VagrantBindfs
4
4
  module Vagrant
5
- module Actions
5
+ module Actions # :nodoc:
6
6
  autoload :Installer, 'vagrant-bindfs/vagrant/actions/installer'
7
7
  autoload :Mounter, 'vagrant-bindfs/vagrant/actions/mounter'
8
8
 
@@ -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
- [%(sudo #{bindfs_full_path} --version | cut -d" " -f2), %(sudo -i #{bindfs_full_path} --version | cut -d" " -f2)].each do |command|
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)
@@ -4,7 +4,7 @@ module VagrantBindfs
4
4
  module Vagrant
5
5
  module Capabilities
6
6
  module All
7
- module SystemChecks
7
+ module SystemChecks # :nodoc:
8
8
  class << self
9
9
  def bindfs_exists_directory(machine, directory)
10
10
  machine.communicate.test("test -d #{directory.shellescape}")
@@ -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,7 +4,7 @@ module VagrantBindfs
4
4
  module Vagrant
5
5
  module Capabilities
6
6
  module Darwin
7
- module Bindfs
7
+ module Bindfs # :nodoc:
8
8
  class << self
9
9
  # Homebrew only use its own github repositories
10
10
  def bindfs_bindfs_search(_machine)
@@ -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/OSXFUSE.framework/')
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 tap caskroom/cask && brew cask install osxfuse')
15
+ machine.communicate.execute('brew install --cask macfuse')
16
16
  end
17
17
 
18
18
  # OSXFuse is automatically loaded.
@@ -4,7 +4,7 @@ module VagrantBindfs
4
4
  module Vagrant
5
5
  module Capabilities
6
6
  module Darwin
7
- module PackageManager
7
+ module PackageManager # :nodoc:
8
8
  class << self
9
9
  def bindfs_package_manager_name(_machine)
10
10
  'brew'
@@ -4,7 +4,7 @@ module VagrantBindfs
4
4
  module Vagrant
5
5
  module Capabilities
6
6
  module Darwin
7
- module SystemChecks
7
+ module SystemChecks # :nodoc:
8
8
  class << self
9
9
  def bindfs_exists_user(machine, user)
10
10
  (
@@ -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\+/ /g' | cut -d' ' -f2") do |_, output|
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
- return "bindfs-#{package_version}" if !package_version.empty? && !package_version.match(/^#{version}/).nil?
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 libfuse-dev')
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 fuse')
11
+ machine.communicate.sudo('apt-get install -y fuse3')
12
12
  end
13
13
  end
14
14
  end
@@ -4,7 +4,7 @@ module VagrantBindfs
4
4
  module Vagrant
5
5
  module Capabilities
6
6
  module Debian
7
- module PackageManager
7
+ module PackageManager # :nodoc:
8
8
  class << self
9
9
  def bindfs_package_manager_name(_machine)
10
10
  'apt-get'
@@ -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
- # Ensure equery is installed
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
- allow_bindfs_installation(machine)
21
- machine.communicate.sudo("emerge #{bindfs_package_name}")
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
- # Ensure equery is installed
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(' ').each do |package_version|
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
- allow_bindfs_installation(machine)
42
- machine.communicate.sudo("emerge =#{bindfs_package_name}-#{package_version.shellescape}")
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(machine)
57
- machine.communicate.sudo <<-SHELL
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
@@ -4,7 +4,7 @@ module VagrantBindfs
4
4
  module Vagrant
5
5
  module Capabilities
6
6
  module Gentoo
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)
@@ -4,7 +4,7 @@ module VagrantBindfs
4
4
  module Vagrant
5
5
  module Capabilities
6
6
  module Gentoo
7
- module PackageManager
7
+ module PackageManager # :nodoc:
8
8
  class << self
9
9
  def bindfs_package_manager_name(_machine)
10
10
  'emerge'
@@ -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'
@@ -4,7 +4,7 @@ module VagrantBindfs
4
4
  module Vagrant
5
5
  module Capabilities
6
6
  module Linux
7
- module Fuse
7
+ module Fuse # :nodoc:
8
8
  class << self
9
9
  def bindfs_fuse_installed(machine)
10
10
  machine.communicate.test('test -f /etc/fuse.conf')
@@ -4,7 +4,7 @@ module VagrantBindfs
4
4
  module Vagrant
5
5
  module Capabilities
6
6
  module Linux
7
- module PackageManager
7
+ module PackageManager # :nodoc:
8
8
  class << self
9
9
  def bindfs_package_manager_install(_machine)
10
10
  raise VagrantBindfs::Vagrant::Error, :package_manager_missing
@@ -4,7 +4,7 @@ module VagrantBindfs
4
4
  module Vagrant
5
5
  module Capabilities
6
6
  module Linux
7
- module SystemChecks
7
+ module SystemChecks # :nodoc:
8
8
  class << self
9
9
  def bindfs_exists_user(machine, user)
10
10
  (
@@ -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\.' | wc -l) != 0 ]]")
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 fuse-devel')
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 fuse')
11
+ machine.communicate.sudo('yum -y install fuse3')
12
12
  end
13
13
  end
14
14
  end
@@ -4,7 +4,7 @@ module VagrantBindfs
4
4
  module Vagrant
5
5
  module Capabilities
6
6
  module RedHat
7
- module PackageManager
7
+ module PackageManager # :nodoc:
8
8
  class << self
9
9
  def bindfs_package_manager_name(_machine)
10
10
  'yum'
@@ -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 fuse-devel')
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 fuse')
11
+ machine.communicate.sudo('zypper -n install fuse3')
12
12
  end
13
13
  end
14
14
  end
@@ -4,7 +4,7 @@ module VagrantBindfs
4
4
  module Vagrant
5
5
  module Capabilities
6
6
  module Suse
7
- module PackageManager
7
+ module PackageManager # :nodoc:
8
8
  class << self
9
9
  def bindfs_package_manager_name(_machine)
10
10
  'zypper'
@@ -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'
@@ -4,7 +4,7 @@ module VagrantBindfs
4
4
  module Vagrant
5
5
  module Capabilities
6
6
  module Ubuntu
7
- module Fuse
7
+ module Fuse # :nodoc:
8
8
  class << self
9
9
  # Ubuntu 6.10 and after automatically load fuse.
10
10
  # Just check if it is installed
@@ -3,7 +3,7 @@
3
3
  module VagrantBindfs
4
4
  module Vagrant
5
5
  module Capabilities
6
- module Ubuntu
6
+ module Ubuntu # :nodoc:
7
7
  autoload :Fuse, 'vagrant-bindfs/vagrant/capabilities/ubuntu/fuse'
8
8
  end
9
9
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module VagrantBindfs
4
4
  module Vagrant
5
- module Capabilities
5
+ module Capabilities # :nodoc:
6
6
  autoload :All, 'vagrant-bindfs/vagrant/capabilities/all'
7
7
 
8
8
  autoload :Darwin, 'vagrant-bindfs/vagrant/capabilities/darwin'
@@ -2,7 +2,7 @@
2
2
 
3
3
  module VagrantBindfs
4
4
  module Vagrant
5
- class Config < ::Vagrant.plugin('2', :config)
5
+ class Config < ::Vagrant.plugin('2', :config) # :nodoc:
6
6
  DEFAULT_OPTIONS = {
7
7
  'force-user' => 'vagrant',
8
8
  'force-group' => 'vagrant',
@@ -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('vagrant-bindfs.errors.config')
9
+ class ConfigError < Error # :nodoc:
10
+ error_namespace('vagrant_bindfs.errors.config')
11
11
  end
12
12
  end
13
13
  end