lib/vagrant-skytap/api/vpn.rb in vagrant-skytap-0.2.4 vs lib/vagrant-skytap/api/vpn.rb in vagrant-skytap-0.2.5
- old
+ new
@@ -22,11 +22,10 @@
require 'vagrant-skytap/util/subnet'
require 'vagrant-skytap/api/resource'
require 'vagrant-skytap/api/vpn_attachment'
-#TODO:NLA Move this to another class, properly namespaced.
class VpnChoice
attr_reader :env, :vpn, :vm, :iface, :attachment, :execution
def initialize(env, vpn, vm)
@env = env
@@ -53,10 +52,10 @@
def choose
execution.execute
@iface = vm.reload.interfaces.detect{|i| i.id == iface.id }
host = iface.address_for(vpn)
- port = 22 #TODO:NLA Use constant
+ port = 22
[host, port]
end
def valid?