Issue #2281 has been reported by James Turnbull.
----------------------------------------
Refactor #2281: Element wrappers
http://projects.reductivelabs.com/issues/2281
Author: James Turnbull
Status: Needs design decision
Priority: Normal
Assigned to: Luke Kanies
Category:
Target version: unplanned
Affected version: 0.24.8
A significant portion of functions look something like this:
define remotefile(source, mode, owner) {
file { $name:
source => "puppet://puppet/module/$source",
mode => $mode,
owner => $owner,
}
}
Notice that it just wraps another type, adding a bit of information. It'd be
great to have a simple language construct that supported this smoothly, so we
didn't have to respecify every attribute supported by the object type (notice
particularly that most attributes are *not* overridden). It seems almost like
it should be a subclass of an existing type, using something akin to ruby's
"super" function:
define remotefile(source) inherits file {
super {
source => "puppet://puppet/module/$source"
}
}
This provides the needed functionality and is relatively straightforward in
concept.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://reductivelabs.com/redmine/my/account
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" 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-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---