class RooOnRails::Config

Constants

ENABLED_PATTERN

Public Class Methods

google_auth_controller() click to toggle source
# File lib/roo_on_rails/config.rb, line 24
def google_auth_controller
  ENV.fetch('GOOGLE_AUTH_CONTROLLER')
end
google_auth_enabled?() click to toggle source
# File lib/roo_on_rails/config.rb, line 16
def google_auth_enabled?
  enabled? 'GOOGLE_AUTH_ENABLED', default: false
end
google_auth_path_prefix() click to toggle source
# File lib/roo_on_rails/config.rb, line 20
def google_auth_path_prefix
  ENV.fetch('GOOGLE_AUTH_PATH_PREFIX')
end
load() click to toggle source
Calls superclass method
# File lib/roo_on_rails/config.rb, line 7
def load
  path = Pathname '.roo_on_rails.yml'
  path.exist? ? super(path) : new
end
sidekiq_enabled?() click to toggle source
# File lib/roo_on_rails/config.rb, line 12
def sidekiq_enabled?
  enabled? 'SIDEKIQ_ENABLED'
end

Private Class Methods

enabled?(var, default: 'true') click to toggle source
# File lib/roo_on_rails/config.rb, line 32
def enabled?(var, default: 'true')
  ENABLED_PATTERN === ENV.fetch(var, default).to_s
end