lib/berkshelf/resolver.rb in berkshelf-1.4.6 vs lib/berkshelf/resolver.rb in berkshelf-2.0.0.beta
- old
+ new
@@ -3,19 +3,20 @@
class Resolver
extend Forwardable
# @return [Berkshelf::Berksfile]
attr_reader :berksfile
+
# @return [Solve::Graph]
attr_reader :graph
# @param [Berkshelf::Berksfile] berksfile
# @param [Hash] options
#
# @option options [Array<CookbookSource>, CookbookSource] sources
def initialize(berksfile, options = {})
@berksfile = berksfile
- @downloader = @berksfile.downloader
+ @downloader = berksfile.downloader
@graph = Solve::Graph.new
@sources = Hash.new
# Dependencies need to be added AFTER the sources. If they are
# not, then one of the dependencies of a source that is added