Sha256: d572dfb1116b066a228c7c5e32e403198ad414a3483e1fbb63d9db83aad4ac53
Contents?: true
Size: 943 Bytes
Versions: 25
Compression:
Stored size: 943 Bytes
Contents
module VagrantPlugins module Parallels module Action class HandleForwardedPortCollisions < Vagrant::Action::Builtin::HandleForwardedPortCollisions def initialize(app, env) @app = app @logger = Log4r::Logger.new('vagrant_parallels::action::handle_port_collisions') end # This middleware just wraps the builtin action and allows to skip it if # port forwarding is not supported for current Parallels Desktop version. def call(env) if env[:machine].provider.pd_version_satisfies?('>= 10') super else # Just continue if port forwarding is not supported @app.call(env) end end def recover(env) if env[:machine].provider.pd_version_satisfies?('>= 10') super end # Do nothing if port forwarding is not supported end end end end end
Version data entries
25 entries across 25 versions & 1 rubygems