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