summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-08 12:57:24 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-08 15:36:46 +0200
commitd8cf7d287359a71733a5fff5be60d53cbfcc02b0 (patch)
tree1e6885253cc9fbd029ba5803ea6b52b86045575c /Rakefile
parent89db9cd10f1a26236943e7809258eee78d9366c4 (diff)
downloadbundler-d8cf7d287359a71733a5fff5be60d53cbfcc02b0.tar.gz
Extract a common error message
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index 170dec5e4e..2ac7738a3d 100644
--- a/Rakefile
+++ b/Rakefile
@@ -265,18 +265,20 @@ begin
require "automatiek"
rescue LoadError
+ msg = "We couldn't activate automatiek (#{automatiek_requirement}). Try `gem install automatiek:'#{automatiek_requirement}'` to be able to vendor gems"
+
namespace :vendor do
desc "Vendor a specific version of molinillo"
- task(:molinillo) { abort "We couldn't activate automatiek (#{automatiek_requirement}). Try `gem install automatiek:'#{automatiek_requirement}'` to be able to vendor gems" }
+ task(:molinillo) { abort msg }
desc "Vendor a specific version of fileutils"
- task(:fileutils) { abort "We couldn't activate automatiek (#{automatiek_requirement}). Try `gem install automatiek:'#{automatiek_requirement}'` to be able to vendor gems" }
+ task(:fileutils) { abort msg }
desc "Vendor a specific version of thor"
- task(:thor) { abort "We couldn't activate automatiek (#{automatiek_requirement}). Try `gem install automatiek:'#{automatiek_requirement}'` to be able to vendor gems" }
+ task(:thor) { abort msg }
desc "Vendor a specific version of net-http-persistent"
- task(:"net-http-persistent") { abort "We couldn't activate automatiek (#{automatiek_requirement}). Try `gem install automatiek:'#{automatiek_requirement}'` to be able to vendor gems" }
+ task(:"net-http-persistent") { abort msg }
end
else
desc "Vendor a specific version of molinillo"