bosh-template 1.2671.0 → 1.2681.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
2
  SHA1:
3
- metadata.gz: e1ba6a18fc290e3df03a2a4727b821273f8c18c6
4
- data.tar.gz: 8cad11145f873062b732c73cee4fb09a4dc1603a
3
+ metadata.gz: 50a67f08173c188d3e245e5f9f9fd593a7bd3940
4
+ data.tar.gz: 5c5e36f108b7861a6ab78d54076c0193581b5eca
5
5
  SHA512:
6
- metadata.gz: 3c500b35f5ffd7b56c18dedc949afe12820ad14d8a464b1ff4600afe536277b0c8619d604b4de9ad5d8d78920af38fb4834f56f2e772cd3ae890166bc977a67a
7
- data.tar.gz: cf2ff0f14c724dcd2e99b1b4f1e32c23fb7ac8f1f74f338fb189e5377f7399c5ccfa0ea969c7c623fc7b1e719316d99d34472bf980970df95513741b62f9127c
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)
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module Template
3
- VERSION = '1.2671.0'
3
+ VERSION = '1.2681.0'
4
4
  end
5
5
  end
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.2671.0
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-31 00:00:00.000000000 Z
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
- 03191d
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