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.
30 31 32 |
# File 'lib/berkshelf/errors.rb', line 30 def initialize(stderr) @stderr = stderr end |
Instance Attribute Details
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
28 29 30 |
# File 'lib/berkshelf/errors.rb', line 28 def stderr @stderr end |
Instance Method Details
#to_s ⇒ Object
34 35 36 37 |
# File 'lib/berkshelf/errors.rb', line 34 def to_s out = "An error occured during Git execution:\n" out << stderr.prepend_each("\n", "\t") end |