Exception: Berkshelf::GitError
- Inherits:
-
BerkshelfError
- Object
- StandardError
- BerkshelfError
- Berkshelf::GitError
- Defined in:
- lib/berkshelf/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
Instance Method Summary collapse
-
#initialize(stderr) ⇒ GitError
constructor
A new instance of GitError.
- #to_s ⇒ Object
Methods inherited from BerkshelfError
Constructor Details
#initialize(stderr) ⇒ GitError
Returns a new instance of GitError.
60 61 62 |
# File 'lib/berkshelf/errors.rb', line 60 def initialize(stderr) @stderr = stderr end |
Instance Attribute Details
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
58 59 60 |
# File 'lib/berkshelf/errors.rb', line 58 def stderr @stderr end |
Instance Method Details
#to_s ⇒ Object
64 65 66 67 |
# File 'lib/berkshelf/errors.rb', line 64 def to_s out = "An error occured during Git execution:\n" out << stderr.prepend_each("\n", "\t") end |