Module: VagrantPlugins::VSphere::Cap::PublicAddress

Defined in:
lib/vSphere/cap/public_address.rb

Class Method Summary collapse

Class Method Details

.public_address(machine) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/vSphere/cap/public_address.rb', line 5

def self.public_address(machine)
  return nil if machine.state.id != :running

  ssh_info = machine.ssh_info
  return nil unless ssh_info
  ssh_info[:host]
end