aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-10-15 02:28:32 +0200
committerMarkus Reiter2017-10-18 14:39:09 +0200
commit9bee9ca5757d1c5f720787737fed6a534a620d72 (patch)
treeb1eed297d9eb169673d2ed308e5ef3ca3bb09d12 /Library/Homebrew/utils.rb
parent270b752f5d9d218bfbed6fe85b6974fa653fb25f (diff)
downloadbrew-9bee9ca5757d1c5f720787737fed6a534a620d72.tar.bz2
Use “squiggly” heredocs.
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 237ffa74e..2211ed75b 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -93,7 +93,7 @@ def odeprecated(method, replacement = nil, disable: false, disable_on: nil, call
end
caller_message ||= backtrace[1]
- message = <<-EOS.undent
+ message = <<~EOS
Calling #{method} is #{verb}!
#{replacement_message}
#{caller_message}#{tap_message}
@@ -223,7 +223,7 @@ module Homebrew
end
return if which(executable)
- odie <<-EOS.undent
+ odie <<~EOS
The '#{name}' gem is installed but couldn't find '#{executable}' in the PATH:
#{ENV["PATH"]}
EOS
@@ -347,7 +347,7 @@ def which_editor
end
editor ||= "/usr/bin/vim"
- opoo <<-EOS.undent
+ opoo <<~EOS
Using #{editor} because no editor was set in the environment.
This may change in the future, so we recommend setting EDITOR,
or HOMEBREW_EDITOR to your preferred text editor.