Class: CashWorker

Inherits:
Worker show all
Defined in:
lib/proboscis_cli.rb

Class Method Summary collapse

Methods inherited from Worker

client, client_list, ip

Methods inherited from Machine

port

Class Method Details

.worker_ip(subpath) ⇒ Object



95
96
97
98
99
100
101
# File 'lib/proboscis_cli.rb', line 95

def self.worker_ip(subpath)
  key = "#{subpath.gsub('_', '-')}_WORKER_IP"
  if(!@infra_info[key])
    puts "Unable to find target WORKER_IP in #{@infra_info}. Is the machine up?"
  end
  @infra_info[key]
end