-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
module VagrantPlugins | ||
module GuestFreeBSD | ||
module Cap | ||
class SSHFSClient | ||
def self.sshfs_install(machine) | ||
machine.communicate.sudo("pkg install -y fusefs-sshfs") | ||
machine.communicate.sudo("kldload fuse") | ||
end | ||
|
||
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 | ||
end | ||
end | ||
end | ||
end |
13 changes: 13 additions & 0 deletions
13
lib/vagrant-sshfs/cap/guest/freebsd/sshfs_forward_mount.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
require_relative "../linux/sshfs_forward_mount" | ||
|
||
module VagrantPlugins | ||
module GuestFreeBSD | ||
module Cap | ||
class MountSSHFS < VagrantPlugins::GuestLinux::Cap::MountSSHFS | ||
def self.list_mounts_command | ||
"mount -p" | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters