Method: App42::Command::Service#vscale
- Defined in:
- lib/app42/command/service.rb
#vscale ⇒ Object
read service name and number of instance from user then vertically scale service by no of instance
132 133 134 135 136 137 |
# File 'lib/app42/command/service.rb', line 132 def vscale [:service] = ask_service_name if [:service].nil? [:kontena] = get_kontena "Vertical scale" if is_service_exist? [:service] and [:kontena].nil? vscale_or_vdescal_res = vscale_or_vdescale_service __method__, [:kontena], [:service] exit! if vscale_or_vdescal_res end |