cecha 0.2.0 → 0.3.0

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
  SHA1:
3
- metadata.gz: 7e18b42d2e5a4395f1f9cd6f1bc10ac16fbf249e
4
- data.tar.gz: 56cc11e2dc26087a99123296cf88bb19e26cdad9
3
+ metadata.gz: 38ec1e4163959285f2cc1f07b662be1ed7671ca6
4
+ data.tar.gz: 5aafe34444f035a23ef02d7d9185ec5c5a6433f8
5
5
  SHA512:
6
- metadata.gz: b555ceab125d28bb4f096f4b55ea1e2cc7a6c955191ad1cb51447a4b8489d817ff7683f9b6fb55cd759da8b6234fe164494feefa44a8a1561ef69bd783305d69
7
- data.tar.gz: 61f1feaa8571d262340d9feffd026803618f2bc9ee1fc0cd74dca64063977eb1d4290e363f4e98d790976129df3f4d7a38cc3618176de4e52df4179278c8ea9d
6
+ metadata.gz: 3262de10acf7859429596e99134030f73c0978a7aa2d2354c4e095cd3beddce1b10db101945eb128a192b2193eae7ade7d199cc6fdfcdd5a448f8023cbeb8bff
7
+ data.tar.gz: 5babd097c00c30e1f720304515ddd99f12fdfb554dd627783c3b5c8844b6d51aa810e9402bf3db024d8194b6a3afe8a5c5c860964db3ddbf5590418d25282184
data/README.md CHANGED
@@ -1,28 +1,36 @@
1
- # Cecha
1
+ # cecha
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/cecha`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ cecha is "Check ELB Certificate Hash Algorithm" command.
6
4
 
7
5
  ## Installation
8
6
 
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'cecha'
13
- ```
14
-
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
7
+ install it yourself as:
20
8
 
21
9
  $ gem install cecha
22
10
 
23
11
  ## Usage
24
12
 
25
- TODO: Write usage instructions here
13
+ ```
14
+ Commands:
15
+ cecha help [COMMAND] # Describe available commands or one specific command
16
+ cecha list # show elb certificate list
17
+
18
+ Options:
19
+ p, [--profile=PROFILE] # Load credentials by profile name from shared credentials file.
20
+ k, [--access-key-id=ACCESS_KEY_ID] # AWS access key id.
21
+ s, [--secret-access-key=SECRET_ACCESS_KEY] # AWS secret access key.
22
+ r, [--region=REGION] # AWS region.
23
+ [--shared-credentials-path=SHARED_CREDENTIALS_PATH] # AWS shared credentials path.
24
+ v, [--verbose], [--no-verbose]
25
+ ```
26
+
27
+ ## Example
28
+
29
+ ```
30
+ $ cecha list
31
+ 012345678901 us-east-1 production-elb 443 prod.example.com sha1WithRSAEncryption
32
+ 012345678901 ap-northeast-1 development-elb 443 dev.example.com sha256WithRSAEncryption
33
+ ```
26
34
 
27
35
  ## Development
28
36
 
@@ -12,7 +12,8 @@ module Cecha
12
12
  :elb_name,
13
13
  :elb_port,
14
14
  :ssl_certificate_name,
15
- :signature_algorithm
15
+ :signature_algorithm,
16
+ :policy_names
16
17
  ) do
17
18
  def to_s
18
19
  values.join("\t")
@@ -36,6 +37,7 @@ module Cecha
36
37
  resp = @elasticloadbalancing.client.describe_load_balancers
37
38
  resp.load_balancer_descriptions.each do |elb|
38
39
  elb.listener_descriptions.each do |desc|
40
+ p desc
39
41
  cert = ssl_certificate(desc.listener.ssl_certificate_id)
40
42
  if cert
41
43
  elbcert = ElbCert.new
@@ -43,6 +45,7 @@ module Cecha
43
45
  elbcert.region = @region
44
46
  elbcert.elb_name = elb.load_balancer_name
45
47
  elbcert.elb_port = desc.listener.load_balancer_port
48
+ elbcert.policy_names = desc.policy_names.join(',')
46
49
  elbcert.ssl_certificate_name = cert.name
47
50
  elbcert.signature_algorithm = OpenSSL::X509::Certificate.new(cert.certificate_body).signature_algorithm
48
51
  certlist << elbcert
@@ -1,3 +1,3 @@
1
1
  module Cecha
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cecha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
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-09-15 00:00:00.000000000 Z
11
+ date: 2016-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.4.5
126
+ rubygems_version: 2.5.1
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: cecha (Check ELB Certificate's Hash Algorithm)