How to Specify Collector Overrides

15 views
Skip to first unread message

William Leese

unread,
Jan 20, 2014, 3:59:03 AM1/20/14
to puppe...@googlegroups.com
Hi,

I'm trying to wrap a function around collectors to provide custom override behaviour, but I'm having trouble figuring out how to specify these overrides.

type_name = 'user'
vquery = proc { |res| res.title == match_value }
collector = Puppet::Parser::Collector.new(self, type_name, nil, vquery, :virtual)
$override = ?
collector.add_override(override)
compiler.add_collection(collector)

Any help would be appreciated.

William Leese

unread,
Jan 20, 2014, 9:29:12 PM1/20/14
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages