Exception: Berkshelf::AmbiguousGitRef
- Inherits:
-
GitError
- Object
- StandardError
- BerkshelfError
- GitError
- Berkshelf::AmbiguousGitRef
- Defined in:
- lib/berkshelf/errors.rb
Instance Method Summary collapse
-
#initialize(ref) ⇒ AmbiguousGitRef
constructor
A new instance of AmbiguousGitRef.
- #to_s ⇒ Object
Methods inherited from GitError
Methods inherited from BerkshelfError
Constructor Details
#initialize(ref) ⇒ AmbiguousGitRef
Returns a new instance of AmbiguousGitRef.
67 68 69 |
# File 'lib/berkshelf/errors.rb', line 67 def initialize(ref) @ref = ref end |
Instance Method Details
#to_s ⇒ Object
71 72 73 74 75 76 77 78 |
# File 'lib/berkshelf/errors.rb', line 71 def to_s [ header, "", " Ambiguous Git ref: '#{@ref}'", "", ].join("\n") end |