certsweeper 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/certsweeper/client.rb +14 -2
- data/lib/certsweeper/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b389a02ad0caa881779057af313eaf42244ae8d1
|
4
|
+
data.tar.gz: 2084c983eb19853f18727fb41f4df4ff4a6ad400
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40fed0bea2b82a97ddb699180204a9827cbf998c5e99cb6991b5f3db5cbd1a4420b30f68b5831d3a218c41402863e31d74f21c77f97316358942acf4fd9b09da
|
7
|
+
data.tar.gz: 5bf777c32f8ab967930cb97a2634c227db58c2d8a91a6560bfe12ee0ab4203563d2bd99c3e13efb6fa5aedfce24fa01a67389091801fb4b6bef4f2af74cb3bcd
|
data/lib/certsweeper/client.rb
CHANGED
@@ -9,9 +9,9 @@ module Certsweeper
|
|
9
9
|
@logger ||= Logger.new STDOUT
|
10
10
|
|
11
11
|
aws_configuration[:logger] = Logger.new STDOUT if @cli_options.verbose
|
12
|
+
@aws_configuration = aws_configuration
|
12
13
|
|
13
14
|
@iam = Aws::IAM::Resource.new aws_configuration
|
14
|
-
@elb = Aws::ElasticLoadBalancing::Client.new aws_configuration
|
15
15
|
end
|
16
16
|
|
17
17
|
def list
|
@@ -57,7 +57,19 @@ module Certsweeper
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def elbs
|
60
|
-
@elbs
|
60
|
+
unless @elbs
|
61
|
+
ec2 = Aws::EC2::Client.new @aws_configuration
|
62
|
+
regions = ec2.describe_regions[:regions].map {|r| r[:region_name]}
|
63
|
+
@elbs = []
|
64
|
+
regions.each do |r|
|
65
|
+
conf = @aws_configuration.dup
|
66
|
+
conf[:region] = r
|
67
|
+
elb_client = Aws::ElasticLoadBalancing::Client.new conf
|
68
|
+
e = elb_client.describe_load_balancers
|
69
|
+
@elbs += e.load_balancer_descriptions unless e.empty?
|
70
|
+
end
|
71
|
+
end
|
72
|
+
@elbs
|
61
73
|
end
|
62
74
|
|
63
75
|
def expired?(cert)
|
data/lib/certsweeper/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: certsweeper
|
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
|
- ISOBE Kazuhiko
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.4.5
|
98
|
+
rubygems_version: 2.4.5.1
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: Sweep expired and not assigned server certificate on AWS
|