class AwsLogCleaner::LogGroupFilterer
Public Class Methods
new(cloud_watch_logs)
click to toggle source
# File lib/aws_log_cleaner/log_group_filterer.rb, line 3 def initialize(cloud_watch_logs) @cloud_watch_logs = cloud_watch_logs end
Public Instance Methods
filter_by_name_includes(text)
click to toggle source
# File lib/aws_log_cleaner/log_group_filterer.rb, line 7 def filter_by_name_includes(text) log_groups = @cloud_watch_logs.list_all_log_groups log_groups.select do |item| item.log_group_name.to_s.downcase.include?(text) end end