aws_log_cleaner 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/aws_log_cleaner/api_gateway_retriever.rb +3 -3
- data/lib/aws_log_cleaner/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01b45eb13e994162c2b137d83a39fb5aea229324
|
4
|
+
data.tar.gz: 8611794db35d12cd38b166613e5ec1a3f022f192
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94ba3d272f3611bd54d9255204c10f56a879f9adb693a06c0b48bbd4e0cebabed1d6f623f9897dfeaa0474de48efe0d78cb3ebfc27d69021a354630bc96247e6
|
7
|
+
data.tar.gz: be81383cc1e304308ed6915e749698dbf655bf771e5374e54d9a68c2eeab6c533bae379060e0471482659d25ab9e3dabab8df25a298c7dc5706507b0e9ed2e63
|
data/README.md
CHANGED
@@ -28,7 +28,7 @@ Or install it yourself as:
|
|
28
28
|
OR
|
29
29
|
* A credentials file must be present in `~\.aws`
|
30
30
|
|
31
|
-
The application defaults to `eu-west-1` but this can be overridden using `
|
31
|
+
The application defaults to `eu-west-1` but this can be overridden using `AWS_REGION` environment variable, or by passing -r [--region] on the commandline.
|
32
32
|
|
33
33
|
### From the command line
|
34
34
|
|
@@ -58,4 +58,4 @@ Or run a delete
|
|
58
58
|
|
59
59
|
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
60
60
|
|
61
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
61
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
@@ -1,16 +1,16 @@
|
|
1
1
|
|
2
2
|
module AwsLogCleaner
|
3
3
|
|
4
|
-
# Responsible for retrieving API gateway instances filtered by
|
4
|
+
# Responsible for retrieving API gateway instances filtered by a given text
|
5
5
|
class ApiGatewayRetriever
|
6
6
|
|
7
7
|
def initialize(api_gateway)
|
8
8
|
@api_gateway = api_gateway
|
9
9
|
end
|
10
10
|
|
11
|
-
def retrieve(
|
11
|
+
def retrieve(text)
|
12
12
|
apis = @api_gateway.list_all_apis
|
13
|
-
apis.select{ |item| item.name.to_s.downcase.
|
13
|
+
apis.select{ |item| item.name.to_s.downcase.include?(text) }
|
14
14
|
end
|
15
15
|
|
16
16
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws_log_cleaner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dbaker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|