Class: TorqueBox::Jars

Inherits:
Object
  • Object
show all
Defined in:
core/lib/torquebox-core.rb

Class Method Summary (collapse)

Class Method Details

+ (Object) list



41
42
43
# File 'core/lib/torquebox-core.rb', line 41

def list
  @jars
end

+ (Object) register_and_require(jar)



32
33
34
35
36
37
38
39
# File 'core/lib/torquebox-core.rb', line 32

def register_and_require(jar)
  path = Pathname.new(jar)
  raise 'Jars must be registered using absolute paths' unless path.absolute?
  jar = path.expand_path.to_s
  @jars ||= []
  @jars << jar
  require jar unless EXPLODED_JAR
end