Class: Entitlement::CustomEntry
- Defined in:
- lib/entitlement/custom_entry.rb
Overview
This entry allows you to specfy custom ruby code to be run for checking entitlement validity
Instance Attribute Summary
Attributes inherited from Entry
Instance Method Summary collapse
-
#initialize(modules, from, to, filename_string, &validate) ⇒ CustomEntry
constructor
A new instance of CustomEntry.
- #inspect ⇒ Object
- #valid?(module_name, resources = nil) ⇒ Boolean
Methods inherited from Entry
#days_left, #expiring?, #notify_if_expiring, #purgable?
Constructor Details
#initialize(modules, from, to, filename_string, &validate) ⇒ CustomEntry
Returns a new instance of CustomEntry.
13 14 15 |
# File 'lib/entitlement/custom_entry.rb', line 13 def initialize(modules, from, to, filename_string, &validate) super(modules, from, to, filename_string, &validate) end |
Instance Method Details
#inspect ⇒ Object
22 23 24 25 |
# File 'lib/entitlement/custom_entry.rb', line 22 def inspect super puts 'Custom : <some custom checks>' end |
#valid?(module_name, resources = nil) ⇒ Boolean
17 18 19 20 |
# File 'lib/entitlement/custom_entry.rb', line 17 def valid?(module_name, resources = nil) Puppet.debug 'Found a custom entitlement....' super end |