Class: Monolith::RepositoryFinder
- Inherits:
-
Object
- Object
- Monolith::RepositoryFinder
- Includes:
- Finder
- Defined in:
- lib/monolith/repository_finder.rb
Instance Method Summary collapse
- #all ⇒ Object
-
#initialize(monolith) ⇒ RepositoryFinder
constructor
A new instance of RepositoryFinder.
Methods included from Finder
Constructor Details
#initialize(monolith) ⇒ RepositoryFinder
Returns a new instance of RepositoryFinder.
5 6 7 |
# File 'lib/monolith/repository_finder.rb', line 5 def initialize(monolith) @monolith = monolith end |
Instance Method Details
#all ⇒ Object
9 10 11 12 13 14 |
# File 'lib/monolith/repository_finder.rb', line 9 def all @monolith.config.repositories.map do |(name, url)| path = File.(name, Dir.pwd) Repository.new(path, url) end end |