puppetlabs/puppetlabs-stdlib — pull request #146 by vitorgouveia (2013-04-17 09:01:30+00:00)
Title: load class if exists

Hi,,

It would be nice to have a function that loads a class if the class is available.

example:

loadclass_ifexists(“class X”)

It would be the same as:

class {“class X”: }

but only if the class exists. Otherwise, ignores the call

Cheers,
Vitor