bosh-template 2.2.1 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 01d69552923f4dfd1902462b47700dafdd64c091776af13857184a8cb965ef2d
|
4
|
+
data.tar.gz: 593d53fe6d34c009da3b713d8ea24c66e46c73798417d74b80929b065cc34a0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab2f789ecfd531efa14e2620770b8ac14b73a29c7b1fa47072a27f06e3b9f1262c5035e93f26f975e759e5f4400b1432ee5477fc696a4fad9df849d753e36c26
|
7
|
+
data.tar.gz: 435a6311b59e22e6849c37409d4e72613260387a7861fb5324ee4ca875e73c0e5ab630f9e3c4265025a3766cf8829a378a3229a2a1a40ea56d58ed34e3f634f5
|
@@ -12,7 +12,7 @@ module Bosh
|
|
12
12
|
def render(template_name)
|
13
13
|
spec = JSON.parse(@context)
|
14
14
|
evaluation_context = EvaluationContext.new(spec, nil)
|
15
|
-
template = ERB.new(File.read(template_name),
|
15
|
+
template = ERB.new(File.read(template_name), trim_mode: "-")
|
16
16
|
template.result(evaluation_context.get_binding)
|
17
17
|
end
|
18
18
|
end
|
@@ -8,7 +8,7 @@ module Bosh::Template::Test
|
|
8
8
|
@job_path = File.join(@release_path, 'jobs', @name)
|
9
9
|
# raise "No such job at path: #{@job_path}" if !File.exist?(@job_path)
|
10
10
|
spec_path = File.join(@job_path, 'spec')
|
11
|
-
@spec = YAML.load(File.read(spec_path))
|
11
|
+
@spec = YAML.load(File.read(spec_path), aliases: true)
|
12
12
|
@templates = @spec['templates']
|
13
13
|
end
|
14
14
|
|
@@ -19,7 +19,7 @@ module Bosh::Template
|
|
19
19
|
|
20
20
|
binding = Bosh::Template::EvaluationContext.new(sanitized_hash_with_spec, nil).get_binding
|
21
21
|
raise "No such file at #{@template_path}" unless File.exist?(@template_path)
|
22
|
-
ERB.new(File.read(@template_path),
|
22
|
+
ERB.new(File.read(@template_path), trim_mode: '-').result(binding)
|
23
23
|
end
|
24
24
|
|
25
25
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bosh-template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pivotal
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: semi_semantic
|
@@ -56,7 +56,7 @@ homepage: https://github.com/cloudfoundry/bosh
|
|
56
56
|
licenses:
|
57
57
|
- Apache-2.0
|
58
58
|
metadata: {}
|
59
|
-
post_install_message:
|
59
|
+
post_install_message:
|
60
60
|
rdoc_options: []
|
61
61
|
require_paths:
|
62
62
|
- lib
|
@@ -71,9 +71,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
|
-
|
75
|
-
|
76
|
-
signing_key:
|
74
|
+
rubygems_version: 3.4.1
|
75
|
+
signing_key:
|
77
76
|
specification_version: 4
|
78
77
|
summary: Renders bosh templates
|
79
78
|
test_files: []
|