HomePhorge

(#12296) Make `Puppet::Type` ordered.
9962ac0885f9Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#12296) Make Puppet::Type ordered.

Type instances have a reasonable natural order, which allows us to make them
Comparable. This, in turn, makes any interaction where ordering is of
interest easier to deal with.

This implementation uses the string form of the resource as the basis for
comparison, which is a reasonable starting point from existing definitions of
ordering over resource instances.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
Matthaus Litteken <matthaus@puppetlabs.com>Committed on Feb 20 2012, 8:32 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUb28d4ce84a56: (#12296) Test cycle detection on real Puppet::Type instances.
Branches
Unknown
Tags
Unknown

Event Timeline

Matthaus Litteken <matthaus@puppetlabs.com> committed rPU9962ac0885f9: (#12296) Make `Puppet::Type` ordered. (authored by Daniel Pittman <daniel@puppetlabs.com>).Feb 20 2012, 8:32 PM