Module: Bigbertha

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

Defined Under Namespace

Modules: Action, Faults Classes: Ref, Snapshot

Constant Summary collapse

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

Class Method Summary collapse

Class Method Details

.require_all_libs_relative_to(fname, dir = nil) ⇒ Object



9
10
11
12
13
14
# File 'lib/bigbertha.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