Method: Puppet::Type#event

Defined in:
lib/puppet/type.rb

#event(options = {}) ⇒ Puppet::Transaction::Event

TODO:

Needs a better explanation “Why should I care who is calling this method?”, What do I need to know about events and how they work? Where can I read about them?

Creates a transaction event. Called by Transaction or by a property. Merges the given options with the options :resource, :file, :line, and :tags, initialized from values in this object. For possible options to pass (if any ????) see Puppet::Transaction::Event.

Parameters:

  • options (Hash) (defaults to: {})

    options merged with a fixed set of options defined by this method, passed on to Puppet::Transaction::Event.

Returns:



749
750
751
# File 'lib/puppet/type.rb', line 749

def event(options = {})
  Puppet::Transaction::Event.new(**{ :resource => self, :file => file, :line => line, :tags => tags }.merge(options))
end