Class: PhobosCheckpointUI::StaticApp

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/phobos_checkpoint_ui/static_app.rb

Constant Summary collapse

SESSION_KEY =
'_phobos_checkpoint_ui'
NO_AUTH =
%w(
  /ping
  /auth/saml
  /auth/failure
  /auth/saml/callback
).freeze

Class Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app = nil, saml_handler = SamlHandler) {|_self| ... } ⇒ StaticApp

Returns a new instance of StaticApp.

Yields:

  • (_self)

Yield Parameters:



7
8
9
10
11
12
13
# File 'lib/phobos_checkpoint_ui/static_app.rb', line 7

def initialize(app = nil, saml_handler = SamlHandler)
  super()
  @app = app
  @saml_handler = saml_handler
  @template_cache = Tilt::Cache.new
  yield self if block_given?
end

Class Attribute Details

.configsObject

Returns the value of attribute configs.



4
5
6
# File 'lib/phobos_checkpoint_ui/static_app.rb', line 4

def configs
  @configs
end