I have a hash defined containing some static information. This exists within a custom function for Puppet.
I wish to share this code with a ruby test harness I'm writing; there will be additional resources that both Puppet and the test harness can make use of. My question is - what's the best way to achieve this? I've seen in custom function examples that require statements are specified outside the puppet custom function template. However, if I try to move my static hash definition to this scope then it's no longer visible to the custom function. How may I access static info like this from standard ruby, and what scope in the puppet custom function definition should it occupy? Thank you for your time. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/VV5Qh0XEuDIJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.