Skip to content

Commit 43c4c7c

Browse files
committed
Ruby file and extracted temporary filenames match
The embeded template evaluation ruby code had been extracted to disk as `erb_render.rb`, this commit changes that to a (more) conventional `erb_render.rb`, and updates the name of the Ruby file `go:embed`'d into the binary to match this naming.
1 parent 431fdbd commit 43c4c7c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

templatescompiler/erbrenderer/erb_renderer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
boshsys "github.com/cloudfoundry/bosh-utils/system"
1111
)
1212

13-
//go:embed template_evaluation_context.rb
13+
//go:embed erb_renderer.rb
1414
var templateEvaluationContextRb string
1515

1616
type ERBRenderer interface {
@@ -59,7 +59,7 @@ func (r erbRenderer) Render(srcPath, dstPath string, context TemplateEvaluationC
5959
}
6060
}()
6161

62-
rendererScriptPath := filepath.Join(tmpDir, "erb_render.rb")
62+
rendererScriptPath := filepath.Join(tmpDir, "erb_renderer.rb")
6363
err = r.writeRendererScript(rendererScriptPath)
6464
if err != nil {
6565
return err
File renamed without changes.

templatescompiler/erbrenderer/erb_renderer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ property3: default_value3
119119

120120
Describe("error handling within Ruby", func() {
121121
var (
122-
// see template_evaluation_context.rb
122+
// see erb_renderer.rb
123123
rubyExceptionPrefixTemplate = "Error filling in template '%s' "
124124
)
125125

0 commit comments

Comments
 (0)