Exception: Berkshelf::InvalidGitRef

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

Returns a new instance of InvalidGitRef.



55
56
57
# File 'lib/berkshelf/errors.rb', line 55

def initialize(ref)
  @ref = ref
end

Instance Attribute Details

#refObject (readonly)

Returns the value of attribute ref.



53
54
55
# File 'lib/berkshelf/errors.rb', line 53

def ref
  @ref
end

Instance Method Details

#to_sObject



59
60
61
62
# File 'lib/berkshelf/errors.rb', line 59

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