Exception: Berkshelf::AmbiguousGitRef
- Inherits:
-
GitError
- Object
- StandardError
- BerkshelfError
- GitError
- Berkshelf::AmbiguousGitRef
- Defined in:
- lib/berkshelf/errors.rb
Instance Attribute Summary collapse
-
#ref ⇒ Object
readonly
Returns the value of attribute ref.
Attributes inherited from GitError
Instance Method Summary collapse
-
#initialize(ref) ⇒ AmbiguousGitRef
constructor
A new instance of AmbiguousGitRef.
- #to_s ⇒ Object
Methods inherited from BerkshelfError
Constructor Details
#initialize(ref) ⇒ AmbiguousGitRef
Returns a new instance of AmbiguousGitRef.
43 44 45 |
# File 'lib/berkshelf/errors.rb', line 43 def initialize(ref) @ref = ref end |
Instance Attribute Details
#ref ⇒ Object (readonly)
Returns the value of attribute ref.
41 42 43 |
# File 'lib/berkshelf/errors.rb', line 41 def ref @ref end |
Instance Method Details
#to_s ⇒ Object
47 48 49 50 |
# File 'lib/berkshelf/errors.rb', line 47 def to_s out = "An error occurred during Git execution:\n" out << "Ambiguous Git ref: #{ref}" end |