Sha256: 2bd48495e6c67311ffed8aa7bedf05dad646a4f57c3c0c6b9b31e523f4f721f7
Contents?: true
Size: 338 Bytes
Versions: 5
Compression:
Stored size: 338 Bytes
Contents
# frozen_string_literal: true module EacLauncher module Vendor module Github class << self def to_ssh_url(url) return nil if url.blank? m = %r{\Ahttps://github.com/([^/]+)/([^/]+)\z}.match(url.to_s) m ? "git@github.com:#{m[1]}/#{m[2]}.git" : url end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems