class VagrantPlugins::GuestFreeBSD::Cap::SSHFSClient
Public Class Methods
sshfs_install(machine)
click to toggle source
# 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)
click to toggle source
# 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