module DREBS

DREBS libs

Constants

Version

Public Instance Methods

dependencies() click to toggle source
# File lib/drebs.rb, line 13
def dependencies
  {
    'right_aws' => ['right_aws', '>= 3.1.0'],
    'logger'    => ['logger'   , '>= 1.2.8'],
    'main'      => ['main'     , '>= 5.2.0'],
    'systemu'   => ['systemu'  , '>= 2.4.2'],
    'json'      => ['json'     , '>= 1.5.1'],
    'pry'       => ['pry'      , '>= 0.9.12.6'],
  }
end
libdir(*args, &block) click to toggle source
# File lib/drebs.rb, line 24
def libdir(*args, &block)
  @libdir ||= File.expand_path(__FILE__).sub(/\.rb$/,'')
  args.empty? ? @libdir : File.join(@libdir, *args)
ensure
  if block
    begin
      $LOAD_PATH.unshift(@libdir)
      block.call()
    ensure
      $LOAD_PATH.shift()
    end
  end
end
load(*libs) click to toggle source
# File lib/drebs.rb, line 38
def load(*libs)
  libs = libs.join(' ').scan(/[^\s+]+/)
  DREBS.libdir{ libs.each{|lib| Kernel.load(lib) } }
end
version() click to toggle source
# File lib/drebs.rb, line 9
def version
  DREBS::Version
end