Re: [Puppet-dev] Re: [Puppet Users] Puppet Parse Trees (for a lint checker)

2011-03-02 Thread Nick Moffitt
Markus Roberts: > As a hack, I've occasionally done something like: > > diff --git a/lib/puppet/application/apply.rb [...] > - > Puppet::Node::Environment.new(Puppet[:environment]).known_resource_types > + print > ZAML.dump(Puppet::Node::Environment.new(Puppet[:environment]).known_reso

Re: [Puppet-dev] Re: [Puppet Users] Puppet Parse Trees (for a lint checker)

2011-03-01 Thread Markus Roberts
On Tue, Mar 1, 2011 at 9:05 AM, Dan Bode wrote: > Hi Nick (long time :) ) > > On Tue, Mar 1, 2011 at 3:14 AM, Nick Moffitt wrote: > >> I mean to write a lint checker for my manifests, but I am not a ruby >> developer to any degree of proficiency. What I think I would like is >> some kind of ser

[Puppet-dev] Re: [Puppet Users] Puppet Parse Trees (for a lint checker)

2011-03-01 Thread Dan Bode
Hi Nick (long time :) ) On Tue, Mar 1, 2011 at 3:14 AM, Nick Moffitt wrote: > I mean to write a lint checker for my manifests, but I am not a ruby > developer to any degree of proficiency. What I think I would like is > some kind of serialization of the AST for a given .pp file, which I can > t