lib/mccloud/provider/aws/provider.rb in mccloud-0.0.23 vs lib/mccloud/provider/aws/provider.rb in mccloud-0.0.24

- old
+ new

@@ -211,9 +211,22 @@ vm.halt(options) end end + def hosts + hostentries = Hash.new + filter = self.filter + + self.raw.servers.each do |s| + name = s.tags["Name"].sub(/^#{filter}/,'') + hostentries = Hash.new + hostentries[name]=s.public_ip_address + hostentries[name]=s.private_ip_address + end + return hostentries + end + end end end end