Hi Thomas, This might help as a reference if you want to use rspec to test your functions. https://github.com/simp/pupmod-simp-simplib/tree/master/spec/functions
Thanks, Trevor On Mon, Sep 19, 2016 at 9:30 PM, Thomas Cheng <guolin.ch...@gmail.com> wrote: > Hi howdies, > > Recently I'm picking up some legacy puppet codes in my new company. the > puppet code base has custom functions written in ruby before. > > One major issue is: how to debug the custom functions to figure out the > logic inside? Can I copy/paste into an external general ruby script and > debug it with 'ruby -rdebug <script>', Or there is a better puppet-style > debugging method that we can learn? Thanks a lot. > > > Best, > Thomas > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/puppet-users/222c1936-f12a-43d3-8a3f-1a62f3f1ee78%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/222c1936-f12a-43d3-8a3f-1a62f3f1ee78%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Trevor Vaughan Vice President, Onyx Point, Inc (410) 541-6699 x788 -- This account not approved for unencrypted proprietary information -- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CANs%2BFoUWxuR6WyS_6vbe4QwgQ3K9wtxc5iotMrqcP7dwaP3J2g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.