Class: PopulateMe::Admin
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- PopulateMe::Admin
- Defined in:
- lib/populate_me/admin.rb
Class Method Summary collapse
Class Method Details
.cerberus_auth(user, pass, req) ⇒ Object
132 133 134 |
# File 'lib/populate_me/admin.rb', line 132 def cerberus_auth user, pass, req pass == cerberus_pass end |
.cerberus_available? ⇒ Boolean
127 128 129 130 |
# File 'lib/populate_me/admin.rb', line 127 def cerberus_available? # Method = overridable = testable Rack.const_defined?(:Cerberus) end |
.cerberus_pass ⇒ Object
122 123 124 125 |
# File 'lib/populate_me/admin.rb', line 122 def cerberus_pass # Method = overridable = testable ENV['CERBERUS_PASS'] end |