def scale(cartridge)
raise RHC::MissingScalingValueException unless options.min || options.max
rest_app = rest_client.find_application(options.namespace, options.app, :include => :cartridges)
rest_cartridge = check_cartridges(cartridge, :from => rest_app.cartridges).first
raise RHC::CartridgeNotScalableException unless rest_cartridge.scalable?
cart = rest_cartridge.set_scales({
:scales_from => options.min,
:scales_to => options.max
})
results do
paragraph{ display_cart(cart) }
success "Success: Scaling values updated"
end
0
end