Method: PDK::Context::ControlRepo#module_paths
- Defined in:
- lib/pdk/context/control_repo.rb
#module_paths ⇒ Array[String]
The modulepath setting for this control repository as an array of strings. These paths are relative and may contain interpolation strings (e.g. $basemodulepath)
27 28 29 30 31 32 33 34 |
# File 'lib/pdk/context/control_repo.rb', line 27 def module_paths return @module_paths unless @module_paths.nil? value = environment_conf['modulepath'] || '' # We have to use a hardcoded value here because File::PATH_SEPARATOR is ';' on Windows. # As the environment.conf is only used on Puppet Server, it's always ':' # Based on - https://github.com/puppetlabs/puppet/blob/f3e6d7e6d87f46408943a8e2176afb82ff6ea096/lib/puppet/settings/environment_conf.rb#L98-L106 @module_paths = value.split(':') end |