Sha256: a34f0c90b18a843ad8fbc62b2cdf55cd0be07829dfa4199c4dd025598952175f

Contents?: true

Size: 620 Bytes

Versions: 6

Compression:

Stored size: 620 Bytes

Contents

module VagrantPlugins
  module GuestFreeBSD
    module Cap
      class MountNFSFolder
        def self.mount_nfs_folder(machine, ip, folders)
          folders.each do |name, opts|
            if opts[:nfs_version]
              nfs_version_mount_option="-o nfsv#{opts[:nfs_version]}"
            end

            machine.communicate.sudo("mkdir -p #{opts[:guestpath]}", {shell: "sh"})

            machine.communicate.sudo(
              "mount -t nfs #{nfs_version_mount_option} " +
              "'#{ip}:#{opts[:hostpath]}' '#{opts[:guestpath]}'", {shell: "sh"})
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 3 versions & 2 rubygems

Version Path
vagrant-unbundled-1.8.1.2 plugins/guests/freebsd/cap/mount_nfs_folder.rb
vagrant-unbundled-1.8.1.1 plugins/guests/freebsd/cap/mount_nfs_folder.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-1cf2a8db4ccb/plugins/guests/freebsd/cap/mount_nfs_folder.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-272fb27e0536/plugins/guests/freebsd/cap/mount_nfs_folder.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-309e896975d1/plugins/guests/freebsd/cap/mount_nfs_folder.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-b421af58e8b3/plugins/guests/freebsd/cap/mount_nfs_folder.rb