2013-04-04 18:56:42 +00:00
|
|
|
module VagrantPlugins
|
|
|
|
module GuestFreeBSD
|
|
|
|
module Cap
|
|
|
|
class MountNFSFolder
|
|
|
|
def self.mount_nfs_folder(machine, ip, folders)
|
|
|
|
folders.each do |name, opts|
|
2014-05-22 16:35:12 +00:00
|
|
|
machine.communicate.sudo("mkdir -p #{opts[:guestpath]}", {shell: "sh"})
|
|
|
|
machine.communicate.sudo("mount -t nfs '#{ip}:#{opts[:hostpath]}' '#{opts[:guestpath]}'", {shell: "sh"})
|
2013-04-04 18:56:42 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|