Class: Entitlement::UsageOnlyEntry

Inherits:
Entry
  • Object
show all
Defined in:
lib/entitlement/usage_only_entry.rb

Overview

Docs

Instance Attribute Summary

Attributes inherited from Entry

#file

Instance Method Summary collapse

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

#inspectObject



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

Returns:

  • (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