Method: Aker::Cas::RackProxyCallback#initialize

Defined in:
lib/aker/cas/rack_proxy_callback.rb

#initialize(app, options = {}) ⇒ RackProxyCallback

Create a new instance of the middleware.

Parameters:

  • app (#call)

    the next rack application in the chain.

  • options (Hash) (defaults to: {})

Options Hash (options):

  • :store (String)

    the file where the middleware will store the received PGTs until they are retrieved.



53
54
55
56
57
# File 'lib/aker/cas/rack_proxy_callback.rb', line 53

def initialize(app, options={})
  @app = app
  @store_filename = options.delete(:store) or
    raise "Please specify a filename for the PGT store"
end