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.
82 83 84 |
# File 'lib/berkshelf/errors.rb', line 82 def initialize(ref) @ref = ref end |
Instance Method Details
#to_s ⇒ Object
86 87 88 89 90 91 92 93 |
# File 'lib/berkshelf/errors.rb', line 86 def to_s [ header, "", " Invalid Git ref: '#{@ref}'", "", ].join("\n") end |