fix/add some print statements

This commit is contained in:
Anuj Biyani
2013-06-04 18:20:34 -07:00
parent 02f31ef263
commit 7c6206e90d
3 changed files with 22 additions and 3 deletions

View File

@@ -54,6 +54,10 @@ module AWS
def load_balancers
@load_balancers ||= AWS::FakeELB::LoadBalancerCollection.new
end
def ec2_instances
auto_scaling_instances.map(&:ec2_instance)
end
end
class Instance
@@ -70,6 +74,7 @@ module AWS
end
def ec2_instance
AWS::FakeEC2::Instance.new(self.id)
end
end
end

11
spec/support/fake_ec2.rb Normal file
View File

@@ -0,0 +1,11 @@
module AWS
class FakeEC2
class Instance
attr_reader :id
def initialize(id)
@id = id
end
end
end
end