Class: Doubleshot::Resolver
- Defined in:
- lib/doubleshot/resolver.rb,
lib/doubleshot/resolver/gem_resolver.rb,
lib/doubleshot/resolver/jar_resolver.rb,
lib/doubleshot/resolver/gem_resolver/graph.rb,
lib/doubleshot/resolver/gem_resolver/demand.rb,
lib/doubleshot/resolver/gem_resolver/errors.rb,
lib/doubleshot/resolver/gem_resolver/solver.rb,
lib/doubleshot/resolver/gem_resolver/source.rb,
lib/doubleshot/resolver/gem_resolver/artifact.rb,
lib/doubleshot/resolver/gem_resolver/dependency.rb,
lib/doubleshot/resolver/gem_resolver/gem_source.rb,
lib/doubleshot/resolver/gem_resolver/solver/variable_row.rb,
lib/doubleshot/resolver/gem_resolver/solver/constraint_row.rb,
lib/doubleshot/resolver/gem_resolver/solver/variable_table.rb,
lib/doubleshot/resolver/gem_resolver/solver/constraint_table.rb
Direct Known Subclasses
Defined Under Namespace
Classes: GemResolver, GemResolverError, JarResolver
Instance Method Summary collapse
- #fetch(dependencies) ⇒ Object
-
#initialize(*repositories) ⇒ Resolver
constructor
A new instance of Resolver.
- #repositories ⇒ Object
Constructor Details
#initialize(*repositories) ⇒ Resolver
Returns a new instance of Resolver.
5 6 7 8 9 10 |
# File 'lib/doubleshot/resolver.rb', line 5 def initialize(*repositories) @repositories = repositories.map do |repository| URI.parse repository.to_s end raise ArgumentError.new("no repositories specified") if @repositories.empty? end |
Instance Method Details
#fetch(dependencies) ⇒ Object
12 13 14 |
# File 'lib/doubleshot/resolver.rb', line 12 def fetch(dependencies) raise NotImplementedError.new end |
#repositories ⇒ Object
16 17 18 |
# File 'lib/doubleshot/resolver.rb', line 16 def repositories ReadonlyCollection.new(@repositories) end |