Load Gemfiles from vendor/chiliproject_plugins

This commit is contained in:
Holger Just 2012-01-11 12:02:25 +01:00
parent cd0ea44ff8
commit 11b441f745
1 changed files with 6 additions and 4 deletions

10
Gemfile
View File

@ -102,7 +102,9 @@ if File.readable?(gemfile_local)
end
# Load plugins' Gemfiles
Dir.glob File.expand_path("../vendor/plugins/*/Gemfile", __FILE__) do |file|
puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
instance_eval File.read(file)
end
["plugins", "chiliproject_plugins"].each do |plugin_path|
Dir.glob File.expand_path("../vendor/#{plugin_path}/*/Gemfile", __FILE__) do |file|
puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
instance_eval File.read(file)
end
end