Class: Entitlement::UsageOnlyEntry
- Defined in:
- lib/entitlement/usage_only_entry.rb
Overview
Docs
Instance Attribute Summary
Attributes inherited from Entry
Instance Method Summary collapse
-
#initialize(modules, from = nil, to = nil, filename_string = nil, &proc) ⇒ UsageOnlyEntry
constructor
A new instance of UsageOnlyEntry.
- #inspect ⇒ Object
- #valid?(module_name, resources = nil) ⇒ Boolean
Methods inherited from Entry
#days_left, #expiring?, #notify_if_expiring, #purgable?
Constructor Details
#initialize(modules, from = nil, to = nil, filename_string = nil, &proc) ⇒ UsageOnlyEntry
Returns a new instance of UsageOnlyEntry.
11 12 13 |
# File 'lib/entitlement/usage_only_entry.rb', line 11 def initialize(modules, from = nil, to = nil, filename_string = nil, &proc) super(modules, from, to, filename_string, &proc) end |
Instance Method Details
#inspect ⇒ Object
20 21 22 23 |
# File 'lib/entitlement/usage_only_entry.rb', line 20 def inspect super puts 'Entitlement : Usage only edition. Check http://enterprisemodules.com/ for supported editions.' end |
#valid?(module_name, resources = nil) ⇒ Boolean
15 16 17 18 |
# File 'lib/entitlement/usage_only_entry.rb', line 15 def valid?(module_name, resources = nil) Puppet.debug 'Found a Usage only entitlement....' super end |