Class: BuildpackSupport::Rake::RepositoryConfigurationFinder

Inherits:
Object
  • Object
show all
Defined in:
lib/buildpack_support/rake/repository_configuration_finder.rb

Overview

A class that finds all eligible repository configurations

Instance Method Summary collapse

Constructor Details

#initializeRepositoryConfigurationFinder

Creates a new instance



28
29
30
# File 'lib/buildpack_support/rake/repository_configuration_finder.rb', line 28

def initialize
  @configuration_utils = BuildpackSupport::ConfigurationUtils.new
end

Instance Method Details

#findArray<Hash>

Returns a collection of hashes that contain repository configurations

Returns:

  • (Array<Hash>)

    a collection of hashes that contain repository configurations



35
36
37
38
39
# File 'lib/buildpack_support/rake/repository_configuration_finder.rb', line 35

def find
  component_ids.map do |component_id|
    configurations(@configuration_utils.load(component_id))
  end.flatten
end