Class: VagrantPlugins::Skytap::Action::ClearForwardedPorts
- Defined in:
- lib/vagrant-skytap/action/clear_forwarded_ports.rb
Overview
This is based on code from the VirtualBox provider.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ ClearForwardedPorts
constructor
A new instance of ClearForwardedPorts.
Constructor Details
#initialize(app, env) ⇒ ClearForwardedPorts
Returns a new instance of ClearForwardedPorts.
28 29 30 |
# File 'lib/vagrant-skytap/action/clear_forwarded_ports.rb', line 28 def initialize(app, env) @app = app end |
Instance Method Details
#call(env) ⇒ Object
32 33 34 35 36 37 |
# File 'lib/vagrant-skytap/action/clear_forwarded_ports.rb', line 32 def call(env) env[:ui].info I18n.t("vagrant.actions.vm.clear_forward_ports.deleting") env[:host].capability(:clear_forwarded_ports, env[:machine]) @app.call(env) end |