Exception: Berkshelf::AmbiguousGitRef

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

Instance Method Summary collapse

Methods inherited from GitError

#header

Methods inherited from BerkshelfError

status_code

Constructor Details

#initialize(ref) ⇒ AmbiguousGitRef

Returns a new instance of AmbiguousGitRef.



67
68
69
# File 'lib/berkshelf/errors.rb', line 67

def initialize(ref)
  @ref = ref
end

Instance Method Details

#to_sObject



71
72
73
74
75
76
77
78
# File 'lib/berkshelf/errors.rb', line 71

def to_s
  [
    header,
    "",
    "  Ambiguous Git ref: '#{@ref}'",
    "",
  ].join("\n")
end