Class: Ritm::Proxy::Launcher

Inherits:
Object
  • Object
show all
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

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

#shutdownObject

Stops the service



23
24
25
26
# File 'lib/ritm/proxy/launcher.rb', line 23

def shutdown
  @https.shutdown
  @http.shutdown
end

#startObject

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