Class: VagrantPlugins::Skytap::Action::ClearForwardedPorts

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-skytap/action/clear_forwarded_ports.rb

Overview

This is based on code from the VirtualBox provider.

Instance Method Summary collapse

Constructor Details

#initialize(app, env) ⇒ ClearForwardedPorts

Returns a new instance of ClearForwardedPorts.



6
7
8
# File 'lib/vagrant-skytap/action/clear_forwarded_ports.rb', line 6

def initialize(app, env)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



10
11
12
13
14
15
# File 'lib/vagrant-skytap/action/clear_forwarded_ports.rb', line 10

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