File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -58,27 +58,33 @@ namespace :rails do
58
58
desc "clone the rails repo"
59
59
task :clone do
60
60
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
61
66
unless File . directory? ( 'vendor/rails' )
62
67
Dir . chdir ( 'vendor' ) do
63
68
sh "git clone git://github.com/rails/rails"
64
69
end
65
70
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 "
69
74
end
70
75
end
71
76
end
72
77
73
78
desc "update the rails repo"
74
79
task :update => :clone do
75
- Dir . chdir ( 'vendor/rails ' ) do
80
+ Dir . chdir ( 'vendor/arel ' ) do
76
81
sh "git checkout master"
77
82
sh "git pull"
78
83
end
79
- Dir . chdir ( 'vendor/arel ' ) do
84
+ Dir . chdir ( 'vendor/rails ' ) do
80
85
sh "git checkout master"
81
86
sh "git pull"
87
+ sh "bundle install"
82
88
end
83
89
end
84
90
end
You can’t perform that action at this time.
0 commit comments