class Souffle::Application::Server

The souffle server command line parser.

Public Class Methods

new() click to toggle source

Grabs all of the cli parameters and generates the mixlib config object.

Calls superclass method Souffle::Application::new
# File lib/souffle/application/souffle-server.rb, line 111
def initialize
  super
  Souffle::Config.merge!(config)
end

Public Instance Methods

run_application() click to toggle source

Runs the Souffle Server.

# File lib/souffle/application/souffle-server.rb, line 124
def run_application
  if Souffle::Config[:daemonize]
    Souffle::Config[:server] = true
    Souffle::Daemon.daemonize("souffle")
  end
  @app.run
end
setup_application() click to toggle source

Configures the souffle server based on the cli parameters.

# File lib/souffle/application/souffle-server.rb, line 117
def setup_application
  Souffle::Daemon.change_privilege
  Souffle::Config[:server] = true if Souffle::Config[:daemonize]
  @app = Souffle::Server.new
end