Exception: R10K::Git::UnresolvableRefError

Inherits:
GitError
  • Object
show all
Defined in:
lib/r10k/git/errors.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#original

Instance Method Summary collapse

Methods inherited from Error

wrap

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, options = {})
  super
  @ref     = @options[:ref]
  @git_dir = @options[:git_dir]
end

Instance Attribute Details

#git_dirObject (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

#refObject (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

#messageObject



19
20
21
22
23
24
25
# File 'lib/r10k/git/errors.rb', line 19

def message
  msg = super
  if @git_dir
    msg << " at #{@git_dir}"
  end
  msg
end