terracop 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: 74d2da000770e8368a6f10a0743761edde55a5da61828714725b7567462c13c0
4
- data.tar.gz: 05b65c4774aa057bed14d6cc4760c73354ae8675897d3fd7921d2e44952d426d
3
+ metadata.gz: f057dfe056a3c276f9f3376612f36a92e6c4b7e0bf38a9a720240d63325f60b1
4
+ data.tar.gz: 10f2142bf9bd9d9bca724e4f24a94fca78b11cb796a90663a7399ffa32d5939a
5
5
  SHA512:
6
- metadata.gz: 303ef1de659d6d6192c20e4ff171b4078e6df28b3c14a1cb2201ea1971c0e2d587c357d1f862b951a194ca60326fb898853bf1476bf487af045a2ac029537c3b
7
- data.tar.gz: bb449b0e607af344ac09e5acec0b198e91d8fe4d2a7c1ac55d53e49a1c3dbd815eaa680675a53a211ce5e03a3c9d00bd8d1d5f8a55de3561d1f206a85ba1804f
6
+ metadata.gz: cf20e57e9125a9a03a296537e2b69e09e721872a4fb4ab54cd75e638f98f1d5a4c027bb054e9a30d066722e90abb9c98009dc7d597ce011fb60b64e31fd2914a
7
+ data.tar.gz: aa5804ad797a3bfa980c8ca28085540f20dfdd52e9f1389e4ea98f75b38a6c6619e0280b13481b590631a447648bc7f674576642b31d0e4e05a1a83cea1aeb8f
data/.gitignore CHANGED
@@ -12,3 +12,4 @@
12
12
 
13
13
  .DS_Store
14
14
  .byebug_history
15
+ *.gem
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- terracop (0.1.0)
4
+ terracop (0.1.1)
5
5
  colorize (~> 0.8)
6
6
 
7
7
  GEM
@@ -49,4 +49,5 @@ if state && plan
49
49
  exit
50
50
  end
51
51
 
52
- Terracop::Runner.new(type, state || plan, formatter).run
52
+ result = Terracop::Runner.new(type, state || plan, formatter).run
53
+ exit result
@@ -25,6 +25,8 @@ module Terracop
25
25
 
26
26
  by_res = offenses.flatten.group_by { |o| "#{o[:type]}.#{o[:name]}" }
27
27
  print @formatter.generate(by_res)
28
+
29
+ offenses.flatten.count
28
30
  end
29
31
 
30
32
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Terracop
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
data/terracop.gemspec CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  end
31
31
 
32
32
  spec.bindir = 'exe'
33
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
33
+ spec.executables = ['terracop']
34
34
  spec.require_paths = ['lib']
35
35
 
36
36
  spec.add_development_dependency 'bundler', '~> 2.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terracop
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
  - Francesco Boffa
@@ -127,7 +127,8 @@ description: |2
127
127
  Aims to enforce best practices for Terraform and "the cloud".
128
128
  email:
129
129
  - fra.boffa@gmail.com
130
- executables: []
130
+ executables:
131
+ - terracop
131
132
  extensions: []
132
133
  extra_rdoc_files: []
133
134
  files:
@@ -144,8 +145,8 @@ files:
144
145
  - Rakefile
145
146
  - bin/console
146
147
  - bin/setup
147
- - bin/terracop
148
148
  - default_config.yml
149
+ - exe/terracop
149
150
  - lib/terracop.rb
150
151
  - lib/terracop/cop/aws/describe_security_group_rules.rb
151
152
  - lib/terracop/cop/aws/ensure_tags.rb