Exception: Berkshelf::DuplicateDependencyDefined

Inherits:
BerkshelfError
  • Object
show all
Defined in:
lib/berkshelf/errors.rb

Instance Method Summary collapse

Methods inherited from BerkshelfError

set_status_code

Constructor Details

#initialize(name) ⇒ DuplicateDependencyDefined

Returns a new instance of DuplicateDependencyDefined.



54
55
56
# File 'lib/berkshelf/errors.rb', line 54

def initialize(name)
  @name = name
end

Instance Method Details

#to_sObject



58
59
60
61
62
63
# File 'lib/berkshelf/errors.rb', line 58

def to_s
  out  = "Your Berksfile contains multiple entries named "
  out << "'#{@name}'. Please remove duplicate dependencies, or put them in "
  out << "different groups."
  out
end