Method: Bundler::Molinillo::Resolver#resolve

Defined in:
lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb

#resolve(requested, base = DependencyGraph.new) ⇒ Object

Resolves the requested dependencies into a DependencyGraph, locking to the base dependency graph (if specified)

Parameters:

  • requested (Array)

    an array of ‘requested’ dependencies that the #specification_provider can understand

  • base (DependencyGraph, nil) (defaults to: DependencyGraph.new)

    the base dependency graph to which dependencies should be ‘locked’



38
39
40
41
42
43
44
# File 'lib/bundler/vendor/molinillo/lib/molinillo/resolver.rb', line 38

def resolve(requested, base = DependencyGraph.new)
  Resolution.new(specification_provider,
                 resolver_ui,
                 requested,
                 base).
    resolve
end