Hi all, 
       I want to parse the puppet url in my customizes functions.  Eg, 
        

 module Puppet::Parser::Functions
      newfunction(:load_file, ) do |arg|
           path = get_real_path(arg[0])
           load_file_content(path)
      end
    end


suppose arg[0] is a puppet file url: puppt:///module/someModule/fileName.yaml, 
how can I parse this url and get the real os path of that file? 

BR/Woosley


-- 
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/-/SwFbxhgqfdgJ.
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.

Reply via email to