Exception: Berkshelf::UnknownGitHubProtocol

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

Instance Method Summary collapse

Methods inherited from BerkshelfError

status_code

Constructor Details

#initialize(protocol) ⇒ UnknownGitHubProtocol

Returns a new instance of UnknownGitHubProtocol.

Parameters:



117
118
119
# File 'lib/berkshelf/errors.rb', line 117

def initialize(protocol)
  @protocol = protocol
end

Instance Method Details

#to_sObject



121
122
123
# File 'lib/berkshelf/errors.rb', line 121

def to_s
  "'#{@protocol}' is not supported for the 'github' location key - please use 'git' instead"
end