Class: AwsLogCleaner::AwsLogCleaner
- Inherits:
-
Object
- Object
- AwsLogCleaner::AwsLogCleaner
- Defined in:
- lib/aws_log_cleaner.rb
Instance Method Summary collapse
- #delete ⇒ Object
-
#initialize(credentials_args, like, clean_orphans) ⇒ AwsLogCleaner
constructor
A new instance of AwsLogCleaner.
- #plan ⇒ Object
Constructor Details
#initialize(credentials_args, like, clean_orphans) ⇒ AwsLogCleaner
Returns a new instance of AwsLogCleaner.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/aws_log_cleaner.rb', line 11 def initialize(credentials_args, like, clean_orphans) credentials = AwsCredentials.new(credentials_args) cloud_watch_logs = CloudWatchLogs.new(credentials) api_gateway = ApiGateway.new(credentials) api_retriever = ApiGatewayRetriever.new(api_gateway) log_group_filterer = LogGroupFilterer.new(cloud_watch_logs) @log_cleaner = LogGroupCleaner.new( cloud_watch_logs, api_retriever, log_group_filterer, like, clean_orphans ) end |
Instance Method Details
#delete ⇒ Object
32 33 34 |
# File 'lib/aws_log_cleaner.rb', line 32 def delete @log_cleaner.delete end |
#plan ⇒ Object
28 29 30 |
# File 'lib/aws_log_cleaner.rb', line 28 def plan @log_cleaner.plan end |