Skip to content

Commit b009268

Browse files
committed
ok, this makes sense - run the bundle when cloning and/or updating rails/arel
1 parent 27a55c8 commit b009268

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

Rakefile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,27 +58,33 @@ namespace :rails do
5858
desc "clone the rails repo"
5959
task :clone do
6060
mkdir 'vendor' unless File.directory?('vendor')
61+
unless File.directory?('vendor/arel')
62+
Dir.chdir('vendor') do
63+
sh "git clone git://github.com/rails/arel"
64+
end
65+
end
6166
unless File.directory?('vendor/rails')
6267
Dir.chdir('vendor') do
6368
sh "git clone git://github.com/rails/rails"
6469
end
6570
end
66-
unless File.directory?('vendor/arel')
67-
Dir.chdir('vendor') do
68-
sh "git clone git://github.com/rails/arel"
71+
unless File.exist?('vendor/rails/Gemfile.lock')
72+
Dir.chdir('vendor/rails') do
73+
sh "bundle install"
6974
end
7075
end
7176
end
7277

7378
desc "update the rails repo"
7479
task :update => :clone do
75-
Dir.chdir('vendor/rails') do
80+
Dir.chdir('vendor/arel') do
7681
sh "git checkout master"
7782
sh "git pull"
7883
end
79-
Dir.chdir('vendor/arel') do
84+
Dir.chdir('vendor/rails') do
8085
sh "git checkout master"
8186
sh "git pull"
87+
sh "bundle install"
8288
end
8389
end
8490
end

0 commit comments

Comments
 (0)