stax 0.1.2 → 0.1.3

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: b12afae4c0438a431116a3f7ffa1104b7a4c94f4f699db9a678a41463c156ca7
4
- data.tar.gz: 429d6a951c0286d80924a39ea8a149f048386698d9b364e3020f0d3737033309
3
+ metadata.gz: 977f337dd555b2e8941cb23a8493af6ada396a3eeba4af49264a26ca7a022d4c
4
+ data.tar.gz: cb54eca3f8cad6131164e33b6704c69d48b4ca3b089e07ec27e978beca853ad0
5
5
  SHA512:
6
- metadata.gz: dcd69c3b9eabb084b244e8e803f800074ed4ae6ca95c5cd76104f3d5703551d1d216c2b2cef10fbe25b3db17d2fa929e249e9b386cc81421224ad6b2d58f0c94
7
- data.tar.gz: a9d9683ef27a5a2e9c33c7de8619f9c95639a24aad399b7bde0175ad83b8c31849539e52fb5a04b097b4eb4519c10bf15e98a0c475bf315314f866edb004aeb7
6
+ metadata.gz: f44ff1358eef0fb11b44bdcee1f040757506c5792178b1e895b8e7ebf1f38d6ac43edd39c88effe79e9c257ccf44c6a0db84627e331047ddfdeeb9675b7c2bfb
7
+ data.tar.gz: b9d0c14a3b6a99354ecce5f32a8bdf31482abcaffe730d1a76919daa34d0396edb09fc2bf281360613b8abcf2f6f6575795dfdab4d7004dbe600930d93d17296
@@ -282,5 +282,18 @@ module Stax
282
282
  puts JSON.send(method, skel)
283
283
  end
284
284
 
285
+ ## install https://github.com/aws-cloudformation/cfn-python-lint
286
+ desc 'lint', 'run cfn-lint on template'
287
+ def lint
288
+ require 'open3'
289
+ Open3.popen3('cfn-lint -') do |stdin, stdout|
290
+ stdin.write(cfn_template)
291
+ stdin.close
292
+ puts stdout.read
293
+ end
294
+ rescue Errno::ENOENT => e
295
+ fail_task(e.message)
296
+ end
297
+
285
298
  end
286
299
  end
@@ -1,3 +1,3 @@
1
1
  module Stax
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Lister
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-25 00:00:00.000000000 Z
11
+ date: 2020-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -609,7 +609,7 @@ homepage: https://github.com/rlister/stax
609
609
  licenses:
610
610
  - MIT
611
611
  metadata: {}
612
- post_install_message:
612
+ post_install_message:
613
613
  rdoc_options: []
614
614
  require_paths:
615
615
  - lib
@@ -624,8 +624,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
624
624
  - !ruby/object:Gem::Version
625
625
  version: '0'
626
626
  requirements: []
627
- rubygems_version: 3.0.3
628
- signing_key:
627
+ rubygems_version: 3.1.2
628
+ signing_key:
629
629
  specification_version: 4
630
630
  summary: Control Cloudformation stack and other stuff.
631
631
  test_files: []