aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorWilliam Woodruff2015-08-26 17:04:02 -0400
committerXu Cheng2015-08-28 18:02:05 +0800
commitc459349b897e21bab047d442095c0917c1069509 (patch)
treee6a76de3cc73615ae783d4d9c226b01163dbd175 /Library
parentb0d5e17906229e95f2bc548e4b607297e7e907ab (diff)
downloadbrew-c459349b897e21bab047d442095c0917c1069509.tar.bz2
reformat nested heredocs in BuildFlagsError and BuildToolsError to match String#undent behavior
Closes Homebrew/homebrew#43303. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/exceptions.rb26
1 files changed, 13 insertions, 13 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb
index f38233a4f..7816d065c 100644
--- a/Library/Homebrew/exceptions.rb
+++ b/Library/Homebrew/exceptions.rb
@@ -273,25 +273,25 @@ class BuildToolsError < RuntimeError
if MacOS.version >= "10.10"
xcode_text = <<-EOS.undent
To continue, you must install Xcode from the App Store,
- or the CLT by running:
- xcode-select --install
+ or the CLT by running:
+ xcode-select --install
EOS
elsif MacOS.version == "10.9"
xcode_text = <<-EOS.undent
To continue, you must install Xcode from:
- https://developer.apple.com/downloads/
- or the CLT by running:
- xcode-select --install
+ https://developer.apple.com/downloads/
+ or the CLT by running:
+ xcode-select --install
EOS
elsif MacOS.version >= "10.7"
xcode_text = <<-EOS.undent
To continue, you must install Xcode or the CLT from:
- https://developer.apple.com/downloads/
+ https://developer.apple.com/downloads/
EOS
else
xcode_text = <<-EOS.undent
To continue, you must install Xcode from:
- https://developer.apple.com/xcode/downloads/
+ https://developer.apple.com/xcode/downloads/
EOS
end
@@ -320,24 +320,24 @@ class BuildFlagsError < RuntimeError
if MacOS.version >= "10.10"
xcode_text = <<-EOS.undent
or install Xcode from the App Store, or the CLT by running:
- xcode-select --install
+ xcode-select --install
EOS
elsif MacOS.version == "10.9"
xcode_text = <<-EOS.undent
or install Xcode from:
- https://developer.apple.com/downloads/
- or the CLT by running:
- xcode-select --install
+ https://developer.apple.com/downloads/
+ or the CLT by running:
+ xcode-select --install
EOS
elsif MacOS.version >= "10.7"
xcode_text = <<-EOS.undent
or install Xcode or the CLT from:
- https://developer.apple.com/downloads/
+ https://developer.apple.com/downloads/
EOS
else
xcode_text = <<-EOS.undent
or install Xcode from:
- https://developer.apple.com/xcode/downloads/
+ https://developer.apple.com/xcode/downloads/
EOS
end