commands/rhoconnect/restart.rb in rhoconnect-3.4.5 vs commands/rhoconnect/restart.rb in rhoconnect-4.0.0.beta.10

- old
+ new

@@ -1,7 +1,15 @@ Execute.define_task do - desc "restart", "Alias for `rhoconnect stop; rhoconnect start`" + desc "restart [options]", "Alias for `rhoconnect stop; rhoconnect start`" + method_option :port, :aliases => "-p", :type => :numeric, :desc => "Use port (default: #{RHOCONNECT_PORT})" + method_option :redis, :aliases => "-r", :type => :string, :desc => "Redis server settings: (default: #{REDIS_SERVER_URL})" + method_option :push_server, :aliases => "-P", :type => :string, :desc => "Push server settings (default: #{PUSH_SERVER_URL})" + method_option :api_token, :aliases => "-t", :type => :string, :desc => "API token (default: #{API_TOKEN})" + method_option :config, :aliases => "-f", :type => :string, :desc => "/path/to/rhoconnect/settings.yml file" + method_option :licenseflie, :aliases => "-l", :type => :string, :desc => "/path/to/license.key file" def restart - invoke :stop - invoke :start - end #restart -end #do + puts "Stop rhoconnect server ..." + stop + puts "Start rhoconnect server ..." + start options + end +end \ No newline at end of file