Exception: Berkshelf::UnknownGitHubProtocol
- Inherits:
-
BerkshelfError
- Object
- StandardError
- BerkshelfError
- Berkshelf::UnknownGitHubProtocol
- Defined in:
- lib/berkshelf/errors.rb
Instance Attribute Summary collapse
-
#protocol ⇒ Object
readonly
Returns the value of attribute protocol.
Instance Method Summary collapse
-
#initialize(protocol) ⇒ UnknownGitHubProtocol
constructor
A new instance of UnknownGitHubProtocol.
- #to_s ⇒ Object
Methods inherited from BerkshelfError
Constructor Details
#initialize(protocol) ⇒ UnknownGitHubProtocol
Returns a new instance of UnknownGitHubProtocol.
96 97 98 |
# File 'lib/berkshelf/errors.rb', line 96 def initialize(protocol) @protocol = protocol end |
Instance Attribute Details
#protocol ⇒ Object (readonly)
Returns the value of attribute protocol.
93 94 95 |
# File 'lib/berkshelf/errors.rb', line 93 def protocol @protocol end |
Instance Method Details
#to_s ⇒ Object
100 101 102 |
# File 'lib/berkshelf/errors.rb', line 100 def to_s "'#{self.protocol}' is not a supported Git protocol for the 'github' location key. Please use 'git' instead." end |