Class: PomPomPom::Resolver::PomResolver

Inherits:
Object
  • Object
show all
Defined in:
lib/pompompom/resolver.rb

Instance Method Summary collapse

Constructor Details

#initialize(dependencies, repositories, downloader, logger) ⇒ PomResolver

Returns a new instance of PomResolver.



94
95
96
# File 'lib/pompompom/resolver.rb', line 94

def initialize(dependencies, repositories, downloader, logger)
  @dependencies, @repositories, @downloader, @logger = dependencies, repositories, downloader, logger
end

Instance Method Details

#all_pomsObject



98
99
100
# File 'lib/pompompom/resolver.rb', line 98

def all_poms
  @dependencies.map { |d| resolve_dependencies(d) }.flatten
end