Class: RooOnRails::Config

Inherits:
Hashie::Mash
  • Object
show all
Defined in:
lib/roo_on_rails/config.rb

Class Method Summary collapse

Class Method Details

.google_auth_controllerObject



24
25
26
# File 'lib/roo_on_rails/config.rb', line 24

def google_auth_controller
  ENV.fetch('GOOGLE_AUTH_CONTROLLER')
end

.google_auth_enabled?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/roo_on_rails/config.rb', line 16

def google_auth_enabled?
  enabled? 'GOOGLE_AUTH_ENABLED', default: false
end

.google_auth_path_prefixObject



20
21
22
# File 'lib/roo_on_rails/config.rb', line 20

def google_auth_path_prefix
  ENV.fetch('GOOGLE_AUTH_PATH_PREFIX')
end

.loadObject



7
8
9
10
# 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?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/roo_on_rails/config.rb', line 12

def sidekiq_enabled?
  enabled? 'SIDEKIQ_ENABLED'
end