Module: InspectRequest
- Defined in:
- lib/umbrella.rb,
lib/umbrella/version.rb
Defined Under Namespace
Classes: Checker
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
- .session ⇒ Object
- .shutdown ⇒ Object
-
.start ⇒ Object
Your code goes here…
- .started? ⇒ Boolean
Class Method Details
.session ⇒ Object
62 63 64 |
# File 'lib/umbrella.rb', line 62 def self.session @session end |
.shutdown ⇒ Object
53 54 55 56 |
# File 'lib/umbrella.rb', line 53 def self.shutdown @session.shutdown if @started @started = false end |
.start ⇒ Object
Your code goes here…
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/umbrella.rb', line 42 def self.start return if @started @session = Ritm::Session.new @session.configure do proxy[:bind_address] = '0.0.0.0' proxy[:bind_port] = 7777 end @session.start @started = true end |
.started? ⇒ Boolean
58 59 60 |
# File 'lib/umbrella.rb', line 58 def self.started? @started end |