]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
(#10802) add new function get_module_path
authorDan Bode <dan@puppetlabs.com>
Mon, 14 Nov 2011 18:32:49 +0000 (10:32 -0800)
committerDan Bode <dan@puppetlabs.com>
Mon, 14 Nov 2011 21:22:55 +0000 (13:22 -0800)
commit05c67671fd442c4fc2f20293075495bb97879855
treec4e3c3655fc798749447935e0cf9cfe4df4a5df2
parent86e86089fb41cb6fb2d6b7e358ed2afe0506fbeb
(#10802) add new function get_module_path

This commit adds a new function called get_module_path.

get_module_path returns the absolute path of a specified module. The
code and functionality is very similar to how templates and files
are detected inside of modules.

the function has been tested against puppet 2.6.10 and 2.7.x
lib/puppet/parser/functions/get_module_path.rb [new file with mode: 0644]
spec/unit/puppet/parser/functions/get_module_path_spec.rb [new file with mode: 0644]