Commit 46a6f8635576848330d8fa49463fa889706ddae5
1 parent
1eb456dd
Exists in
master
and in
29 other branches
rails3: load gemfile from plugins
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
Gemfile
@@ -26,6 +26,12 @@ group :cucumber do | @@ -26,6 +26,12 @@ group :cucumber do | ||
26 | gem 'selenium-webdriver' | 26 | gem 'selenium-webdriver' |
27 | end | 27 | end |
28 | 28 | ||
29 | +# include plugin gemfiles | ||
30 | +Dir.glob(File.join('config', 'plugins', '*')).each do |plugin| | ||
31 | + plugin_gemfile = File.join(plugin, 'Gemfile') | ||
32 | + eval File.read(plugin_gemfile) if File.exists?(plugin_gemfile) | ||
33 | +end | ||
34 | + | ||
29 | def program(name) | 35 | def program(name) |
30 | unless system("which #{name} > /dev/null") | 36 | unless system("which #{name} > /dev/null") |
31 | puts "W: Program #{name} is needed, but was not found in your PATH" | 37 | puts "W: Program #{name} is needed, but was not found in your PATH" |