class Puppet::Environments::StaticDirectory
Public Class Methods
new(env_name, env_dir, environment)
click to toggle source
Accepts a single environment in the given directory having the given name (not required to be reflected as the name of the directory)
Calls superclass method
Puppet::Environments::Static::new
# File lib/puppet/environments.rb 153 def initialize(env_name, env_dir, environment) 154 super(environment) 155 @env_dir = env_dir 156 @env_name = env_name.intern 157 end
Public Instance Methods
get_conf(name)
click to toggle source
@!macro loader_get_conf
# File lib/puppet/environments.rb 160 def get_conf(name) 161 return nil unless name.intern == @env_name 162 Puppet::Settings::EnvironmentConf.load_from(@env_dir, []) 163 end