get current puppet env path

19 views
Skip to first unread message

Vasil Mikhalenya

unread,
Mar 10, 2015, 1:32:35 PM3/10/15
to Puppet Users
Hi all,

could you advice how can I get path to the current env on the fs in custom function.

At the moment I do smth like

      module_path = Puppet::Module.find("my_module", compiler.environment.to_s).path

      env_path = module_path.sub("modules/my_module","")

which is creepy a bit and does not work in Vagrant because of modules-\d


Thank you.


--
Best regards,
Vasil Mikhalenya
Reply all
Reply to author
Forward
0 new messages