Sha256: ef662fec8ff30985cd876ee164ad0d03b5f6175dc0b7a986e277c1168a85b10b
Contents?: true
Size: 760 Bytes
Versions: 1
Compression:
Stored size: 760 Bytes
Contents
module PuppetRepl module Support module Environment # creates a puppet environment given a module path and environment name # this is cached def puppet_environment unless @puppet_environment do_initialize @puppet_environment = Puppet::Node::Environment.create( puppet_env_name, module_dirs, manifests_dir ) end @puppet_environment end # the cached name of the environment def puppet_env_name @penv ||= ENV['PUPPET_ENV'] || Puppet[:environment] end # currently this is not being used def environment_loaders name = compiler.loaders.public_environment_loader.loader_name end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puppet-repl-0.0.8 | lib/puppet-repl/support/environment.rb |