how to invoke the ruby function inside a ruby task

12 views
Skip to first unread message

Vinay Korrapati

unread,
Apr 21, 2021, 8:58:35 AM4/21/21
to Puppet Users
Hi Team,

I would like to invoke a ruby function from the puppet ruby task.

here the example :
I have a module :
<module name (test)><lib><puppet><functions><module name><function name.rb (function1.rb)>

<tasks><taskname.rb (sample.rb)>Can i call the function1.rb function in sample.rb task ? (function and task both are in same module) .

<module name (test-1)><lib><puppet><functions><module name><function name.rb (function2.rb)>


And can we call the ruby function (function2.rb) which is under different module  (test-1) from the puppet task  (sample.rb) ?



Regards
Vinay 
Reply all
Reply to author
Forward
0 new messages