Skip to content

Commit f547cfa

Browse files
committed
[MODEL] Added the rake bundle:install Rake task to install dependencies for all gemfiles
1 parent 39b1167 commit f547cfa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

elasticsearch-model/Rakefile

+9
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ desc "Run unit tests"
44
task :default => 'test:unit'
55
task :test => 'test:unit'
66

7+
namespace :bundler do
8+
desc "Install dependencies for all the Gemfiles"
9+
task :install do
10+
sh "BUNDLE_GEMFILE='#{File.expand_path('../gemfiles/3.0.gemfile', __FILE__)}' bundle install"
11+
sh "BUNDLE_GEMFILE='#{File.expand_path('../gemfiles/4.0.gemfile', __FILE__)}' bundle install"
12+
sh "BUNDLE_GEMFILE='#{File.expand_path('../gemfiles/5.0.gemfile', __FILE__)}' bundle install"
13+
end
14+
end
15+
716
# ----- Test tasks ------------------------------------------------------------
817

918
require 'rake/testtask'

0 commit comments

Comments
 (0)