Method: App42::Command::Service#vscale

Defined in:
lib/app42/command/service.rb

#vscaleObject

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
  @options[:service] = ask_service_name if @options[:service].nil?
  @options[:kontena] = get_kontena "Vertical scale" if is_service_exist? @options[:service] and @options[:kontena].nil?
  vscale_or_vdescal_res = vscale_or_vdescale_service __method__, @options[:kontena], @options[:service]
  exit! if vscale_or_vdescal_res
end