Exception: Puppet::Environments::EnvironmentNotFound Private

Inherits:
Puppet::Error show all
Defined in:
lib/puppet/environments.rb

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

Instance Attribute Summary

Attributes inherited from Puppet::Error

#original

Instance Method Summary collapse

Constructor Details

#initialize(environment_name, original = nil) ⇒ EnvironmentNotFound

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.

Returns a new instance of EnvironmentNotFound.



5
6
7
8
# File 'lib/puppet/environments.rb', line 5

def initialize(environment_name, original = nil)
  environmentpath = Puppet[:environmentpath]
  super("Could not find a directory environment named '#{environment_name}' anywhere in the path: #{environmentpath}. Does the directory exist?", original)
end