Exception: Berkshelf::DuplicateDependencyDefined
- Inherits:
-
BerkshelfError
- Object
- StandardError
- BerkshelfError
- Berkshelf::DuplicateDependencyDefined
- Defined in:
- lib/berkshelf/errors.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ DuplicateDependencyDefined
constructor
A new instance of DuplicateDependencyDefined.
- #to_s ⇒ Object
Methods inherited from BerkshelfError
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_s ⇒ Object
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 |