mkstack 1.1.0 → 1.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aaf1a841fa0de51efa15c58884b99939a940d2c1bf2e87873d8b3e63d2a1ff6b
4
- data.tar.gz: 7241af85e09c860e3bd5c105a7ec0e8dea22a9614d4b8a3d21aac72288abb26c
3
+ metadata.gz: f17b76b513a01a73d120ef36e80e23b7bb86103164d8c475f107635493fc1a0b
4
+ data.tar.gz: 0ca958b169b541e4ce410e0ab4a599f5c6fee601ea0d3afcc197df4f5b16f89b
5
5
  SHA512:
6
- metadata.gz: 5bd88c3603c614382a10fbcb1009704b661afe89f3553162c4a2a0b4e04494f82c9cb025eada3451c65d93a981ad2161d14d0ea50f89ab40bc0d6451b8a4a4fd
7
- data.tar.gz: e90035e6ab6a9f37f6b9b8837efbc349e391f24c3d03e2a9c4179314e7c294e7243705f580a8425240ed9b4ec98280a2a5d05954a6969772f19d30b1d87bd710
6
+ metadata.gz: f87f11e558287ccc4f220d70aed51f28f8c98b361413e23edf12a26ca8707fd4ac2fe9cdc749fd9cd9f2fe980d6739e16b2b4e572be4738dd9e77e740b821a2b
7
+ data.tar.gz: e31914cd4b5a0462874abfc7d9aa90ee7159bdd111c32aec764b4746efc97705f0a09b5fe749ee7891dcff8d1d9ccbaf0da0bcc1e0b3885bc11972c64abbac26
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require_relative "mkstack/template"
2
3
 
3
4
  =begin rdoc
@@ -5,9 +6,10 @@ require_relative "mkstack/template"
5
6
  Merge multiple CloudFormation template files into a single template.
6
7
  Each file may be in either JSON or YAML format.
7
8
 
8
- Get started with <i>template = MkStack::Template.new</i>
9
+ Get started with <i>template = MkStack::Template.new</i>, or use the
10
+ command line tool <i>mkstack</i>.
9
11
 
10
- == ERB
12
+ = ERB
11
13
 
12
14
  By default all files are run through an ERB (Embedded RuBy) processor.
13
15
 
@@ -62,7 +64,9 @@ tags defined in one file to be referenced in subsequent files.
62
64
  "sg": {
63
65
  "Type" : "AWS::EC2::SecurityGroup",
64
66
  "Properties" : {
65
- "GroupDescription" : { "Fn::Sub" : "Security Group for ${application}" }
67
+ "GroupDescription" : {
68
+ "Fn::Sub" : "Security Group for ${application}"
69
+ }
66
70
  <%= tags_json %>
67
71
  }
68
72
  }
@@ -71,6 +75,27 @@ tags defined in one file to be referenced in subsequent files.
71
75
 
72
76
  Note that foo.yaml is processed <i>before</i> bar.json.
73
77
 
78
+ = Command line tool
79
+
80
+ Usage: mkstack [ options ] file1 [ file2... ]
81
+ -h, --help Display this message
82
+
83
+ -d, --debug Show debug messages
84
+ -v, --verbose Be verbose
85
+ -q, --quiet Only show errors
86
+ -s, --silent Don't show any log messages
87
+
88
+ -o, --output=FILE Print final template to FILE
89
+ Use '-' for stdout
90
+ -f, --format=FORMAT Print as FORMAT
91
+ Supported formats: json (default), yaml
92
+
93
+ ‐‐erb, --[no-]erb Perform ERB processing (default is true)
94
+ ‐‐validate Call ValidateTemplate after merging
95
+
96
+ ‐‐‐ Marks end of mkstack options
97
+ Remaining arguments are available to ERB as Array argv
98
+
74
99
  == Passing arguments to ERB
75
100
 
76
101
  Any command line arguments following "---" are added to an Array
@@ -79,15 +104,10 @@ called argv, which can be referenced in your ERB code.
79
104
  === foo.yaml
80
105
 
81
106
  <% puts "#{argv.class} with #{argv.length} items: #{argv}" %>
107
+ =====
108
+ $ mkstack foo.yaml --- a 2 test
109
+ Array with 3 items: ["a", "2", "test"]
82
110
 
83
- $ mkstack foo.yaml --- a 2 test
84
-
85
- Array with 3 items: ["a", "2", "test"]
86
-
87
- == See Also
88
-
89
- MkStack::Template
90
- MkStack::Section
91
111
  =end
92
112
 
93
113
  module MkStack
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "mkstack"
3
- s.version = "1.1.0"
3
+ s.version = "1.1.2"
4
4
  s.summary = "Merge multiple CloudFormation template files into a single template"
5
5
  s.description = <<-EOF
6
6
  Merge multiple CloudFormation template files into a single template. Each file may be in either JSON or YAML format. By default all files are run through an ERB (Embedded RuBy) processor.
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mkstack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Rosen
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
11
11
  - |
@@ -33,7 +33,7 @@ cert_chain:
33
33
  kLyoFawGT9fF6+lXyIT9XiaUzOCjQUJo94on5U601Y2GXB4Sa1oxLSBlEtkSwuD3
34
34
  gMHlHdBRvoJurkVzYNWkN+Cz
35
35
  -----END CERTIFICATE-----
36
- date: 2020-06-23 00:00:00.000000000 Z
36
+ date: 2020-06-24 00:00:00.000000000 Z
37
37
  dependencies:
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: aws-sdk-cloudformation
@@ -53,7 +53,7 @@ description: 'Merge multiple CloudFormation template files into a single templat
53
53
  file may be in either JSON or YAML format. By default all files are run through
54
54
  an ERB (Embedded RuBy) processor.
55
55
 
56
- '
56
+ '
57
57
  email:
58
58
  - ajr@corp.mlfs.org
59
59
  executables:
@@ -70,7 +70,7 @@ homepage: https://github.com/ajrosen/AWS/tree/master/mkstack
70
70
  licenses:
71
71
  - GPL-3.0+
72
72
  metadata: {}
73
- post_install_message:
73
+ post_install_message:
74
74
  rdoc_options: []
75
75
  require_paths:
76
76
  - lib
@@ -85,8 +85,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  requirements: []
88
- rubygems_version: 3.0.3
89
- signing_key:
88
+ rubygems_version: 3.1.2
89
+ signing_key:
90
90
  specification_version: 4
91
91
  summary: Merge multiple CloudFormation template files into a single template
92
92
  test_files: []
metadata.gz.sig CHANGED
Binary file