lib/app42/command/client.rb in app42-0.5.9 vs lib/app42/command/client.rb in app42-0.5.10
- old
+ new
@@ -57,12 +57,12 @@
# Some duplicates exists to capture all scenarios
def parse_options(command, args)
opts_parser = OptionParser.new do |opts|
opts.banner = "\nAvailable options:\n\n"
- opts.on('--apiKey API_KEY') { |api| @options[:api] = api }
- opts.on('--secretKey SECRET_KEY') { |secret| @options[:secret] = secret }
+ opts.on('--apiKey API_KEY') { |api| @options[:api] = api }
+ opts.on('--secretKey SECRET_KEY') { |secret| @options[:secret] = secret }
opts.on('-a API_KEY') { |api| @options[:api] = api }
opts.on('-s SECRET_KEY') { |secret| @options[:secret] = secret }
opts.on('--app NAME') { |name| @options[:name] = name }
opts.on('--name NAME') { |name| @options[:name] = name }
@@ -214,10 +214,16 @@
set_cmd(:service, :restart)
when 'stopservice'
set_cmd(:service, :stop)
+ when 'scaleservice'
+ set_cmd(:service, :vscale)
+
+ when 'descaleservice'
+ set_cmd(:service, :vdescale)
+
when 'uploadbackup'
set_cmd(:service, :uploadbackup)
when 'resetservicepassword'
set_cmd(:service, :reset_pass)
@@ -236,10 +242,13 @@
when 'startbpaas'
set_cmd(:setup, :start)
when 'stopbpaas'
- set_cmd(:setup, :stop)
+ set_cmd(:setup, :stop)
+
+ when 'upgradebpaas'
+ set_cmd(:setup, :upgrade_cloud_api)
when 'deletesetup'
set_cmd(:setup, :delete_cloud_api)
when 'setupinfo'
\ No newline at end of file