Exception: Berkshelf::UnknownGitHubProtocol

Inherits:
BerkshelfError
  • Object
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(protocol) ⇒ UnknownGitHubProtocol

Returns a new instance of UnknownGitHubProtocol.

Parameters:



89
90
91
# File 'lib/berkshelf/errors.rb', line 89

def initialize(protocol)
  @protocol = protocol
end

Instance Attribute Details

#protocolObject (readonly)

Returns the value of attribute protocol.



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

def protocol
  @protocol
end

Instance Method Details

#to_sObject



93
94
95
# File 'lib/berkshelf/errors.rb', line 93

def to_s
  "'#{self.protocol}' is not a supported Git protocol for the 'github' location key. Please use 'git' instead."
end