update max size if equal to desired capacity
This commit is contained in:
@@ -22,11 +22,13 @@ module AWS
|
||||
end
|
||||
|
||||
class Group
|
||||
attr_reader :name
|
||||
attr_reader :name, :max_size, :desired_capacity
|
||||
|
||||
def initialize(name)
|
||||
@name = name
|
||||
@suspended_processes = {}
|
||||
@max_size = 2
|
||||
@desired_capacity = 1
|
||||
end
|
||||
|
||||
def suspend_processes(*processes)
|
||||
@@ -34,6 +36,12 @@ module AWS
|
||||
@suspended_processes[process] = 'test'
|
||||
end
|
||||
end
|
||||
|
||||
def update(options = {})
|
||||
options.each do |key, value|
|
||||
self.instance_variable_set "@#{key}", value
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user