A source of pre-defined environments.
@api private
@!macro loader_get
# File lib/puppet/environments.rb, line 102 def get(name) @environments.find do |env| env.name == name.intern end end
Returns a basic environment configuration object tied to the environment’s implementation values. Will not interpolate.
@!macro loader_get_conf
# File lib/puppet/environments.rb, line 112 def get_conf(name) env = get(name) if env Puppet::Settings::EnvironmentConf.static_for(env, Puppet[:parser]) else nil end end
@!macro loader_list
# File lib/puppet/environments.rb, line 97 def list @environments end
@!macro loader_search_paths
# File lib/puppet/environments.rb, line 92 def search_paths ["data:text/plain,internal"] end
# File lib/puppet/environments.rb, line 87 def initialize(*environments) @environments = environments end