Method: App42::Command::App#scale
- Defined in:
- lib/app42/command/app.rb
#scale ⇒ Object
read app name and number of instance from user then scale app by no of instance
137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/app42/command/app.rb', line 137 def scale [:name] = get_app_name if [:name].nil? app_info = app_information 'app', [:name] scale_dedicated_app [:name] if app_info["appInfo"]["vmType"] && app_info["appInfo"]["vmType"] == "Dedicated" scale_type = ask_scale_type if scale_type == App42::SCALE_TYPE.first hscale [:name] else vscale [:name] end end |