lib/app42/command/client.rb in app42-0.5.8 vs lib/app42/command/client.rb in app42-0.5.9
- old
+ new
@@ -68,13 +68,19 @@
opts.on('--name NAME') { |name| @options[:name] = name }
opts.on('--instance INSTANCE') { |instance| @options[:instance] = instance }
opts.on('-i INSTANCE') { |instance| @options[:instance] = instance }
+ opts.on('--kontena KONTENA') { |kontena| @options[:kontena] = kontena }
+ opts.on('-i KONTENA') { |kontena| @options[:kontena] = kontena }
+
opts.on('--service SERVICE') { |service| @options[:service] = service }
opts.on('-s SERVICE') { |service| @options[:service] = service }
+ opts.on('--setup SETUP') { |setup| @options[:setup] = setup }
+ opts.on('-s SETUP') { |setup| @options[:setup] = setup }
+
opts.on('-h', '--help') { puts "#{App42::Base::Help.usage(command)}\n"; exit! }
end
opts_parser.parse!(args)
self
end
@@ -206,12 +212,15 @@
when 'restartservice'
set_cmd(:service, :restart)
when 'stopservice'
- set_cmd(:service, :stop)
+ set_cmd(:service, :stop)
+ when 'uploadbackup'
+ set_cmd(:service, :uploadbackup)
+
when 'resetservicepassword'
set_cmd(:service, :reset_pass)
when 'bindip'
set_cmd(:service, :service_bind)
@@ -222,9 +231,15 @@
when 'bindinfo'
set_cmd(:service, :service_bindInfo)
when 'setupbpaas'
set_cmd(:setup, :setup_cloud_api)
+
+ when 'startbpaas'
+ set_cmd(:setup, :start)
+
+ when 'stopbpaas'
+ set_cmd(:setup, :stop)
when 'deletesetup'
set_cmd(:setup, :delete_cloud_api)
when 'setupinfo'
\ No newline at end of file