bosh-template 1.2671.0 → 1.2681.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/bosh-template +24 -0
- data/lib/bosh/template/version.rb +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 50a67f08173c188d3e245e5f9f9fd593a7bd3940
|
|
4
|
+
data.tar.gz: 5c5e36f108b7861a6ab78d54076c0193581b5eca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0f26f80c3f9d9841cc8d96bf9e4c8658f03187dc461a29fc6ee3bad325d2c30d8d256291bd88a0f02f009fa0ff30e388730ae9fab439cde2d31272810e8aa14e
|
|
7
|
+
data.tar.gz: 3c18f3de4aeccf0c163b4aa2bd61afab7f3ac48cfb115b7cf52658aeaead4e84c268d5056b3ba8b5a05671bb3f29647c94245d35fb539a9facb9b4dcba895fa0
|
data/bin/bosh-template
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require 'bosh/template/renderer'
|
|
4
|
+
require 'optparse'
|
|
5
|
+
|
|
6
|
+
template_name = ARGV[0]
|
|
7
|
+
|
|
8
|
+
options = {}
|
|
9
|
+
OptionParser.new do |opts|
|
|
10
|
+
opts.banner = 'Usage: bosh-templates template.erb [options]'
|
|
11
|
+
opts.separator('Command-line renderer BOSH templates')
|
|
12
|
+
|
|
13
|
+
opts.separator('')
|
|
14
|
+
opts.separator('Options:')
|
|
15
|
+
|
|
16
|
+
opts.on('-C', '--context STRING', 'JSON string containing property values for template context') do |v|
|
|
17
|
+
options[:context] = v
|
|
18
|
+
end
|
|
19
|
+
end.parse!
|
|
20
|
+
|
|
21
|
+
raise OptionParser::MissingArgument.new('--context') if options[:context].nil?
|
|
22
|
+
|
|
23
|
+
renderer = Bosh::Template::Renderer.new(options)
|
|
24
|
+
puts renderer.render(template_name)
|
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: 1.
|
|
4
|
+
version: 1.2681.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pivotal
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-07
|
|
11
|
+
date: 2014-08-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: semi_semantic
|
|
@@ -26,13 +26,15 @@ dependencies:
|
|
|
26
26
|
version: 1.1.0
|
|
27
27
|
description: |-
|
|
28
28
|
Renders bosh templates
|
|
29
|
-
|
|
29
|
+
c8f6a2
|
|
30
30
|
email: support@cloudfoundry.com
|
|
31
|
-
executables:
|
|
31
|
+
executables:
|
|
32
|
+
- bosh-template
|
|
32
33
|
extensions: []
|
|
33
34
|
extra_rdoc_files: []
|
|
34
35
|
files:
|
|
35
36
|
- README
|
|
37
|
+
- bin/bosh-template
|
|
36
38
|
- lib/bosh/template.rb
|
|
37
39
|
- lib/bosh/template/evaluation_context.rb
|
|
38
40
|
- lib/bosh/template/evaluation_failed.rb
|