stax 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stax/stack/crud.rb +19 -1
- data/lib/stax/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 183dab79f42baed631b2027caab578ba086b074c1ddc5bd0dc2b98fe8eb0b086
|
4
|
+
data.tar.gz: e0c6f646bb2739bc37190d711347638b72efc72fe7cd82105d514ddf144b9e5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 969b0c6c313e075211baf791cfcee4b38ab7789bbd7ee737c27247b1fa54f459ad9323664e495ea592128a3fb774b96e3825ce6d915c0b6a031e8a6b4bdc6259
|
7
|
+
data.tar.gz: f2f84f333e709f8115f954f668a3c86bc5bd0cd15402aef057d920ab1c210a11e5780ba3e3bf3aca2b92cdcad23aeec34b9563ae96e7a7366877c13df0e07422
|
data/lib/stax/stack/crud.rb
CHANGED
@@ -264,5 +264,23 @@ module Stax
|
|
264
264
|
end
|
265
265
|
end
|
266
266
|
|
267
|
+
desc 'skeleton', 'create json skeleton for cli'
|
268
|
+
method_option :pretty, type: :boolean, default: false, desc: 'pretty generate json'
|
269
|
+
def skeleton
|
270
|
+
skel = {
|
271
|
+
StackName: stack_name,
|
272
|
+
TemplateBody: cfn_template_body,
|
273
|
+
TemplateURL: cfn_template_url,
|
274
|
+
Parameters: cfn_parameters_create,
|
275
|
+
Capabilities: cfn_capabilities,
|
276
|
+
StackPolicyBody: stack_policy,
|
277
|
+
NotificationARNs: cfn_notification_arns,
|
278
|
+
EnableTerminationProtection: cfn_termination_protection,
|
279
|
+
Tags: cfn_tags_array,
|
280
|
+
}.compact
|
281
|
+
method = options[:pretty] ? :pretty_generate : :generate
|
282
|
+
puts JSON.send(method, skel)
|
283
|
+
end
|
284
|
+
|
267
285
|
end
|
268
|
-
end
|
286
|
+
end
|
data/lib/stax/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Lister
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|