Module: Keyczar

Defined in:
lib/keyczar.rb,
lib/keyczar/signer.rb,
lib/keyczar/version.rb

Defined Under Namespace

Classes: Signer

Constant Summary collapse

VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.load_jars!Object



12
13
14
15
16
17
18
# File 'lib/keyczar.rb', line 12

def self.load_jars!
  @load_jars ||= begin
    jars = Dir[ root + "jars/*.jar" ]
    jars.each { |jar| require jar }
    true
  end
end

.rootObject



8
9
10
# File 'lib/keyczar.rb', line 8

def self.root
  @root ||= Pathname(File.dirname File.expand_path(__FILE__))
end

.set_logger_properties(props_file) ⇒ nil

Returns Nil is a good sign.

Parameters:

  • The (String)

    full file-system path to a Log4j Properties File

Returns:

  • (nil)

    Nil is a good sign



22
23
24
# File 'lib/keyczar.rb', line 22

def self.set_logger_properties(props_file)
  org.apache.log4j.PropertyConfigurator.configure(props_file.to_s)
end