Sha256: 1739e6dcc76208f05d85fc1b0729bb899db7a7cf53b7376b30d6ea7989d8a886

Contents?: true

Size: 468 Bytes

Versions: 4

Compression:

Stored size: 468 Bytes

Contents

module VagrantPlugins
  module SyncedFolderNFSGuest
    module Action
      class UnmountMounts
        def initialize(app,env)
          @app = app
          @logger = Log4r::Logger.new("vagrant::action::vm::nfs_guest")
        end

        def call(env)
          @machine = env[:machine]
          @app.call(env)

          folders = @machine.config.vm.synced_folders
          @machine.env.host.unmount_nfs_folders(folders)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vagrant-nfs_guest-0.0.4 lib/vagrant-nfs_guest/action/unmount_mounts.rb
vagrant-nfs_guest-0.0.3 lib/vagrant-nfs_guest/action/unmount_mounts.rb
vagrant-nfs_guest-0.0.2 lib/vagrant-nfs_guest/action/unmount_mounts.rb
vagrant-nfs_guest-0.0.1 lib/vagrant-nfs_guest/action/unmount_mounts.rb