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.
89 90 91 |
# File 'lib/berkshelf/errors.rb', line 89 def initialize(protocol) @protocol = protocol end |
Instance Attribute Details
#protocol ⇒ Object (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_s ⇒ Object
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 |