Class: VagrantPlugins::GuestFreeBSD::Cap::SSHFSClient
- Inherits:
-
Object
- Object
- VagrantPlugins::GuestFreeBSD::Cap::SSHFSClient
- Defined in:
- lib/vagrant-sshfs/cap/guest/freebsd/sshfs_client.rb
Class Method Summary collapse
Class Method Details
.sshfs_install(machine) ⇒ Object
5 6 7 8 |
# File 'lib/vagrant-sshfs/cap/guest/freebsd/sshfs_client.rb', line 5 def self.sshfs_install(machine) machine.communicate.sudo("pkg install -y fusefs-sshfs") machine.communicate.sudo("kldload fuse") end |
.sshfs_installed(machine) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/vagrant-sshfs/cap/guest/freebsd/sshfs_client.rb', line 10 def self.sshfs_installed(machine) installed = machine.communicate.test("pkg info fusefs-sshfs") if installed # fuse may not get loaded at boot, so check if it's loaded otherwise force load it machine.communicate.sudo("kldstat -m fuse || kldload fuse") end installed end |