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:



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

def initialize(uri)
  @uri = uri
end

Instance Attribute Details

#uriObject (readonly)

Returns the value of attribute uri.



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

def uri
  @uri
end

Instance Method Details

#to_sObject



86
87
88
# File 'lib/berkshelf/errors.rb', line 86

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