Class: VagrantPlugins::Skytap::Connection::VpnChoice::AttachConnectAndUseExecution

Inherits:
VPNAttachmentExecution show all
Defined in:
lib/vagrant-skytap/connection/vpn_choice.rb

Instance Attribute Summary

Attributes inherited from VPNAttachmentExecution

#attachment, #vpn

Attributes inherited from Execution

#env, #iface

Instance Method Summary collapse

Methods inherited from VPNAttachmentExecution

#initialize, make, #message

Methods inherited from Execution

#initialize, #make, #message

Constructor Details

This class inherits a constructor from VagrantPlugins::Skytap::Connection::VpnChoice::VPNAttachmentExecution

Instance Method Details

#executeObject



124
125
126
127
# File 'lib/vagrant-skytap/connection/vpn_choice.rb', line 124

def execute
  @attachment = API::VpnAttachment.create(iface.network, vpn, env)
  @attachment.connect!
end

#verbObject



120
121
122
# File 'lib/vagrant-skytap/connection/vpn_choice.rb', line 120

def verb
  I18n.t("vagrant_skytap.connections.vpn_attachment.verb_attach")
end