Sha256: a8caa40ecc43e811294bdb63e8002ca1a20467e6aa7a8d0122e452ac48267f35
Contents?: true
Size: 631 Bytes
Versions: 6
Compression:
Stored size: 631 Bytes
Contents
require Vagrant.source_root.join("plugins/guests/linux/cap/mount_nfs") module VagrantPlugins module GuestUbuntu module Cap class MountNFS < GuestLinux::Cap::MountNFS def self.mount_nfs_folder(machine, ip, folders) super # Emit an upstart events if upstart is available folders.each do |name, opts| real_guestpath = machine.guest.capability(:shell_expand_guest_path, opts[:guestpath]) machine.communicate.sudo("[ -x /sbin/initctl ] && /sbin/initctl emit vagrant-mounted MOUNTPOINT=#{real_guestpath}") end end end end end end
Version data entries
6 entries across 6 versions & 2 rubygems