vagrant/plugins/guests/openbsd/cap/mount_nfs_folder.rb

15 lines
399 B
Ruby
Raw Normal View History

2013-08-28 04:12:09 +00:00
module VagrantPlugins
module GuestOpenBSD
module Cap
class MountNFSFolder
def self.mount_nfs_folder(machine, ip, folders)
folders.each do |name, opts|
machine.communicate.sudo("mkdir -p #{opts[:guestpath]}")
machine.communicate.sudo("mount '#{ip}:#{opts[:hostpath]}' '#{opts[:guestpath]}'")
end
end
end
end
end
end