Module: VagrantBindfs::Vagrant::Capabilities::Darwin::Fuse

Defined in:
lib/vagrant-bindfs/vagrant/capabilities/darwin/fuse.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.bindfs_fuse_install(machine) ⇒ Object



13
14
15
16
# File 'lib/vagrant-bindfs/vagrant/capabilities/darwin/fuse.rb', line 13

def bindfs_fuse_install(machine)
  machine.guest.capability(:bindfs_package_manager_update)
  machine.communicate.execute('brew install --cask macfuse')
end

.bindfs_fuse_installed(machine) ⇒ Object



9
10
11
# File 'lib/vagrant-bindfs/vagrant/capabilities/darwin/fuse.rb', line 9

def bindfs_fuse_installed(machine)
  machine.communicate.test('test -d /Library/Frameworks/macFUSE.framework/')
end

.bindfs_fuse_load(machine) ⇒ Object



25
26
27
# File 'lib/vagrant-bindfs/vagrant/capabilities/darwin/fuse.rb', line 25

def bindfs_fuse_load(machine)
  machine.guest.capability(:bindfs_fuse_installed)
end

.bindfs_fuse_loaded(machine) ⇒ Object

OSXFuse is automatically loaded. Just check if it is installed



21
22
23
# File 'lib/vagrant-bindfs/vagrant/capabilities/darwin/fuse.rb', line 21

def bindfs_fuse_loaded(machine)
  machine.guest.capability(:bindfs_fuse_installed)
end