module Puppet::Environments::EnvironmentCreator

@api private

Public Instance Methods

for(module_path, manifest) click to toggle source

Create an anonymous environment.

@param module_path [String] A list of module directories separated by the

PATH_SEPARATOR

@param manifest [String] The path to the manifest @return A new environment with the `name` `:anonymous`

@api private

   # File lib/puppet/environments.rb
23 def for(module_path, manifest)
24   Puppet::Node::Environment.create(:anonymous,
25                                    module_path.split(File::PATH_SEPARATOR),
26                                    manifest)
27 end