Module: Basilik

Defined in:
lib/basilik.rb,
lib/basilik/ref.rb,
lib/basilik/load.rb,
lib/basilik/action.rb,
lib/basilik/faults.rb,
lib/basilik/version.rb,
lib/basilik/snapshot.rb

Defined Under Namespace

Modules: Action, Faults, Ref Classes: Load, Snapshot

Constant Summary collapse

LIBPATH =
::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
PATH =
::File.dirname(LIBPATH) + ::File::SEPARATOR
VERSION =
"0.0.2"

Class Method Summary collapse

Class Method Details

.require_all_libs_relative_to(fname, dir = nil) ⇒ Object



9
10
11
12
13
14
# File 'lib/basilik.rb', line 9

def self.require_all_libs_relative_to( fname, dir = nil )
  dir ||= ::File.basename(fname, '.*')
  search_me = ::File.expand_path(
      ::File.join(::File.dirname(fname), dir, '**', '*.rb'))
  Dir.glob(search_me).sort.each { |rb| require rb }
end