lib/sport_ngin_aws_auditor/instance_helper.rb
# this breaks up the instances array into instances with any of the strings in the ignore_instances_regexes and
# instances without
this breaks up the instances array into instances with any of the strings in the ignore_instances_regexes and
instances without
this breaks up the instances array into instances with any of the strings in the ignore_instances_regexes and instances without
def filter_ignored_instances(instances, ignore_instances_regexes)
      instances.partition { |instance|
        ignore_instances_regexes.any? { |regex|
          instance.name ? instance.name.match(regex) != nil : false
        }
      }
    end
def filter_ignored_instances ( instances , ignore_instances_regexes ) instances . partition { | instance | ignore_instances_regexes . any? { | regex | instance . name ? instance . name . match ( regex ) != nil : false } } end
this breaks up the instances array into instances with any of the strings in the ignore_instances_regexes and
instances without
this breaks up the instances array into instances with any of the strings in the ignore_instances_regexes and instances without
instances
<not_specific>
ignore_instances_regexes
<not_specific>