vagrant/plugins/providers/hyperv/cap/public_address.rb

16 lines
313 B
Ruby
Raw Normal View History

2014-03-06 19:01:19 +00:00
module VagrantPlugins
2014-03-06 19:01:52 +00:00
module HyperV
2014-03-06 19:01:19 +00:00
module Cap
2014-03-06 19:01:52 +00:00
module PublicAddress
2014-03-06 19:01:19 +00:00
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
end
end
end
end