Method: Puppet::Settings::EnvironmentConf#modulepath

Defined in:
lib/puppet/settings/environment_conf.rb

#modulepathObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



100
101
102
103
104
105
106
107
108
# File 'lib/puppet/settings/environment_conf.rb', line 100

def modulepath
  default_modulepath = [File.join(@path_to_env, "modules")] + @global_module_path
  get_setting(:modulepath, default_modulepath) do |modulepath|
    path = modulepath.is_a?(String) ?
      modulepath.split(File::PATH_SEPARATOR) :
      modulepath
    path.map { |p| expand_glob(absolute(p)) }.flatten.join(File::PATH_SEPARATOR)
  end
end