class VagrantPlugins::SyncedFolderSSHFS::HostPathFix
Class that will massage the data for synced folders that are arbitrary host mounts (contain ssh_host in the options) to make it so that “host path checking” isn't performed on the vagrant host machine
Public Class Methods
new(app, env)
click to toggle source
# File lib/vagrant-sshfs/action_hostpath_fixup.rb, line 89 def initialize(app, env) @app = app @logger = Log4r::Logger.new("vagrant::synced_folders::sshfs") end
Public Instance Methods
call(env)
click to toggle source
# File lib/vagrant-sshfs/action_hostpath_fixup.rb, line 94 def call(env) classname = "VagrantPlugins::SyncedFolderSSHFS::HostPathFix" @logger.debug("Executing hook within #{classname}") # This part is for the IN action call HostPathFixCommon.new().loop_and_fix_unfix(env, fix=true) # Now continue until the OUT call @app.call(env) end