Commit 46a6f8635576848330d8fa49463fa889706ddae5
1 parent
1eb456dd
Exists in
master
and in
27 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 | 26 | gem 'selenium-webdriver' |
| 27 | 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 | 35 | def program(name) |
| 30 | 36 | unless system("which #{name} > /dev/null") |
| 31 | 37 | puts "W: Program #{name} is needed, but was not found in your PATH" | ... | ... |