Class: Monban::WardenSetup

Inherits:
Object
  • Object
show all
Defined in:
lib/monban/warden_setup.rb

Overview

Sets up warden specifics for working with monban

Since:

  • 0.0.15

Instance Method Summary collapse

Constructor Details

#initialize(warden_config) ⇒ WardenSetup

Returns a new instance of WardenSetup.

Since:

  • 0.0.15



7
8
9
# File 'lib/monban/warden_setup.rb', line 7

def initialize(warden_config)
  @warden_config = warden_config
end

Instance Method Details

#callObject

Sets up warden specifics for working with monban:

  • Session serialization

  • Strategy

  • Failure app

Since:

  • 0.0.15



15
16
17
18
19
# File 'lib/monban/warden_setup.rb', line 15

def call
  setup_warden_manager
  setup_warden_strategies
  setup_warden_config
end