File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -58,21 +58,20 @@ namespace :rails do
58
58
desc "clone the rails repo"
59
59
task :clone do
60
60
mkdir 'vendor' unless File . directory? ( 'vendor' )
61
+ install_bundle = false
61
62
unless File . directory? ( 'vendor/arel' )
63
+ install_bundle = true
62
64
Dir . chdir ( 'vendor' ) do
63
65
sh "git clone git://github.com/rails/arel"
64
66
end
65
67
end
66
68
unless File . directory? ( 'vendor/rails' )
69
+ install_bundle = true
67
70
Dir . chdir ( 'vendor' ) do
68
71
sh "git clone git://github.com/rails/rails"
69
72
end
70
73
end
71
- unless File . exist? ( 'vendor/rails/Gemfile.lock' )
72
- Dir . chdir ( 'vendor/rails' ) do
73
- sh "bundle install"
74
- end
75
- end
74
+ sh "bundle install" if install_bundle
76
75
end
77
76
78
77
desc "update the rails repo"
@@ -84,8 +83,8 @@ namespace :rails do
84
83
Dir . chdir ( 'vendor/rails' ) do
85
84
sh "git checkout master"
86
85
sh "git pull"
87
- sh "bundle install"
88
86
end
87
+ sh "bundle install"
89
88
end
90
89
end
91
90
You can’t perform that action at this time.
0 commit comments