Class: Crabfarm::Live::Context
- Defined in:
- lib/crabfarm/live/context.rb
Defined Under Namespace
Classes: BrowserAdapter
Instance Attribute Summary
Attributes inherited from Context
Instance Method Summary collapse
-
#initialize(_manager) ⇒ Context
constructor
A new instance of Context.
- #proxy ⇒ Object
- #proxy_auth ⇒ Object
Methods inherited from Context
#loaded?, #prepare, #release, #reset
Constructor Details
#initialize(_manager) ⇒ Context
Returns a new instance of Context.
8 9 10 11 |
# File 'lib/crabfarm/live/context.rb', line 8 def initialize(_manager) super() @manager = _manager end |
Instance Method Details
#proxy ⇒ Object
13 14 15 16 |
# File 'lib/crabfarm/live/context.rb', line 13 def proxy # override proxy so every context service points to crabtrap "127.0.0.1:#{@manager.proxy_port}" end |
#proxy_auth ⇒ Object
18 19 20 |
# File 'lib/crabfarm/live/context.rb', line 18 def proxy_auth nil end |