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

Version Path
coral_core-0.2.26 lib/coral_core/util/git.rb
coral_core-0.2.25 lib/coral_core/util/git.rb
coral_core-0.2.24 lib/coral_core/util/git.rb
coral_core-0.2.19 lib/coral_core/util/git.rb
coral_core-0.2.18 lib/coral_core/util/git.rb
coral_core-0.2.17 lib/coral_core/util/git.rb
coral_core-0.2.16 lib/coral_core/util/git.rb
coral_core-0.2.15 lib/coral_core/util/git.rb
coral_core-0.2.14 lib/coral_core/util/git.rb
coral_core-0.2.13 lib/coral_core/util/git.rb
coral_core-0.2.12 lib/coral_core/util/git.rb
coral_core-0.2.11 lib/coral_core/util/git.rb
coral_core-0.2.10 lib/coral_core/util/git.rb
coral_core-0.2.9 lib/coral_core/util/git.rb
coral_core-0.2.8 lib/coral_core/util/git.rb
coral_core-0.2.7 lib/coral_core/util/git.rb
coral_core-0.2.6 lib/coral_core/util/git.rb
coral_core-0.2.5 lib/coral_core/util/git.rb
coral_core-0.2.4 lib/coral_core/util/git.rb
coral_core-0.2.3 lib/coral_core/util/git.rb