aws-must 0.0.10 → 0.0.12

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: 2c24b20220f2f8c9469ed37c1521f47945b33abf
4
- data.tar.gz: 555fea1c14b4f38f29db7d46b7f6346ee61006f1
3
+ metadata.gz: e420dcf4c1ad2882e09cf1b188333d3c84474df7
4
+ data.tar.gz: 2e7da5a2e698cb5d2a28bdced3b0d2a8d12bb618
5
5
  SHA512:
6
- metadata.gz: 15bf6f675da9078c230ade99c7e5975aedf8912948c8b22335fa14b58b68353172475457dd8a91f65960198534e3628d9c468e5f64634a7935bc32325425ed3a
7
- data.tar.gz: 755034b30c68c6f4245cddfd1b8eb89fb203d747ce671037d5daa78ea8591544f2d96a7fcf94b4d691216281aea2df78bc5ef1e40dc0d5a978a0024f90dd670b
6
+ metadata.gz: f898429506e61f6229983f1eccb9a4352550dec71588e73154ef6e52970fe35d47dff655f1198c3f238105202b79e7336699f30675953dd1f6b49c26236ed16d
7
+ data.tar.gz: 35dccbaff7ec723c1494de0891a4b788e90d5f7dde03f971a3d57d805c205e214224ce5acd5ba66403a4c639a34e584c0d88af438dad9cbe56c0cec3fb3750c4
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # aws-must - Minimum Viable Solution to Manage CloudFormation Templates - $Release:0.0.10$
1
+ # aws-must - Minimum Viable Solution to Manage CloudFormation Templates - $Release:0.0.12$
2
2
 
3
3
  `aws-must` is a tool, which allows separating infrastructure
4
4
  configuration and Amazon related syntax in CloudFormation JSON
@@ -13,6 +13,11 @@ See blog posts
13
13
  background information on this tool.
14
14
 
15
15
 
16
+ See also
17
+ [aws-must-templates](https://github.com/jarjuk/aws-must-templates) for
18
+ [set of templates](https://rawgit.com/jarjuk/aws-must-templates/master/generated-docs/aws-must-templates.html)
19
+ to generate CloudFormation JSON from YAML configuration.
20
+
16
21
  ## The Problem
17
22
 
18
23
  [Amazon CloudFormation](http://aws.amazon.com/cloudformation/) gives
@@ -60,6 +60,10 @@ module AwsMust
60
60
  # from 'yaml_file'
61
61
 
62
62
  def generate( template_name, yaml_file, options )
63
+ puts generate_str( template_name, yaml_file, options )
64
+ end
65
+
66
+ def generate_str( template_name, yaml_file, options )
63
67
 
64
68
  @logger.debug( "#{__method__}, template_name '#{template_name}'" )
65
69
  @logger.debug( "#{__method__}, yaml_file= '#{yaml_file}'" )
@@ -71,7 +75,7 @@ module AwsMust
71
75
  data = adjust( data )
72
76
  @logger.debug( "#{__method__}, data= '#{data}'" )
73
77
 
74
- puts template.to_str( template_name, data )
78
+ return template.to_str( template_name, data )
75
79
 
76
80
  end
77
81
 
@@ -34,13 +34,15 @@ module AwsMust
34
34
  # ------------------------------------------------------------------
35
35
  # Services
36
36
 
37
- def to_str( template_name, data )
37
+ def to_str( template_name=nil, data=nil )
38
38
  @logger.debug( "#{__method__}: template_name=#{template_name}, data=#{data}" )
39
39
  if template_name
40
40
  template = get_template( template_name )
41
41
  render( template, data )
42
- else
42
+ elsif data
43
43
  render( data )
44
+ else
45
+ puts @templates
44
46
  end
45
47
  end
46
48
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-must
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - jarjuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-14 00:00:00.000000000 Z
11
+ date: 2015-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mustache
@@ -106,7 +106,7 @@ files:
106
106
  - lib/utils/hasher.rb
107
107
  - lib/utils/logger.rb
108
108
  - mustache/root.mustache
109
- homepage:
109
+ homepage: https://github.com/jarjuk/aws-must
110
110
  licenses:
111
111
  - MIT
112
112
  metadata: {}