Class: Ritm::Proxy::Launcher
- Inherits:
-
Object
- Object
- Ritm::Proxy::Launcher
- Defined in:
- lib/ritm/proxy/launcher.rb
Overview
Launches the Proxy server and the SSL Reverse Proxy with the given settings
Instance Method Summary collapse
-
#initialize(session) ⇒ Launcher
constructor
A new instance of Launcher.
-
#shutdown ⇒ Object
Stops the service.
-
#start ⇒ Object
Starts the service (non blocking).
Constructor Details
#initialize(session) ⇒ Launcher
Returns a new instance of Launcher.
10 11 12 13 14 |
# File 'lib/ritm/proxy/launcher.rb', line 10 def initialize(session) build_settings(session) build_reverse_proxy build_proxy end |
Instance Method Details
#shutdown ⇒ Object
Stops the service
23 24 25 26 |
# File 'lib/ritm/proxy/launcher.rb', line 23 def shutdown @https.shutdown @http.shutdown end |
#start ⇒ Object
Starts the service (non blocking)
17 18 19 20 |
# File 'lib/ritm/proxy/launcher.rb', line 17 def start @https.start_async @http.start_async end |