class Gitti::GitHubRepo

todo: change to GitHubRepoRef or GitHubProject

or Git::GitHub or Git::Source::GitHub or such - why? why not?

Attributes

name[R]
owner[R]

Public Class Methods

new( owner, name ) click to toggle source
# File lib/gitti/base.rb, line 32
def initialize( owner, name )
  @owner = owner    ## use/rename to login or something - why? why not??
  @name  = name     #  e.g. "rubylibs/webservice"
end

Public Instance Methods

http_clone_url() click to toggle source
# File lib/gitti/base.rb, line 44
def http_clone_url   ## use clone_url( http: true )  -- why? why not?
   ##  note: https is default for github - http:// gets redirected to https://
   "http://github.com/#{@owner}/#{@name}"
end
https_clone_url() click to toggle source
# File lib/gitti/base.rb, line 49
def https_clone_url
  "https://github.com/#{@owner}/#{@name}"
end
ssh_clone_url() click to toggle source
# File lib/gitti/base.rb, line 38
def ssh_clone_url
   ##  check: use https: as default? for github - http:// still supported? or redirected?
   ## "http://github.com/#{@owner}/#{@name}"
   "git@github.com:#{@owner}/#{@name}.git"
end