on init, connect to AWS and check for the AS group

This commit is contained in:
Anuj Biyani
2013-05-31 13:08:23 -07:00
parent 2bdaca25bb
commit 4f466e1a19
5 changed files with 59 additions and 3 deletions

View File

@@ -2,5 +2,31 @@ module AWS
class FakeAutoScaling
def initialize
end
def groups
@groups ||= GroupCollection.new
end
class GroupCollection
def initialize
@groups = {}
end
def [](name)
@groups[name]
end
def create(name, options = {})
@groups[name] = Group.new name
end
end
class Group
attr_reader :name
def initialize(name)
@name = name
end
end
end
end