lib/cloud_providers/ec2/ec2.rb in poolparty-1.4.8 vs lib/cloud_providers/ec2/ec2.rb in poolparty-1.5.0

- old
+ new

@@ -324,9 +324,13 @@ def rds(given_name=cloud.proper_name, o={}, &block) rds_instances << RdsInstance.new(given_name, sub_opts.merge(o || {}), &block) end + def available_rds_instances + rds_instances.select{|r| r.available? } + end + # Proxy to the raw Grempe amazon-aws @ec2 instance def ec2 @ec2 ||= begin AWS::EC2::Base.new( :access_key_id => access_key, :secret_access_key => secret_access_key ) rescue AWS::ArgumentError => e # AWS credentials missing?