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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac1a04053232845f219abda086a7458e74db06bc1a181fb6befcf5f0781c3e76
4
- data.tar.gz: 89526f703a1fe73cd595f676d9d3fe2a7c5f614740ed92623b2eed6a6651a6ae
3
+ metadata.gz: 183dab79f42baed631b2027caab578ba086b074c1ddc5bd0dc2b98fe8eb0b086
4
+ data.tar.gz: e0c6f646bb2739bc37190d711347638b72efc72fe7cd82105d514ddf144b9e5c
5
5
  SHA512:
6
- metadata.gz: ce01e25e682f8aa3fcd51f1b9b091951a6ebe55fe96dc7812287db20708440a304dcc1f772d9fde80bb06ede90206539e8ec1ea359f5ba3291082abf589d6785
7
- data.tar.gz: d0f7ea4ad4c6fe34ea48d8c9134b8b1fdaf6715d0b6f0c7fbe4d22dd4105e1cf7b9cc3161fa4d7bd9104395349a8882e788ec8101d62e1f806ffa890dfede51f
6
+ metadata.gz: 969b0c6c313e075211baf791cfcee4b38ab7789bbd7ee737c27247b1fa54f459ad9323664e495ea592128a3fb774b96e3825ce6d915c0b6a031e8a6b4bdc6259
7
+ data.tar.gz: f2f84f333e709f8115f954f668a3c86bc5bd0cd15402aef057d920ab1c210a11e5780ba3e3bf3aca2b92cdcad23aeec34b9563ae96e7a7366877c13df0e07422
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Stax
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
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.0
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-03 00:00:00.000000000 Z
11
+ date: 2020-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler