Class: TorqueBox::Kernel

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

Class Method Summary (collapse)

Class Method Details

+ (Object) [](name)



31
32
33
34
# File 'core/lib/torquebox/kernel.rb', line 31

def self.[](name)
  $stderr.puts "[WARNING] >>> TorqueBox::Kernel is deprecated. Please begin using TorqueBox::ServiceRegistry instead."
  self.lookup(name)
end

+ (Object) blocks



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

def self.blocks
  $stderr.puts "[WARNING] >>> TorqueBox::Kernel is deprecated. Please begin using TorqueBox::ServiceRegistry instead."
  TorqueBox::ServiceRegistry.blocks
end

+ (Object) kernel=(kernel)



24
25
26
27
28
# File 'core/lib/torquebox/kernel.rb', line 24

def self.kernel=(kernel)
  $stderr.puts "[WARNING] >>> TorqueBox::Kernel is deprecated. Please begin using TorqueBox::ServiceRegistry instead."
  # is this even reasonable?
  TorqueBox::ServiceRegistry.service_registry = kernel
end

+ (Object) lookup(name, &block)



36
37
38
39
# File 'core/lib/torquebox/kernel.rb', line 36

def self.lookup(name, &block)
  $stderr.puts "[WARNING] >>> TorqueBox::Kernel is deprecated. Please begin using TorqueBox::ServiceRegistry instead."
  TorqueBox::ServiceRegistry.lookup(name, &block)
end