aws-must 0.0.10 → 0.0.12
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/README.md +6 -1
- data/lib/aws-must/aws-must.rb +5 -1
- data/lib/aws-must/template.rb +4 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e420dcf4c1ad2882e09cf1b188333d3c84474df7
|
4
|
+
data.tar.gz: 2e7da5a2e698cb5d2a28bdced3b0d2a8d12bb618
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
data/lib/aws-must/aws-must.rb
CHANGED
@@ -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
|
-
|
78
|
+
return template.to_str( template_name, data )
|
75
79
|
|
76
80
|
end
|
77
81
|
|
data/lib/aws-must/template.rb
CHANGED
@@ -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
|
-
|
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.
|
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-
|
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: {}
|