Class: FPM::Fry::Plugin::Exclude::Exclude

Inherits:
Struct
  • Object
show all
Defined in:
lib/fpm/fry/plugin/exclude.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#matchesObject

Returns the value of attribute matches

Returns:

  • (Object)

    the current value of matches



4
5
6
# File 'lib/fpm/fry/plugin/exclude.rb', line 4

def matches
  @matches
end

Instance Method Details

#call(_, package) ⇒ Object



6
7
8
# File 'lib/fpm/fry/plugin/exclude.rb', line 6

def call(_, package)
  (package.attributes[:excludes] ||= []).push(*matches)
end