Module: Kelbim::Utils::Helper

Included in:
Client, Exporter
Defined in:
lib/kelbim/utils.rb

Instance Method Summary collapse

Instance Method Details

#matched_elb?(name) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/kelbim/utils.rb', line 4

def matched_elb?(name)
  result = true

  if @options[:exclude_elb_name]
    result &&= name !~ @options[:exclude_elb_name]
  end

  if @options[:elb_name]
    result &&= name =~ @options[:elb_name]
  end

  result
end