diff --git a/pipeline/brew/template.go b/pipeline/brew/template.go index a70ff4c82..392c9db07 100644 --- a/pipeline/brew/template.go +++ b/pipeline/brew/template.go @@ -58,7 +58,7 @@ const formulaTemplate = `class {{ .Name }} < Formula plist_options :startup => false - def plist; <<-EOS.undent + def plist; <<~EOS {{ .Plist }} EOS end diff --git a/pipeline/brew/testdata/run_pipe.rb.golden b/pipeline/brew/testdata/run_pipe.rb.golden index 80faa6972..72b0fcfcf 100644 --- a/pipeline/brew/testdata/run_pipe.rb.golden +++ b/pipeline/brew/testdata/run_pipe.rb.golden @@ -21,7 +21,7 @@ class RunPipe < Formula plist_options :startup => false - def plist; <<-EOS.undent + def plist; <<~EOS whatever EOS end diff --git a/pipeline/brew/testdata/run_pipe_download_strategy.rb.golden b/pipeline/brew/testdata/run_pipe_download_strategy.rb.golden index c57407b76..fe5efc9b6 100644 --- a/pipeline/brew/testdata/run_pipe_download_strategy.rb.golden +++ b/pipeline/brew/testdata/run_pipe_download_strategy.rb.golden @@ -21,7 +21,7 @@ class RunPipe < Formula plist_options :startup => false - def plist; <<-EOS.undent + def plist; <<~EOS whatever EOS end diff --git a/pipeline/brew/testdata/run_pipe_enterprise.rb.golden b/pipeline/brew/testdata/run_pipe_enterprise.rb.golden index 4b24ce03a..d0df1ac82 100644 --- a/pipeline/brew/testdata/run_pipe_enterprise.rb.golden +++ b/pipeline/brew/testdata/run_pipe_enterprise.rb.golden @@ -21,7 +21,7 @@ class RunPipe < Formula plist_options :startup => false - def plist; <<-EOS.undent + def plist; <<~EOS whatever EOS end diff --git a/pipeline/brew/testdata/test.rb.golden b/pipeline/brew/testdata/test.rb.golden index 80da53fc7..9c110e37f 100644 --- a/pipeline/brew/testdata/test.rb.golden +++ b/pipeline/brew/testdata/test.rb.golden @@ -20,7 +20,7 @@ class Test < Formula plist_options :startup => false - def plist; <<-EOS.undent + def plist; <<~EOS it works EOS end