Exception: Berkshelf::InvalidGitRef
- Inherits:
-
GitError
- Object
- StandardError
- BerkshelfError
- GitError
- Berkshelf::InvalidGitRef
- 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) ⇒ InvalidGitRef
constructor
A new instance of InvalidGitRef.
- #to_s ⇒ Object
Methods inherited from BerkshelfError
Constructor Details
#initialize(ref) ⇒ InvalidGitRef
Returns a new instance of InvalidGitRef.
55 56 57 |
# File 'lib/berkshelf/errors.rb', line 55 def initialize(ref) @ref = ref end |
Instance Attribute Details
#ref ⇒ Object (readonly)
Returns the value of attribute ref.
53 54 55 |
# File 'lib/berkshelf/errors.rb', line 53 def ref @ref end |
Instance Method Details
#to_s ⇒ Object
59 60 61 62 |
# File 'lib/berkshelf/errors.rb', line 59 def to_s out = "An error occurred during Git execution:\n" out << "Invalid Git ref: #{ref}" end |