Exception: Berkshelf::InvalidGitURI

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BerkshelfError

status_code

Constructor Details

#initialize(uri) ⇒ InvalidGitURI

Returns a new instance of InvalidGitURI.

Parameters:



75
76
77
# File 'lib/berkshelf/errors.rb', line 75

def initialize(uri)
  @uri = uri
end

Instance Attribute Details

#uriObject (readonly)

Returns the value of attribute uri.



72
73
74
# File 'lib/berkshelf/errors.rb', line 72

def uri
  @uri
end

Instance Method Details

#to_sObject



79
80
81
# File 'lib/berkshelf/errors.rb', line 79

def to_s
  "'#{uri}' is not a valid Git URI."
end