Sha256: 3fb86c85af28b2bc8c1c18d2ca7722ab92e4edff0de0210a3fa199f155a7ac94

Contents?: true

Size: 1.46 KB

Versions: 63

Compression:

Stored size: 1.46 KB

Contents

require "vagrant"

module VagrantPlugins
  module SyncedFolderNFS
    # This plugin implements NFS synced folders. In order to take advantage
    # of NFS synced folders, some provider-specific assistance is required.
    # Within the middleware sequences, some data must be put into the
    # environment state bag:
    #
    #   * `nfs_host_ip` (string) - The IP of the host machine that the NFS
    #     client in the machine should talk to.
    #   * `nfs_machine_ip` (string) - The IP of the guest machine that the NFS
    #     server should serve the folders to.
    #   * `nfs_valid_ids` (array of strings) - A list of IDs that are "valid"
    #     and should not be pruned. The synced folder implementation will
    #     regularly prune NFS exports of invalid IDs.
    #
    # If any of these variables are not set, an internal exception will be
    # raised.
    #
    class Plugin < Vagrant.plugin("2")
      name "NFS synced folders"
      description <<-EOF
      The NFS synced folders plugin enables you to use NFS as a synced folder
      implementation.
      EOF

      config("nfs") do
        require_relative "config"
        Config
      end

      synced_folder("nfs", 5) do
        require_relative "synced_folder"
        SyncedFolder
      end

      action_hook("nfs_cleanup") do |hook|
        require_relative "action_cleanup"
        hook.before(
          Vagrant::Action::Builtin::SyncedFolderCleanup,
          ActionCleanup)
      end
    end
  end
end

Version data entries

63 entries across 56 versions & 8 rubygems

Version Path
vagrant-unbundled-1.9.8.1 plugins/synced_folders/nfs/plugin.rb
vagrant-unbundled-1.9.7.1 plugins/synced_folders/nfs/plugin.rb
vagrant-aws-mkubenka-0.7.2.pre.14 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/synced_folders/nfs/plugin.rb
vagrant-aws-mkubenka-0.7.2.pre.11 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/synced_folders/nfs/plugin.rb
vagrant-aws-mkubenka-0.7.2.pre.10 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/synced_folders/nfs/plugin.rb
vagrant-aws-mkubenka-0.7.2.pre.9 vendor/bundle/ruby/2.3.0/bundler/gems/vagrant-5333e60e2d38/plugins/synced_folders/nfs/plugin.rb
vagrant-unbundled-1.9.5.1 plugins/synced_folders/nfs/plugin.rb
vagrant-unbundled-1.9.1.1 plugins/synced_folders/nfs/plugin.rb
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/synced_folders/nfs/plugin.rb
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/synced_folders/nfs/plugin.rb
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/synced_folders/nfs/plugin.rb
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/synced_folders/nfs/plugin.rb
vagrant-unbundled-1.8.5.2 plugins/synced_folders/nfs/plugin.rb
vagrant-unbundled-1.8.5.1 plugins/synced_folders/nfs/plugin.rb
vagrant-unbundled-1.8.4.2 plugins/synced_folders/nfs/plugin.rb
vagrant-unbundled-1.8.4.1 plugins/synced_folders/nfs/plugin.rb
vagrant-unbundled-1.8.1.2 plugins/synced_folders/nfs/plugin.rb
vagrant-unbundled-1.8.1.1 plugins/synced_folders/nfs/plugin.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-b421af58e8b3/plugins/synced_folders/nfs/plugin.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-309e896975d1/plugins/synced_folders/nfs/plugin.rb