Sha256: 63f67499d3202566e0b0b6dff5d4530d2a5ce85ac89eae1e03ddccc1c07c8183
Contents?: true
Size: 570 Bytes
Versions: 1
Compression:
Stored size: 570 Bytes
Contents
module VagrantPlugins module GuestSmartos module Cap class MountNFS def self.mount_nfs_folder(machine, ip, folders) sudo = machine.config.smartos.suexec_cmd folders.each do |name, opts| machine.communicate.tap do |comm| comm.execute("#{sudo} mkdir -p #{opts[:guestpath]}", {shell: "sh"}) comm.execute("#{sudo} /usr/sbin/mount -F nfs '#{ip}:#{opts[:hostpath]}' '#{opts[:guestpath]}'", {shell: "sh"}) end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-cloudstack-1.2.0 | vendor/bundle/bundler/gems/vagrant-c84e05fd063f/plugins/guests/smartos/cap/mount_nfs.rb |