Class: Doubleshot::Resolver

Inherits:
Object show all
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

GemResolver, JarResolver

Defined Under Namespace

Classes: GemResolver, GemResolverError, JarResolver

Instance Method Summary collapse

Constructor Details

#initialize(*repositories) ⇒ Resolver

Returns a new instance of Resolver.

Raises:

  • (ArgumentError)


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

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/doubleshot/resolver.rb', line 12

def fetch(dependencies)
  raise NotImplementedError.new
end

#repositoriesObject



16
17
18
# File 'lib/doubleshot/resolver.rb', line 16

def repositories
  ReadonlyCollection.new(@repositories)
end