Class: FPM::Fry::Plugin::Exclude::Exclude
- Inherits:
-
Struct
- Object
- Struct
- FPM::Fry::Plugin::Exclude::Exclude
- Defined in:
- lib/fpm/fry/plugin/exclude.rb
Instance Attribute Summary collapse
-
#matches ⇒ Object
Returns the value of attribute matches.
Instance Method Summary collapse
Instance Attribute Details
#matches ⇒ Object
Returns the value of attribute 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 |