Exception: R10K::Git::GitError
- Defined in:
- lib/r10k/git/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#git_dir ⇒ Object
readonly
Returns the value of attribute git_dir.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(mesg, options = {}) ⇒ GitError
constructor
A new instance of GitError.
- #message ⇒ Object
Methods inherited from Error
Constructor Details
#initialize(mesg, options = {}) ⇒ GitError
Returns a new instance of GitError.
9 10 11 12 |
# File 'lib/r10k/git/errors.rb', line 9 def initialize(mesg, = {}) super @git_dir = @options[:git_dir] end |
Instance Attribute Details
#git_dir ⇒ Object (readonly)
Returns the value of attribute git_dir.
7 8 9 |
# File 'lib/r10k/git/errors.rb', line 7 def git_dir @git_dir end |
Instance Method Details
#message ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/r10k/git/errors.rb', line 14 def msg = super if @git_dir msg << " at #{@git_dir}" end msg end |