Module: Nucleus::Adapters::V1::CloudControl::Scaling
- Included in:
- Nucleus::Adapters::V1::CloudControl
- Defined in:
- lib/nucleus/adapters/v1/cloud_control/scaling.rb
Instance Method Summary collapse
Instance Method Details
#scale(application_id, instances) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/nucleus/adapters/v1/cloud_control/scaling.rb', line 7 def scale(application_id, instances) # update the number of instances on the application's deployment scale_response = put("/app/#{application_id}/deployment/#{NUCLEUS_DEPLOYMENT}", body: { min_boxes: instances }).body to_nucleus_app(get("/app/#{application_id}").body, scale_response) end |