Exception: Berkshelf::AmbiguousGitRef

Inherits:
GitError show all
Defined in:
lib/berkshelf/errors.rb

Instance Attribute Summary collapse

Attributes inherited from GitError

#stderr

Instance Method Summary collapse

Methods inherited from BerkshelfError

status_code

Constructor Details

#initialize(ref) ⇒ AmbiguousGitRef

Returns a new instance of AmbiguousGitRef.



43
44
45
# File 'lib/berkshelf/errors.rb', line 43

def initialize(ref)
  @ref = ref
end

Instance Attribute Details

#refObject (readonly)

Returns the value of attribute ref.



41
42
43
# File 'lib/berkshelf/errors.rb', line 41

def ref
  @ref
end

Instance Method Details

#to_sObject



47
48
49
50
# File 'lib/berkshelf/errors.rb', line 47

def to_s
  out = "An error occurred during Git execution:\n"
  out << "Ambiguous Git ref: #{ref}"
end