Sha256: 48e507d448f199700d5edaba526047bca6cdf3bb67f35e4bf5af7bfb5e38f3ec

Contents?: true

Size: 551 Bytes

Versions: 21

Compression:

Stored size: 551 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

21 entries across 18 versions & 5 rubygems

Version Path
vagrant-aws-mkubenka-0.7.2.pre.14 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/guests/smartos/cap/mount_nfs.rb
vagrant-aws-mkubenka-0.7.2.pre.11 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/guests/smartos/cap/mount_nfs.rb
vagrant-aws-mkubenka-0.7.2.pre.10 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/guests/smartos/cap/mount_nfs.rb
vagrant-aws-mkubenka-0.7.2.pre.9 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/guests/smartos/cap/mount_nfs.rb
vagrant-unbundled-1.9.5.1 plugins/guests/smartos/cap/mount_nfs.rb
vagrant-unbundled-1.9.1.1 plugins/guests/smartos/cap/mount_nfs.rb
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/smartos/cap/mount_nfs.rb
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/smartos/cap/mount_nfs.rb
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/smartos/cap/mount_nfs.rb
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/guests/smartos/cap/mount_nfs.rb
vagrant-unbundled-1.8.5.2 plugins/guests/smartos/cap/mount_nfs.rb
vagrant-unbundled-1.8.5.1 plugins/guests/smartos/cap/mount_nfs.rb
vagrant-unbundled-1.8.4.2 plugins/guests/smartos/cap/mount_nfs.rb
vagrant-unbundled-1.8.4.1 plugins/guests/smartos/cap/mount_nfs.rb
vagrant-unbundled-1.8.1.2 plugins/guests/smartos/cap/mount_nfs.rb
vagrant-unbundled-1.8.1.1 plugins/guests/smartos/cap/mount_nfs.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-1cf2a8db4ccb/plugins/guests/smartos/cap/mount_nfs.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-b421af58e8b3/plugins/guests/smartos/cap/mount_nfs.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-309e896975d1/plugins/guests/smartos/cap/mount_nfs.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-272fb27e0536/plugins/guests/smartos/cap/mount_nfs.rb