Class: Crabfarm::Live::Context

Inherits:
Context
  • Object
show all
Defined in:
lib/crabfarm/live/context.rb

Defined Under Namespace

Classes: BrowserAdapter

Instance Attribute Summary

Attributes inherited from Context

#pool, #store

Instance Method Summary collapse

Methods inherited from Context

#loaded?, #prepare, #release, #reset

Constructor Details

#initialize(_manager) ⇒ Context

Returns a new instance of Context.



8
9
10
# File 'lib/crabfarm/live/context.rb', line 8

def initialize(_manager)
  @manager = _manager
end

Instance Method Details

#proxyObject



12
13
14
15
# File 'lib/crabfarm/live/context.rb', line 12

def proxy
  # override proxy so every context service points to crabtrap
  "127.0.0.1:#{@manager.proxy_port}"
end