fix/add some print statements
This commit is contained in:
@@ -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
11
spec/support/fake_ec2.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
module AWS
|
||||
class FakeEC2
|
||||
class Instance
|
||||
attr_reader :id
|
||||
|
||||
def initialize(id)
|
||||
@id = id
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user