> I just finished something very similar: > > > def self.title_join(hash) > "#{hash[:domain]}/#{hash[:type]}/#{hash[:item]}" > end > > where the default case was: > > + def self.title_join(hash) > + case key_attributes.length > + when 0,1; hash[:name] > + else > + Puppet.warning('you should specify a joiner when there are two > of more key a > + end > + end > > It will be a little while before I can get this code cleaned up into a > patch, it does not quite work yet...
Yeah, that looks like a good way to handle it & should work fine, assuming things are all in the right places and called correctly, etc. Shout if you get stuck & need help debugging it. -- Markus -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to puppet-dev@googlegroups.com. To unsubscribe from this group, send email to puppet-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.