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