Module: VagrantPlugins::VCloud::Cap::PublicAddress

Defined in:
lib/vagrant-vcloud/cap/public_address.rb

Class Method Summary collapse

Class Method Details

.public_address(machine) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/vagrant-vcloud/cap/public_address.rb', line 5

def self.public_address(machine)
  # Initial try for vagrant share feature.
  # It seems ssh_info[:port] is given automatically.
  # I think this feature was built planning that the port forwarding
  # and networking was done on the vagrant machine, which isn't the
  # case in vagrant-vcloud

  ssh_info = machine.ssh_info
  ssh_info[:host]
end