Class: VagrantPlugins::SyncedFolderSSHFS::HostPathUnfix

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-sshfs/action_hostpath_fixup.rb

Overview

Class that will undo the data manipulation that was done in HostPathFix and also set hostpath_exact=true if necessary

Instance Method Summary collapse

Constructor Details

#initialize(app, env) ⇒ HostPathUnfix

Returns a new instance of HostPathUnfix.



112
113
114
115
# File 'lib/vagrant-sshfs/action_hostpath_fixup.rb', line 112

def initialize(app, env)
  @app    = app
  @logger = Log4r::Logger.new("vagrant::synced_folders::sshfs")
end

Instance Method Details

#call(env) ⇒ Object



117
118
119
120
121
122
123
124
125
126
127
# File 'lib/vagrant-sshfs/action_hostpath_fixup.rb', line 117

def call(env)
  classname = "VagrantPlugins::SyncedFolderSSHFS::HostPathUnfix"
  @logger.debug("Executing hook within #{classname}")

  # This part is for the IN action call
  HostPathFixCommon.new().loop_and_fix_unfix(env, fix=false)

  # Now continue until the OUT call
  @app.call(env)

end