aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/create.rb
diff options
context:
space:
mode:
authorMike McQuaid2017-10-20 14:10:50 +0100
committerGitHub2017-10-20 14:10:50 +0100
commit76cd7c79498daf380d99ed7379394618164b602b (patch)
tree3c4be45df3b0a4d011422064c084f3e80fba80f7 /Library/Homebrew/dev-cmd/create.rb
parenta2374cba6cf9a56897f5feeab7f4add661d3c287 (diff)
parent487bec957007612956ff97b3912f88768becaa32 (diff)
downloadbrew-76cd7c79498daf380d99ed7379394618164b602b.tar.bz2
Merge pull request #3319 from reitermarkus/squiggly-heredocs
Use “squiggly” heredocs.
Diffstat (limited to 'Library/Homebrew/dev-cmd/create.rb')
-rw-r--r--Library/Homebrew/dev-cmd/create.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/dev-cmd/create.rb b/Library/Homebrew/dev-cmd/create.rb
index e423842ba..e5481b532 100644
--- a/Library/Homebrew/dev-cmd/create.rb
+++ b/Library/Homebrew/dev-cmd/create.rb
@@ -71,7 +71,7 @@ module Homebrew
if Formula.aliases.include? fc.name
realname = Formulary.canonical_name(fc.name)
- raise <<-EOS.undent
+ raise <<~EOS
The formula #{realname} is already aliased to #{fc.name}
Please check that you are not creating a duplicate.
To force creation use --force.
@@ -165,7 +165,7 @@ class FormulaCreator
path.write ERB.new(template, nil, ">").result(binding)
end
- def template; <<-EOS.undent
+ def template; <<~EOS
# Documentation: https://docs.brew.sh/Formula-Cookbook.html
# http://www.rubydoc.info/github/Homebrew/brew/master/Formula
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!