in lib/aws-rails-provisioner/scaling.rb [180:197]
def initialize(type, options)
@metric = Metric.new(type, options)
if type == :custom
@target_value = options[:target_value]
@disable_scale_in = !!options[:disable_scale_in]
@scale_in_cooldown = options[:scale_in_cooldown]
@scale_out_cooldown = options[:scale_out_cooldown]
else
@scaling_steps = _scaling_steps(options[:scaling_steps] || [])
@cooldown_sec = options[:cooldown]
@adjustment_type = Aws::RailsProvisioner::Utils.adjustment_type(
options[:adjustment_type]) if options[:adjustment_type]
if @adjustment_type == 'PercentChangeInCapacity'
@min_adjustment_magnitude = options[:min_adjustment_magnitude]
end
end
end