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.2 lib/coral_core/util/git.rb
coral_core-0.2.0 lib/coral_core/util/git.rb
coral_core-0.1.10 lib/coral_core/util/git.rb
coral_core-0.1.9 lib/coral_core/util/git.rb
coral_core-0.1.8 lib/coral_core/util/git.rb
coral_core-0.1.7 lib/coral_core/util/git.rb
coral_core-0.1.6 lib/coral_core/util/git.rb
coral_core-0.1.5 lib/coral_core/util/git.rb
coral_core-0.1.4 lib/coral_core/util/git.rb
coral_core-0.1.2 lib/coral_core/util/git.rb