Sha256: 01b18f7cb9ee98ae2784738ad3c4f68b009410a08c3f51e5673d17e402a24e43
Contents?: true
Size: 416 Bytes
Versions: 30
Compression:
Stored size: 416 Bytes
Contents
require 'git' module Git #----------------------------------------------------------------------------- # Utilities def self.url(host, repo, options = {}) options[:user] = ( options[:user] ? options[:user] : 'git' ) options[:auth] = ( options[:auth] ? options[:auth] : true ) return options[:user] + ( options[:auth] ? '@' : '://' ) + host + ( options[:auth] ? ':' : '/' ) + repo end end
Version data entries
30 entries across 30 versions & 1 rubygems