class VagrantPlugins::GuestAlpine::Cap::SSHFSClient
Public Class Methods
Source
# File lib/vagrant-sshfs/cap/guest/alpine/sshfs_client.rb, line 5 def self.sshfs_install(machine) # Install sshfs machine.communicate.sudo("apk add sshfs") # Load the fuse module machine.communicate.sudo("modprobe fuse") end
Source
# File lib/vagrant-sshfs/cap/guest/alpine/sshfs_client.rb, line 12 def self.sshfs_installed(machine) installed = machine.communicate.test("apk -e info sshfs") if installed # fuse may not get loaded at boot, so check if it's loaded otherwise force load it machine.communicate.sudo("lsmod | grep fuse || modprobe fuse") end installed end