class Berkshelf::OutdatedDependency
def initialize(locked, dependency)
-
dependency
(Dependency
) -- -
locked_dependency
(Dependency
) --
def initialize(locked, dependency) @locked = locked @dependency = dependency end
def to_s
def to_s "Berkshelf could not find compatible versions for cookbook '#{@dependency.name}':\n" + " In Berksfile:\n" + " #{@dependency.name} (#{@dependency.version_constraint})\n\n" + " In Berksfile.lock:\n" + " #{@locked.name} (#{@locked.version})\n\n" + "Try running `berks update #{@dependency.name}`, which will try to find '#{@dependency.name}' matching " + "'#{@dependency.version_constraint}'." end