Module: DREBS
Overview
DREBS libs
Constant Summary collapse
- Version =
'0.1.1'
Instance Method Summary collapse
Instance Method Details
#dependencies ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/drebs.rb', line 14 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) ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/drebs.rb', line 25 def libdir(*args, &block) @libdir ||= File.(__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 |