Exception: Berkshelf::InvalidGitRef

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) ⇒ InvalidGitRef

Returns a new instance of InvalidGitRef.



82
83
84
# File 'lib/berkshelf/errors.rb', line 82

def initialize(ref)
  @ref = ref
end

Instance Method Details

#to_sObject



86
87
88
89
90
91
92
93
# File 'lib/berkshelf/errors.rb', line 86

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