seiton 0.0.8 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +33 -0
- data/README.md +15 -10
- data/lib/seiton.rb +6 -6
- data/lib/seiton/{ec2_check.rb → checks/ec2.rb} +6 -11
- data/lib/seiton/{rds_check.rb → checks/rds.rb} +1 -2
- data/lib/seiton/{sqs_check.rb → checks/sqs.rb} +1 -2
- data/lib/seiton/cli.rb +7 -25
- data/lib/seiton/common.rb +0 -20
- data/lib/seiton/init.rb +2 -2
- data/lib/seiton/{ec2.rb → resouces/ec2.rb} +10 -10
- data/lib/seiton/{rds.rb → resouces/rds.rb} +0 -0
- data/lib/seiton/{sqs.rb → resouces/sqs.rb} +0 -0
- data/lib/seiton/version.rb +1 -1
- data/seiton.gemspec +2 -2
- metadata +17 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfa987c327a26a6b36e5de1c0e88c4c29c6463855253559954e71998040ff13e
|
4
|
+
data.tar.gz: '09697cbfb9a2f95ae5a28b4b2aa65799b38038a5ee49ebdcfd17b884ca68cdec'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5ec8973038887ef30e0ca987813a3306fb2e86710e95df11e7ed1ff1c878048e8fe8bb20c292d5859fd8079debd8f27ac8dabb36dc8292c480768264ca540a3
|
7
|
+
data.tar.gz: 1c5a9d41177a879adfa4bf53ec0a3ffd69c68f45db76d2a83b835982281840c24e0ff2aa2169714a7822dd7e1a8e698411972c7a02c964d77b0619f06027a4d1
|
@@ -0,0 +1,33 @@
|
|
1
|
+
version: 2
|
2
|
+
jobs:
|
3
|
+
build:
|
4
|
+
docker:
|
5
|
+
# specify the version you desire here
|
6
|
+
- image: cimg/ruby:2.6.5
|
7
|
+
working_directory: ~/repo
|
8
|
+
steps:
|
9
|
+
- checkout
|
10
|
+
- restore_cache:
|
11
|
+
keys:
|
12
|
+
- v1-dependencies-{{ checksum "Gemfile.lock" }}
|
13
|
+
# fallback to using the latest cache if no exact match is found
|
14
|
+
- v1-dependencies-
|
15
|
+
- run:
|
16
|
+
name: install dependencies
|
17
|
+
command: |
|
18
|
+
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
19
|
+
- save_cache:
|
20
|
+
paths:
|
21
|
+
- ./vendor/bundle
|
22
|
+
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
|
23
|
+
# run tests!
|
24
|
+
- run:
|
25
|
+
name: run tests
|
26
|
+
command: |
|
27
|
+
bundle exec rake spec
|
28
|
+
# collect reports
|
29
|
+
- store_test_results:
|
30
|
+
path: /tmp/test-results
|
31
|
+
- store_artifacts:
|
32
|
+
path: /tmp/test-results
|
33
|
+
destination: test-results
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# seiton
|
1
|
+
# seiton [![CircleCI](https://circleci.com/gh/oreno-tools/seiton.svg?style=svg)](https://circleci.com/gh/oreno-tools/seiton)
|
2
2
|
|
3
3
|
The seiton (整頓) tidies up your AWS Resources.
|
4
4
|
|
@@ -8,7 +8,6 @@ Add this line to your application's Gemfile:
|
|
8
8
|
|
9
9
|
```ruby
|
10
10
|
gem 'seiton'
|
11
|
-
gem 'rake' # require
|
12
11
|
```
|
13
12
|
|
14
13
|
And then execute:
|
@@ -31,7 +30,7 @@ $ gem install seiton
|
|
31
30
|
$ bundle exec seiton --help
|
32
31
|
Commands:
|
33
32
|
seiton ami # Delete the EC2 AMI.
|
34
|
-
seiton
|
33
|
+
seiton ebs_snapshot # Delete the EC2 Snapshot.
|
35
34
|
seiton eip # Delete the Elastic IP.
|
36
35
|
seiton help [COMMAND] # Describe available commands or one specific command
|
37
36
|
seiton init # Initialize seiton.
|
@@ -39,6 +38,12 @@ Commands:
|
|
39
38
|
seiton rds_snapshot # Delete the RDS Snapshot.
|
40
39
|
seiton sqs_queue # Delete the SQS Queue.
|
41
40
|
seiton version # Print the version number.
|
41
|
+
|
42
|
+
Options:
|
43
|
+
-b, [--before-datetime=BEFORE_DATETIME] # Specify the date and time for deletion (delete resources before the specified date and time.)
|
44
|
+
-i, [--ignores=one two three] # Specify resources to be undeleted (you can specify multiple resources).
|
45
|
+
[--ignores-file=IGNORES_FILE] # Specify file name for resources list to be undeleted.
|
46
|
+
-c, [--check], [--no-check] # Check the resources to be deleted.
|
42
47
|
```
|
43
48
|
|
44
49
|
### Init
|
@@ -102,7 +107,7 @@ bundle exec seiton ami --before-datetime=2020/01/01 --ignores=xxxx yyyy zzzz
|
|
102
107
|
|
103
108
|
```sh
|
104
109
|
bundle exec rake check:ec2_images # AMI
|
105
|
-
bundle exec rake check:
|
110
|
+
bundle exec rake check:ebs_snapshots # Snapshot
|
106
111
|
```
|
107
112
|
|
108
113
|
### Delete EIP
|
@@ -233,9 +238,9 @@ bundle exec rake check:db_snapshots # RDS Snapshot
|
|
233
238
|
#### help
|
234
239
|
|
235
240
|
```sh
|
236
|
-
$ bundle exec seiton --help
|
241
|
+
$ bundle exec seiton --help ebs_snapshot
|
237
242
|
Usage:
|
238
|
-
seiton
|
243
|
+
seiton ebs_snapshot
|
239
244
|
|
240
245
|
Options:
|
241
246
|
-b, [--before-datetime=BEFORE_DATETIME] # Specify the date and time for deletion (delete resources before the specified date and time.)
|
@@ -248,25 +253,25 @@ Delete the EC2 Snapshot.
|
|
248
253
|
#### check
|
249
254
|
|
250
255
|
```sh
|
251
|
-
bundle exec seiton
|
256
|
+
bundle exec seiton ebs_snapshot --before-datetime=2020/01/01 --check
|
252
257
|
```
|
253
258
|
|
254
259
|
#### delete
|
255
260
|
|
256
261
|
```sh
|
257
|
-
bundle exec seiton
|
262
|
+
bundle exec seiton ebs_snapshot --before-datetime=2020/01/01
|
258
263
|
```
|
259
264
|
|
260
265
|
#### ignore
|
261
266
|
|
262
267
|
```sh
|
263
|
-
bundle exec seiton
|
268
|
+
bundle exec seiton ebs_snapshot --before-datetime=2020/01/01 --ignores=xxxx yyyy zzzz
|
264
269
|
```
|
265
270
|
|
266
271
|
#### Testing for delete complete
|
267
272
|
|
268
273
|
```sh
|
269
|
-
bundle exec rake check:
|
274
|
+
bundle exec rake check:ebs_snapshots # EC2 Snapshot
|
270
275
|
```
|
271
276
|
|
272
277
|
### Delete SQS Queue
|
data/lib/seiton.rb
CHANGED
@@ -2,13 +2,13 @@ require 'seiton/cli'
|
|
2
2
|
require 'seiton/client'
|
3
3
|
require 'seiton/common'
|
4
4
|
require 'seiton/ext'
|
5
|
-
require 'seiton/
|
6
|
-
require 'seiton/ec2'
|
5
|
+
require 'seiton/checks/ec2'
|
6
|
+
require 'seiton/resouces/ec2'
|
7
7
|
require 'seiton/ignores'
|
8
|
-
require 'seiton/
|
9
|
-
require 'seiton/rds'
|
10
|
-
require 'seiton/
|
11
|
-
require 'seiton/sqs'
|
8
|
+
require 'seiton/checks/rds'
|
9
|
+
require 'seiton/resouces/rds'
|
10
|
+
require 'seiton/checks/sqs'
|
11
|
+
require 'seiton/resouces/sqs'
|
12
12
|
require 'seiton/version'
|
13
13
|
|
14
14
|
module Seiton
|
@@ -17,8 +17,7 @@ end
|
|
17
17
|
<%- end -%>
|
18
18
|
<% end %>
|
19
19
|
EOF
|
20
|
-
|
21
|
-
File.open("check/" + "ec2_instance_spec.rb", "w") do |file|
|
20
|
+
File.open("spec/" + "ec2_instance_spec.rb", "w") do |file|
|
22
21
|
file.puts "require 'spec_helper'"
|
23
22
|
file.puts ERB.new(template, nil, "-").result(binding).gsub(/^\n/, "")
|
24
23
|
end
|
@@ -32,8 +31,7 @@ describe ebs("<%= resource.volume_id %>") do
|
|
32
31
|
end
|
33
32
|
<% end %>
|
34
33
|
EOF
|
35
|
-
|
36
|
-
File.open("check/" + "ec2_volumes_spec.rb", "w") do |file|
|
34
|
+
File.open("spec/" + "ec2_volumes_spec.rb", "w") do |file|
|
37
35
|
file.puts "require 'spec_helper'"
|
38
36
|
file.puts ERB.new(template, nil, "-").result(binding).gsub(/^\n/, "")
|
39
37
|
end
|
@@ -56,21 +54,19 @@ end
|
|
56
54
|
<%- end -%>
|
57
55
|
<% end %>
|
58
56
|
EOF
|
59
|
-
|
60
|
-
File.open("check/" + "ec2_images_spec.rb", "w") do |file|
|
57
|
+
File.open("spec/" + "ec2_images_spec.rb", "w") do |file|
|
61
58
|
file.puts "require 'spec_helper'"
|
62
59
|
file.puts ERB.new(template, nil, "-").result(binding).gsub(/^\n/, "")
|
63
60
|
end
|
64
61
|
end
|
65
62
|
|
66
|
-
def
|
63
|
+
def generator_ebs_snapshots_check(delete_resources)
|
67
64
|
template = <<-'EOF'
|
68
65
|
<% delete_resources.each do |resource| %>
|
69
66
|
<%= resource.snapshot_id %>
|
70
67
|
<% end %>
|
71
68
|
EOF
|
72
|
-
|
73
|
-
File.open("check/" + "ec2_snapshots_list.txt", "w") do |file|
|
69
|
+
File.open("spec/" + "ebs_snapshots_list.txt", "w") do |file|
|
74
70
|
file.puts ERB.new(template, nil, "-").result(binding).gsub(/^\n/, "")
|
75
71
|
end
|
76
72
|
end
|
@@ -92,8 +88,7 @@ end
|
|
92
88
|
<%- end -%>
|
93
89
|
<% end %>
|
94
90
|
EOF
|
95
|
-
|
96
|
-
File.open("check/" + "ec2_eips_spec.rb", "w") do |file|
|
91
|
+
File.open("spec/" + "ec2_eips_spec.rb", "w") do |file|
|
97
92
|
file.puts "require 'spec_helper'"
|
98
93
|
file.puts ERB.new(template, nil, "-").result(binding).gsub(/^\n/, "")
|
99
94
|
end
|
@@ -11,8 +11,7 @@ ignore|<%= resouce.db_cluster_snapshot_identifier %>
|
|
11
11
|
<%- end -%>
|
12
12
|
<% end %>
|
13
13
|
EOF
|
14
|
-
|
15
|
-
File.open("check/" + "db_snapshots_list.txt", "w") do |file|
|
14
|
+
File.open("spec/" + "db_snapshots_list.txt", "w") do |file|
|
16
15
|
file.puts ERB.new(template, nil, "-").result(binding).gsub(/^\n/, "")
|
17
16
|
end
|
18
17
|
end
|
@@ -17,8 +17,7 @@ end
|
|
17
17
|
<%- end -%>
|
18
18
|
<% end %>
|
19
19
|
EOF
|
20
|
-
|
21
|
-
File.open("check/" + "sqs_queue_spec.rb", "w") do |file|
|
20
|
+
File.open("spec/" + "sqs_queue_spec.rb", "w") do |file|
|
22
21
|
file.puts "require 'spec_helper'"
|
23
22
|
file.puts ERB.new(template, nil, "-").result(binding).gsub(/^\n/, "")
|
24
23
|
end
|
data/lib/seiton/cli.rb
CHANGED
@@ -10,6 +10,10 @@ require 'erb'
|
|
10
10
|
module Seiton
|
11
11
|
class CLI < Thor
|
12
12
|
default_command :version
|
13
|
+
class_option :before_datetime, type: :string, aliases: '-b', desc: 'Specify the date and time for deletion (delete resources before the specified date and time.)'
|
14
|
+
class_option :ignores, type: :array, aliases: '-i', desc: 'Specify resources to be undeleted (you can specify multiple resources).'
|
15
|
+
class_option :ignores_file, type: :string, aliases: nil, desc: 'Specify file name for resources list to be undeleted.'
|
16
|
+
class_option :check, type: :boolean, aliases: '-c', desc: 'Check the resources to be deleted.'
|
13
17
|
|
14
18
|
desc 'version', 'Print the version number.'
|
15
19
|
def version
|
@@ -23,10 +27,6 @@ module Seiton
|
|
23
27
|
end
|
24
28
|
|
25
29
|
desc 'ami', 'Delete the EC2 AMI.'
|
26
|
-
option :before_datetime, type: :string, aliases: '-b', desc: 'Specify the date and time for deletion (delete resources before the specified date and time.)'
|
27
|
-
option :ignores, type: :array, aliases: '-i', desc: 'Specify resources to be undeleted (you can specify multiple resources).'
|
28
|
-
option :ignores_file, type: :string, aliases: nil, desc: 'Specify file name for resources list to be undeleted.'
|
29
|
-
option :check, type: :boolean, aliases: '-c', desc: 'Check the resources to be deleted.'
|
30
30
|
def ami
|
31
31
|
unless options[:before_datetime] then
|
32
32
|
puts '--before-datetime must be specified. (--before-datetime=YYYY/MM/DD)'
|
@@ -38,12 +38,8 @@ module Seiton
|
|
38
38
|
seiton.ec2_image(options[:check], options[:before_datetime], ignores)
|
39
39
|
end
|
40
40
|
|
41
|
-
desc '
|
42
|
-
|
43
|
-
option :ignores, type: :array, aliases: '-i', desc: 'Specify resources to be undeleted (you can specify multiple resources).'
|
44
|
-
option :ignores_file, type: :string, aliases: nil, desc: 'Specify file name for resources list to be undeleted.'
|
45
|
-
option :check, type: :boolean, aliases: '-c', desc: 'Check the resources to be deleted.'
|
46
|
-
def ec2_snapshot
|
41
|
+
desc 'ebs_snapshot', 'Delete the EC2 Snapshot.'
|
42
|
+
def ebs_snapshot
|
47
43
|
unless options[:before_datetime] then
|
48
44
|
puts '--before-datetime must be specified. (--before-datetime=YYYY/MM/DD)'
|
49
45
|
exit 1
|
@@ -51,15 +47,11 @@ module Seiton
|
|
51
47
|
|
52
48
|
ignores = Seiton::Ignores.new(options[:ignores_file], options[:ignores]).generate
|
53
49
|
seiton = Seiton::Ec2.new
|
54
|
-
seiton.
|
50
|
+
seiton.ebs_snapshots(options[:check],
|
55
51
|
options[:before_datetime], ignores)
|
56
52
|
end
|
57
53
|
|
58
54
|
desc 'instance', 'Delete the EC2 Instance.'
|
59
|
-
option :before_datetime, type: :string, aliases: '-b', desc: 'Specify the date and time for deletion (delete resources before the specified date and time.)'
|
60
|
-
option :ignores, type: :array, aliases: '-i', desc: 'Specify resources to be undeleted (you can specify multiple resources).'
|
61
|
-
option :ignores_file, type: :string, aliases: nil, desc: 'Specify file name for resources list to be undeleted.'
|
62
|
-
option :check, type: :boolean, aliases: '-c', desc: 'Check the resources to be deleted.'
|
63
55
|
def instance
|
64
56
|
unless options[:before_datetime] then
|
65
57
|
puts '--before-datetime must be specified. (--before-datetime=YYYY/MM/DD)'
|
@@ -72,10 +64,6 @@ module Seiton
|
|
72
64
|
end
|
73
65
|
|
74
66
|
desc 'rds_snapshot', 'Delete the RDS Snapshot.'
|
75
|
-
option :before_datetime, type: :string, aliases: '-b', desc: 'Specify the date and time for deletion (delete resources before the specified date and time.)'
|
76
|
-
option :ignores, type: :array, aliases: '-i', desc: 'Specify resources to be undeleted (you can specify multiple resources).'
|
77
|
-
option :ignores_file, type: :string, aliases: nil, desc: 'Specify file name for resources list to be undeleted.'
|
78
|
-
option :check, type: :boolean, aliases: '-c', desc: 'Check the resources to be deleted.'
|
79
67
|
def rds_snapshot
|
80
68
|
unless options[:before_datetime] then
|
81
69
|
puts '--before-datetime must be specified. (--before-datetime=YYYY/MM/DD)'
|
@@ -88,9 +76,6 @@ module Seiton
|
|
88
76
|
end
|
89
77
|
|
90
78
|
desc 'eip', 'Delete the Elastic IP.'
|
91
|
-
option :ignores, type: :array, aliases: '-i', desc: 'Specify resources to be undeleted (you can specify multiple resources).'
|
92
|
-
option :ignores_file, type: :string, aliases: nil, desc: 'Specify file name for resources list to be undeleted.'
|
93
|
-
option :check, type: :boolean, aliases: '-c', desc: 'Check the resources to be deleted.'
|
94
79
|
def eip
|
95
80
|
ignores = Seiton::Ignores.new(options[:ignores_file], options[:ignores]).generate
|
96
81
|
seiton = Seiton::Ec2.new
|
@@ -98,9 +83,6 @@ module Seiton
|
|
98
83
|
end
|
99
84
|
|
100
85
|
desc 'sqs_queue', 'Delete the SQS Queue.'
|
101
|
-
option :ignores, type: :array, aliases: '-i', desc: 'Specify resources to be undeleted (you can specify multiple resources).'
|
102
|
-
option :ignores_file, type: :string, aliases: nil, desc: 'Specify file name for resources list to be undeleted.'
|
103
|
-
option :check, type: :boolean, aliases: '-c', desc: 'Check the resources to be deleted.'
|
104
86
|
def sqs_queue
|
105
87
|
ignores = Seiton::Ignores.new(options[:ignores_file], options[:ignores]).generate
|
106
88
|
seiton = Seiton::Sqs.new
|
data/lib/seiton/common.rb
CHANGED
@@ -38,25 +38,5 @@ module Seiton
|
|
38
38
|
end
|
39
39
|
volume_ids
|
40
40
|
end
|
41
|
-
|
42
|
-
def ignores(ignores_file, ignore_list)
|
43
|
-
ignores = nil
|
44
|
-
begin
|
45
|
-
File.open(ignores_file) do |file|
|
46
|
-
file.read.split("\n").each do |ignore|
|
47
|
-
ignores << ignore
|
48
|
-
end
|
49
|
-
end
|
50
|
-
rescue SystemCallError => e
|
51
|
-
puts e.message
|
52
|
-
exit 1
|
53
|
-
rescue IOError => e
|
54
|
-
puts e.message
|
55
|
-
exit 1
|
56
|
-
end unless ignore_file.nil?
|
57
|
-
ignores.concat(ignore_list) unless ignore_list.nil?
|
58
|
-
|
59
|
-
ignores
|
60
|
-
end
|
61
41
|
end
|
62
42
|
end
|
data/lib/seiton/init.rb
CHANGED
@@ -47,7 +47,7 @@ namespace :check do
|
|
47
47
|
t.rspec_opts = ["--format documentation"]
|
48
48
|
t.pattern = "spec/\#{target}_spec.rb"
|
49
49
|
t.verbose = true
|
50
|
-
end if target != '
|
50
|
+
end if target != 'ebs_snapshot'
|
51
51
|
end
|
52
52
|
|
53
53
|
targets2.each do |target|
|
@@ -95,7 +95,7 @@ def ignore_resource?(resource)
|
|
95
95
|
return r, deleted, not_deleted
|
96
96
|
end
|
97
97
|
|
98
|
-
def
|
98
|
+
def check_ebs_snapshots(resouces)
|
99
99
|
resouces.each do |resouce|
|
100
100
|
r, deleted, not_deleted = ignore_resource?(resouce)
|
101
101
|
begin
|
@@ -102,7 +102,8 @@ module Seiton
|
|
102
102
|
end
|
103
103
|
res = ec2_client.describe_images({ owners: ['self'] })
|
104
104
|
delete_images = []
|
105
|
-
res.images.
|
105
|
+
_images = res.images.sort_by { |x| x.creation_date }
|
106
|
+
_images.each do |delete_image|
|
106
107
|
if datetime_parse(delete_image.creation_date) < datetime_parse(dt)
|
107
108
|
delete_images << delete_image
|
108
109
|
end
|
@@ -156,10 +157,10 @@ module Seiton
|
|
156
157
|
exit 0
|
157
158
|
end
|
158
159
|
|
159
|
-
|
160
|
+
ebs_snapshot(delete_image_ids)
|
160
161
|
end
|
161
162
|
|
162
|
-
def
|
163
|
+
def ebs_snapshots(check = false, dt, ignores)
|
163
164
|
if check
|
164
165
|
log.info('List up the resources to be removed.')
|
165
166
|
else
|
@@ -167,7 +168,8 @@ module Seiton
|
|
167
168
|
end
|
168
169
|
res = ec2_client.describe_snapshots({ owner_ids: ['self'] })
|
169
170
|
delete_snapshots = []
|
170
|
-
res.snapshots.
|
171
|
+
_snapshots = res.snapshots.sort_by { |x| x.start_time }
|
172
|
+
_snapshots.each do |delete_snapshot|
|
171
173
|
if datetime_parse(delete_snapshot.start_time) < datetime_parse(dt)
|
172
174
|
delete_snapshots << delete_snapshot
|
173
175
|
end
|
@@ -202,14 +204,14 @@ module Seiton
|
|
202
204
|
end
|
203
205
|
|
204
206
|
puts display_snapshot_resources(delete_snapshots)
|
205
|
-
|
207
|
+
generator_ebs_snapshots_check(delete_snapshots)
|
206
208
|
exit 0 if check
|
207
209
|
|
208
210
|
delete_snapshot_ids = []
|
209
211
|
if process_ok?
|
210
212
|
begin
|
211
213
|
delete_snapshots.each do |s|
|
212
|
-
|
214
|
+
delete_snapshot_action(s.snapshot_id)
|
213
215
|
end
|
214
216
|
rescue StandardError => e
|
215
217
|
log.error(e)
|
@@ -218,11 +220,9 @@ module Seiton
|
|
218
220
|
else
|
219
221
|
exit 0
|
220
222
|
end
|
221
|
-
|
222
|
-
ec2_snapshot(delete_image_ids)
|
223
223
|
end
|
224
224
|
|
225
|
-
def
|
225
|
+
def ebs_snapshot(delete_image_ids)
|
226
226
|
log.info('Start EC2 Snapshot deleting.')
|
227
227
|
res = ec2_client.describe_snapshots(owner_ids: [iam_user.arn.split(':')[4]])
|
228
228
|
delete_snapshots = []
|
@@ -238,7 +238,7 @@ module Seiton
|
|
238
238
|
end
|
239
239
|
|
240
240
|
puts display_snapshot_resources(delete_snapshots)
|
241
|
-
|
241
|
+
generator_ebs_snapshots_check(delete_snapshots)
|
242
242
|
|
243
243
|
if process_ok?
|
244
244
|
begin
|
File without changes
|
File without changes
|
data/lib/seiton/version.rb
CHANGED
data/seiton.gemspec
CHANGED
@@ -20,8 +20,8 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.add_development_dependency "bundler"
|
24
|
-
spec.add_dependency "rake"
|
23
|
+
spec.add_development_dependency "bundler"
|
24
|
+
spec.add_dependency "rake"
|
25
25
|
spec.add_dependency 'thor'
|
26
26
|
spec.add_dependency 'aws-sdk'
|
27
27
|
spec.add_dependency 'terminal-table'
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seiton
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- inokappa
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: thor
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -116,6 +116,7 @@ executables:
|
|
116
116
|
extensions: []
|
117
117
|
extra_rdoc_files: []
|
118
118
|
files:
|
119
|
+
- ".circleci/config.yml"
|
119
120
|
- ".gitignore"
|
120
121
|
- Gemfile
|
121
122
|
- README.md
|
@@ -124,18 +125,18 @@ files:
|
|
124
125
|
- bin/setup
|
125
126
|
- exe/seiton
|
126
127
|
- lib/seiton.rb
|
128
|
+
- lib/seiton/checks/ec2.rb
|
129
|
+
- lib/seiton/checks/rds.rb
|
130
|
+
- lib/seiton/checks/sqs.rb
|
127
131
|
- lib/seiton/cli.rb
|
128
132
|
- lib/seiton/client.rb
|
129
133
|
- lib/seiton/common.rb
|
130
|
-
- lib/seiton/ec2.rb
|
131
|
-
- lib/seiton/ec2_check.rb
|
132
134
|
- lib/seiton/ext.rb
|
133
135
|
- lib/seiton/ignores.rb
|
134
136
|
- lib/seiton/init.rb
|
135
|
-
- lib/seiton/
|
136
|
-
- lib/seiton/
|
137
|
-
- lib/seiton/sqs.rb
|
138
|
-
- lib/seiton/sqs_check.rb
|
137
|
+
- lib/seiton/resouces/ec2.rb
|
138
|
+
- lib/seiton/resouces/rds.rb
|
139
|
+
- lib/seiton/resouces/sqs.rb
|
139
140
|
- lib/seiton/version.rb
|
140
141
|
- seiton.gemspec
|
141
142
|
homepage: https://github.com/oreno-tools/seiton
|