Class: Flor::CoreLoader
- Inherits:
-
Object
- Object
- Flor::CoreLoader
- Defined in:
- lib/flor/unit/loader.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#require(conf) ⇒ Object
Called to interpret require: confs from hooks and friends.
- #shutdown ⇒ Object
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 |
#shutdown ⇒ Object
7 8 |
# File 'lib/flor/unit/loader.rb', line 7 def shutdown end |