On Feb 10, 2011, at 2:03 AM, donavan wrote:
> On Feb 9, 9:50 pm, Luke Kanies <[email protected]> wrote:
>> On Feb 7, 2011, at 12:56 PM, Trevor Vaughan wrote:
>>
>>> Ok, I'm resurrecting this thread.
>>
>>> Why would I want:
>>
>>> if defined("class") without if defined(Class["class"]) ?
>>
>>> I'm just not seeing the use case.
>>
>> Can you rephrase the question? I can't seem to parse the Puppet from the
>> English.
>
> I believe he means something like:
> What is the use case for being able to use 'defined("class_name")'
> instead of 'defined(Class["class_name"])' ?
>
> Or, should we really be referring to objects by name only instead of
> specifying the type as well?
I see.
It's more backward compatibility than a separate use case.
Some of us are leaning away from even supporting resource references here -
that is, just support class names. Attempting to use it with normal resources
is a bit inconsistent -- classes are determined at parse-time, where resources
are determined at compile-time, so they test completely different things.
--
I do not feel obliged to believe that the same God who has endowed us
with sense, reason, and intellect has intended us to forgo their use.
-- Galileo Galilei
---------------------------------------------------------------------
Luke Kanies -|- http://puppetlabs.com -|- +1(615)594-8199
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en.