-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
fuse.rb
33 lines (28 loc) · 941 Bytes
/
fuse.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# frozen_string_literal: true
module VagrantBindfs
module Vagrant
module Capabilities
module Darwin
module Fuse # :nodoc:
class << self
def bindfs_fuse_installed(machine)
machine.communicate.test('test -d /Library/Frameworks/OSXFUSE.framework/')
end
def bindfs_fuse_install(machine)
machine.guest.capability(:bindfs_package_manager_update)
machine.communicate.execute('brew tap caskroom/cask && brew cask install osxfuse')
end
# OSXFuse is automatically loaded.
# Just check if it is installed
def bindfs_fuse_loaded(machine)
machine.guest.capability(:bindfs_fuse_installed)
end
def bindfs_fuse_load(machine)
machine.guest.capability(:bindfs_fuse_installed)
end
end
end
end
end
end
end