Class: Entitlement::OpenSourceEntry

Inherits:
Entry
  • Object
show all
Defined in:
lib/entitlement/opensource_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) ⇒ OpenSourceEntry

Returns a new instance of OpenSourceEntry.



11
12
13
# File 'lib/entitlement/opensource_entry.rb', line 11

def initialize(modules, from = nil, to = nil, filename_string = nil, &proc)
  super(modules, from, to, &proc)
end

Instance Method Details

#inspectObject



20
21
22
23
# File 'lib/entitlement/opensource_entry.rb', line 20

def inspect
  super
  puts 'Entitlement : OpenSource edition. Check http://enterprisemodules.com/ for supported editions.'
end

#valid?(module_name, resources = nil) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
18
# File 'lib/entitlement/opensource_entry.rb', line 15

def valid?(module_name, resources = nil)
  Puppet.debug 'Found an Open Source entitlement....'
  super
end