lib/app42/command/client.rb in app42-0.5.10 vs lib/app42/command/client.rb in app42-0.6.0

- old
+ new

@@ -77,10 +77,13 @@ 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('--wordpress WORDPRESS') { |setup| @options[:wordpress] = wordpress } + opts.on('-wp WORDPRESSNAME') { |setup| @options[:wordpress] = wordpress } + opts.on('-h', '--help') { puts "#{App42::Base::Help.usage(command)}\n"; exit! } end opts_parser.parse!(args) self end @@ -245,19 +248,46 @@ when 'stopbpaas' set_cmd(:setup, :stop) when 'upgradebpaas' - set_cmd(:setup, :upgrade_cloud_api) + set_cmd(:setup, :upgrade) + when 'downgradebpaas' + set_cmd(:setup, :downgrade) + when 'deletesetup' set_cmd(:setup, :delete_cloud_api) when 'setupinfo' set_cmd(:setup, :info) when 'setups' - set_cmd(:setup, :setups) + set_cmd(:setup, :setups) + + when 'setupwordpress' + set_cmd(:wordpress, :setup) + + when 'deletewordpress' + set_cmd(:wordpress, :delete) + + when 'upgradewordpress' + set_cmd(:wordpress, :upgrade) + + when 'downgradewordpress' + set_cmd(:wordpress, :downgrade) + + when 'startwordpress' + set_cmd(:wordpress, :start) + + when 'stopwordpress' + set_cmd(:wordpress, :stop) + + when 'wordpresssetups' + set_cmd(:wordpress, :wordpresssetups) + + when 'wordpressinfo' + set_cmd(:wordpress, :info) else puts Paint["app42: Unknown command [#{action}]", :red] App42::Base::Help.how_to end \ No newline at end of file