Sha256: 0644872fc00973a14f84d6177f0a9232cfce4306d8d18432fcc1bb59e987783e

Contents?: true

Size: 811 Bytes

Versions: 14

Compression:

Stored size: 811 Bytes

Contents

Execute.define_task do
  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"  
  def restart
    puts "Stop rhoconnect server ..."
    stop
    puts "Start rhoconnect server ..."
    start options
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rhoconnect-7.6.0 commands/rhoconnect/restart.rb
rhoconnect-7.5.1 commands/rhoconnect/restart.rb
rhoconnect-7.4.1 commands/rhoconnect/restart.rb
rhoconnect-7.1.17 commands/rhoconnect/restart.rb
rhoconnect-6.2.0 commands/rhoconnect/restart.rb
rhoconnect-6.0.11 commands/rhoconnect/restart.rb
rhoconnect-5.5.18 commands/rhoconnect/restart.rb
rhoconnect-5.5.17 commands/rhoconnect/restart.rb
rhoconnect-5.5.15 commands/rhoconnect/restart.rb
rhoconnect-5.5.0.22 commands/rhoconnect/restart.rb
rhoconnect-5.5.2 commands/rhoconnect/restart.rb
rhoconnect-5.5.0.7 commands/rhoconnect/restart.rb
rhoconnect-5.5.0.3 commands/rhoconnect/restart.rb
rhoconnect-5.5.0 commands/rhoconnect/restart.rb