So it would appear the parameter 'name' acts as namevar for file and
exec at least ... its not defined in the type for these explicitly -
it seems implicit. This seems historical and I haven't seen it used
before (at least I've never used it myself). Does anyone know the
history behind this?
The following:
@key_attribute_parameters ||= (
params = @parameters.find_all { |param|
param.isnamevar? or param.name == :name
}
)
Is defined in puppet/type.rb :-). Not sure if we have this behavior
documented - or if its up for deprecation :-).
ken.
On Wed, Jun 22, 2011 at 6:40 PM, Henrik Lindberg
<[email protected]> wrote:
> Hi,
> A bit of help is needed with this geppetto issue:
> https://github.com/cloudsmith/geppetto/issues/87
>
> It is about the parameter "name" in relation to "file".
>
> Appreciate feedback.
>
> Regards
> - henrik
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" 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-users?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" 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-users?hl=en.