Method: Cron::Server#current_desired_capacity
- Defined in:
- lib/app/jobs/cron/server.rb
#current_desired_capacity ⇒ Object
Returns the current value of ‘desired capacity’ for the AutoScalingGroup
213 214 215 216 217 218 219 |
# File 'lib/app/jobs/cron/server.rb', line 213 def current_desired_capacity current = auto_scaling_group.desired_capacity set current_server_count: current current rescue StandardError 0 end |