Sha256: 78fd39f702d88c055b7c1a9a3ed5579d34bd5439773c17994c1b352e71258622
Contents?: true
Size: 467 Bytes
Versions: 31
Compression:
Stored size: 467 Bytes
Contents
module Integrity module SCM class SCMUnknownError < StandardError; end def self.new(uri, *args) scm_class_for(uri).new(uri, *args) end def self.working_tree_path(uri) scm_class_for(uri).working_tree_path(uri) end private def self.scm_class_for(uri) return Git if uri.scheme == "git" || uri.path =~ /\.git\/?/ raise SCMUnknownError, "could not find any SCM based on URI '#{uri.to_s}'" end end end
Version data entries
31 entries across 31 versions & 9 rubygems