lib/poolparty/net/remoter_base.rb in auser-poolparty-0.2.26 vs lib/poolparty/net/remoter_base.rb in auser-poolparty-0.2.35

- old
+ new

@@ -75,11 +75,11 @@ end # List the instances for the current key pair, regardless of their states # If no keypair is passed, select them all def list_of_instances(keyp=nil) key = keyp ? keyp : keypair - describe_instances.select {|a| key ? a[:keypair] == key : true } if describe_instances + @describe_instances ||= describe_instances.select {|a| key ? a[:keypair] == key : true } if describe_instances end # Instances # Get the master from the cloud def master # remote_instances_list.select {|a| a.master }.first @@ -89,9 +89,10 @@ # Helpers def create_keypair end # Reset the cache of descriptions def reset! + @describe_instances = nil end def self.included(other) PoolParty.register_remote_base(self.class.to_s.downcase.to_sym) end \ No newline at end of file