Class: Provisioner::HostIP

Inherits:
Object
  • Object
show all
Defined in:
lib/provisioner/host_ip.rb

Class Method Summary collapse

Class Method Details

.ip_for(host) ⇒ Object



5
6
7
8
# File 'lib/provisioner/host_ip.rb', line 5

def self.ip_for(host)
  Provisioner::Exit.with_message("Unable to find IP for host: #{host}\nMake sure 'knife joyent server list' runs successfully\n\n") unless ips[host]
  ips[host]
end