Class: Staccato::Proxy::Supervisor
- Inherits:
-
Object
- Object
- Staccato::Proxy::Supervisor
- Defined in:
- lib/staccato/proxy/supervisor.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #debug? ⇒ Boolean
- #host ⇒ Object
-
#initialize(options) ⇒ Supervisor
constructor
A new instance of Supervisor.
- #port ⇒ Object
- #run ⇒ Object
- #terminate ⇒ Object
- #url ⇒ Object
Constructor Details
#initialize(options) ⇒ Supervisor
5 6 7 |
# File 'lib/staccato/proxy/supervisor.rb', line 5 def initialize() = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/staccato/proxy/supervisor.rb', line 3 def end |
Instance Method Details
#debug? ⇒ Boolean
21 22 23 |
# File 'lib/staccato/proxy/supervisor.rb', line 21 def debug? .fetch(:debug, false) end |
#host ⇒ Object
9 10 11 |
# File 'lib/staccato/proxy/supervisor.rb', line 9 def host .fetch(:host, '0.0.0.0') end |
#port ⇒ Object
13 14 15 |
# File 'lib/staccato/proxy/supervisor.rb', line 13 def port .fetch(:port, 9090) end |
#run ⇒ Object
25 26 27 28 |
# File 'lib/staccato/proxy/supervisor.rb', line 25 def run config.deploy self end |
#terminate ⇒ Object
30 31 32 |
# File 'lib/staccato/proxy/supervisor.rb', line 30 def terminate config.shutdown end |
#url ⇒ Object
17 18 19 |
# File 'lib/staccato/proxy/supervisor.rb', line 17 def url .fetch(:url, GA_COLLECTION_URL) end |