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.
749 750 751 |
# File 'lib/puppet/type.rb', line 749 def event( = {}) Puppet::Transaction::Event.new(**{ :resource => self, :file => file, :line => line, :tags => }.merge()) end |