PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/ldap/ |
| Server: Linux server1.ngambekcore.com 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 04:00:07 EDT 2025 x86_64 IP: 159.198.77.92 |
| Dir : //opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/util/ldap/generator.rb |
require_relative '../../../puppet/util/ldap'
class Puppet::Util::Ldap::Generator
# Declare the attribute we'll use to generate the value.
def from(source)
@source = source
self
end
# Actually do the generation.
def generate(value = nil)
if value.nil?
@generator.call
else
@generator.call(value)
end
end
# Initialize our generator with the name of the parameter
# being generated.
def initialize(name)
@name = name
end
def name
@name.to_s
end
def source
if @source
@source.to_s
else
nil
end
end
# Provide the code that does the generation.
def with(&block)
@generator = block
self
end
end