Method: Puppet::Type#version

Defined in:
lib/puppet/type.rb

#version???

TODO:

What is this used for? Needs a better explanation.

Returns the version of the catalog or 0 if there is no catalog.

Returns:

  • (???)

    the version of the catalog or 0 if there is no catalog.



914
915
916
917
918
# File 'lib/puppet/type.rb', line 914

def version
  return 0 unless catalog

  catalog.version
end