Sha256: d432cdf367f0f4f54fc882617924920101ccdc7ba1cdf3b3af03d32ea5d64aa0

Contents?: true

Size: 352 Bytes

Versions: 77

Compression:

Stored size: 352 Bytes

Contents

# frozen_string_literal: true

# A composite loader that allows for more than one
# default directory loader

module LegacyFacter
  module Util
    class CompositeLoader
      def initialize(loaders)
        @loaders = loaders
      end

      def load(collection)
        @loaders.each { |loader| loader.load(collection) }
      end
    end
  end
end

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
facter-4.0.44 lib/facter/custom_facts/util/composite_loader.rb
facter-4.0.43 lib/facter/custom_facts/util/composite_loader.rb
facter-4.0.42 lib/facter/custom_facts/util/composite_loader.rb
facter-4.0.41 lib/facter/custom_facts/util/composite_loader.rb
facter-4.0.40 lib/facter/custom_facts/util/composite_loader.rb
facter-4.0.39 lib/facter/custom_facts/util/composite_loader.rb
facter-4.0.38 lib/facter/custom_facts/util/composite_loader.rb
facter-4.0.37 lib/facter/custom_facts/util/composite_loader.rb
facter-4.0.36 lib/facter/custom_facts/util/composite_loader.rb
facter-4.0.35 lib/facter/custom_facts/util/composite_loader.rb
facter-4.0.34 lib/facter/custom_facts/util/composite_loader.rb
facter-4.0.33 lib/facter/custom_facts/util/composite_loader.rb
facter-4.0.32 lib/facter/custom_facts/util/composite_loader.rb
facter-4.0.31 lib/facter/custom_facts/util/composite_loader.rb
facter-4.0.30 lib/facter/custom_facts/util/composite_loader.rb
facter-4.0.29 lib/custom_facts/util/composite_loader.rb
facter-4.0.28 lib/custom_facts/util/composite_loader.rb
facter-4.0.26 lib/custom_facts/util/composite_loader.rb
facter-4.0.25 lib/custom_facts/util/composite_loader.rb
facter-4.0.24 lib/custom_facts/util/composite_loader.rb