on init, connect to AWS and check for the AS group
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user