Class: Souffle::Application::Server
- Inherits:
-
Souffle::Application
- Object
- Souffle::Application
- Souffle::Application::Server
- Defined in:
- lib/souffle/application/souffle-server.rb
Overview
The souffle server command line parser.
Instance Attribute Summary
Attributes inherited from Souffle::Application
Instance Method Summary collapse
-
#initialize ⇒ Server
constructor
Grabs all of the cli parameters and generates the mixlib config object.
-
#run_application ⇒ Object
Runs the Souffle Server.
-
#setup_application ⇒ Object
Configures the souffle server based on the cli parameters.
Methods inherited from Souffle::Application
#configure_logging, #configure_souffle, debug_stacktrace, exit!, fatal!, #reconfigure, #run
Constructor Details
Instance Method Details
#run_application ⇒ Object
Runs the Souffle Server.
124 125 126 127 128 129 130 |
# 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 ⇒ Object
Configures the souffle server based on the cli parameters.
117 118 119 120 121 |
# 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 |