Module: SamlSp

Defined in:
lib/saml-sp.rb,
lib/saml_sp/config.rb

Defined Under Namespace

Modules: Logging Classes: Config, ConfigBlock, ConfigurationError, HttpBasicAuthConfig, ResolutionSerivceConfig

Constant Summary collapse

LIBPATH =

:stopdoc:

::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
PATH =
::File.dirname(LIBPATH) + ::File::SEPARATOR
VERSION =
::File.read(PATH + 'VERSION').strip
BITBUCKET_LOGGER =

Logger that does nothing

Logger.new(nil)

Class Method Summary collapse

Class Method Details

.libpath(*args) ⇒ Object

Returns the library path for the module. If any arguments are given, they will be joined to the end of the libray path using File.join.



21
22
23
# File 'lib/saml-sp.rb', line 21

def self.libpath( *args )
  args.empty? ? LIBPATH : ::File.join(LIBPATH, args.flatten)
end

.loggerObject

The logger saml-sp should use



41
42
43
# File 'lib/saml-sp.rb', line 41

def self.logger
  @@logger ||= BITBUCKET_LOGGER
end

.logger=(a_logger) ⇒ Object

Set the logger for saml-sp



46
47
48
# File 'lib/saml-sp.rb', line 46

def self.logger=(a_logger)
  @@logger = a_logger
end

.path(*args) ⇒ Object

Returns the lpath for the module. If any arguments are given, they will be joined to the end of the path using File.join.



29
30
31
# File 'lib/saml-sp.rb', line 29

def self.path( *args )
  args.empty? ? PATH : ::File.join(PATH, args.flatten)
end

.versionObject

Returns the version string for the library.



13
14
15
# File 'lib/saml-sp.rb', line 13

def self.version
  VERSION
end