PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property/ |
| 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/property/ordered_list.rb |
require_relative '../../puppet/property/list'
module Puppet
class Property
# This subclass of {Puppet::Property} manages an ordered list of values.
# The maintained order is the order defined by the 'current' set of values (i.e. the
# original order is not disrupted). Any additions are added after the current values
# in their given order).
#
# For an unordered list see {Puppet::Property::List}.
#
class OrderedList < List
def add_should_with_current(should, current)
if current.is_a?(Array)
#tricky trick
#Preserve all the current items in the list
#but move them to the back of the line
should = should + (current - should)
end
should
end
def dearrayify(array)
array.join(delimiter)
end
end
end
end