Here is how to invoke the function 'fqdn_rand(30)' in irb
irb > require 'puppet'
irb > scope => Puppet::Parser::Scope.new_for_test_harness('localhost')
irb>> scope.function_fqnrand([30])
=> "1"
That may not work if your function requires a fully configured system.
If you need that set the break
Hallo,
I'm developing a custom function that is exhibiting some odd behavior, so I
would like to debug it.
How do I load it in the ruby shell in a way that lets me execute it?
I have tried the steps on the documentation:
irb(main):001:0> require 'puppet'
>
> => true
>
> irb(main):002:0> require '