lib/opsicle/instances.rb in opsicle-0.11.0 vs lib/opsicle/instances.rb in opsicle-0.12.0

- old
+ new

@@ -12,9 +12,13 @@ def data instances(reload: true) end + def self.pretty_ip(instance) + instance[:elastic_ip] ? "#{instance[:elastic_ip]} EIP" : instance[:public_ip] + end + def self.find_by_ip(client, ips) instances = new(client).data.reject { |instance| instances_matching_ips(instance, ips) } instances.empty? ? nil : instances end