Class: Flor::CoreLoader

Inherits:
Object
  • Object
show all
Defined in:
lib/flor/unit/loader.rb

Direct Known Subclasses

HashLoader, Loader

Instance Method Summary collapse

Instance Method Details

#require(conf) ⇒ Object

Called to interpret require: confs from hooks and friends



12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/flor/unit/loader.rb', line 12

def require(conf)

  re = conf['require']

  return unless re

  ::Kernel.require(
    if path = conf['_path']
      File.join(File.dirname(path), re)
    else
      re
    end)
end

#shutdownObject



7
8
# File 'lib/flor/unit/loader.rb', line 7

def shutdown
end