lib/berkshelf/errors.rb in berkshelf-1.0.0.rc3 vs lib/berkshelf/errors.rb in berkshelf-1.0.0
- old
+ new
@@ -55,9 +55,23 @@
def to_s
"'#{uri}' is not a valid Git URI."
end
end
+ class UnknownGitHubProtocol < BerkshelfError
+ status_code(110)
+ attr_reader :protocol
+
+ # @param [String] protocol
+ def initialize(protocol)
+ @protocol = protocol
+ end
+
+ def to_s
+ "'#{self.protocol}' is not a supported Git protocol for the 'github' location key. Please use 'git' instead."
+ end
+ end
+
class GitNotFound < BerkshelfError
status_code(110)
def to_s
"Could not find a Git executable in your path. Please add it and try again."