Class: BuildpackSupport::Rake::RepositoryConfigurationFinder
- Inherits:
-
Object
- Object
- BuildpackSupport::Rake::RepositoryConfigurationFinder
- Defined in:
- lib/buildpack_support/rake/repository_configuration_finder.rb
Overview
A class that finds all eligible repository configurations
Instance Method Summary collapse
-
#find ⇒ Array<Hash>
Returns a collection of hashes that contain repository configurations.
-
#initialize ⇒ RepositoryConfigurationFinder
constructor
Creates a new instance.
Constructor Details
#initialize ⇒ RepositoryConfigurationFinder
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
#find ⇒ Array<Hash>
Returns 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 |