Module: VagrantPlugins::ProviderVeertu::Cap::PublicAddress

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

Class Method Summary collapse

Class Method Details

.public_address(machine) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/vagrant-veertu/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 if !ssh_info
  ssh_info[:host]
end