Module: Pkg
- Included in:
- Dock
- Defined in:
- lib/dock/env.rb
Class Method Summary collapse
Class Method Details
.onload(pkg, lib) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/dock/env.rb', line 2 def Pkg.onload(pkg, lib) list = lib.join(' ') print list begin lib.each {|lib| require File.dirname(__FILE__)+'/'+lib} rescue Gem::LoadError => e raise Gem::LoadError, 'It seems you have an outdated version of one of the following gems: '+list rescue LoadError => e raise Gem::LoadError, 'Error loading '+pkg+' gems. Make sure that all of the following gems are available: '+list end return true end |