provider/puppet/bundle.rb
# A manifest for the "bundle" module
A manifest for the "bundle" module
A manifest for the " bundle " module
def products
      @products ||= begin
        prod_map = Dir['products/**/puppet.yaml']
                   .reject { |f| f.include?('bundle') }
                   .map do |product_config|
                     product = Api::Compiler.new(
                       File.join(File.dirname(product_config), 'api.yaml')
                     ).run
                     product.validate
                     config = Provider::Config.parse(product_config, product)
                     config.validate
                     [product, config]
                   end
        Hash[prod_map.sort_by { |p| p[0].prefix }]
      end
    end
def products @products ||= begin prod_map = Dir [ 'products/**/puppet.yaml' ] . reject { | f | f . include? ( 'bundle' ) } . map do | product_config | product = Api :: Compiler . new ( File . join ( File . dirname ( product_config ) , 'api.yaml' ) ) . run product . validate config = Provider :: Config . parse ( product_config , product ) config . validate [ product , config ] end Hash [ prod_map . sort_by { | p | p [ 0 ] . prefix } ] end end
A manifest for the "bundle" module
A manifest for the " bundle " module