module PhobosCheckpointUI
Constants
- VERSION
Public Class Methods
config()
click to toggle source
# File lib/phobos_checkpoint_ui.rb, line 11 def config @config || {} end
configure(path='config/checkpoint_ui.yml')
click to toggle source
# File lib/phobos_checkpoint_ui.rb, line 19 def configure(path='config/checkpoint_ui.yml') @config = read_config(path) end
read_config(path)
click to toggle source
# File lib/phobos_checkpoint_ui.rb, line 23 def read_config(path) return {} unless File.exists? path YAML.load( ERB.new( File.read( File.expand_path(path) ) ).result ).deep_symbolize_keys end
use_saml?()
click to toggle source
# File lib/phobos_checkpoint_ui.rb, line 15 def use_saml? self.config.dig(:saml).present? end