Sha256: 3ab796e1a45593bd559e476554d983024a4c1489e0239e116d545b5e7df65c6e

Contents?: true

Size: 336 Bytes

Versions: 3

Compression:

Stored size: 336 Bytes

Contents

module AwsLogCleaner

  class LogGroupFilterer

    def initialize(cloud_watch_logs)
      @cloud_watch_logs = cloud_watch_logs
    end

    def filter_by_name_includes(text)
      log_groups = @cloud_watch_logs.list_all_log_groups
      log_groups.select{ |item| item.log_group_name.to_s.downcase.include?(text) }
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aws_log_cleaner-0.1.7 lib/aws_log_cleaner/log_group_filterer.rb
aws_log_cleaner-0.1.6 lib/aws_log_cleaner/log_group_filterer.rb
aws_log_cleaner-0.1.5 lib/aws_log_cleaner/log_group_filterer.rb