Class: SamlSp::Config

Inherits:
ConfigBlock show all
Defined in:
lib/saml_sp/config.rb

Constant Summary

Constants inherited from ConfigBlock

SamlSp::ConfigBlock::NOVAL_MARKER

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ConfigBlock

inherited

Class Method Details

.load_file(filename) ⇒ Object



41
42
43
44
45
# File 'lib/saml_sp/config.rb', line 41

def self.load_file(filename)
  SamlSp.logger.info "saml-sp: Loading config file '#{filename}'"

  new.interpret File.read(filename), filename
end

Instance Method Details

#artifact_resolution_service(&blk) ⇒ Object



59
60
61
62
# File 'lib/saml_sp/config.rb', line 59

def artifact_resolution_service(&blk)
  dsl = ResolutionSerivceConfig.new
  dsl.interpret(blk)
end

#interpret(config, filename = nil) ⇒ Object



47
48
49
50
51
52
53
# File 'lib/saml_sp/config.rb', line 47

def interpret(config, filename = nil)
  if filename
    instance_eval config, filename
  else
    instance_eval config
  end
end

#logger(logger) ⇒ Object



55
56
57
# File 'lib/saml_sp/config.rb', line 55

def logger(logger)
  SamlSp.logger = logger
end