Module: Ufo::Concerns::Autoscaling

Included in:
Ufo::CLI::Ps, Ufo::Cfn::Stack::Builder::Resources::Scaling::Base
Defined in:
lib/ufo/concerns/autoscaling.rb

Instance Method Summary collapse

Instance Method Details

#autoscalingObject



7
8
9
# File 'lib/ufo/concerns/autoscaling.rb', line 7

def autoscaling
  Ufo.config.autoscaling
end

#autoscaling_enabled?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/ufo/concerns/autoscaling.rb', line 3

def autoscaling_enabled?
  autoscaling.enabled && autoscaling.min_capacity && autoscaling.max_capacity
end