Class: GitHubRepo

Inherits:
Object
  • Object
show all
Defined in:
lib/mono/git/base.rb

Overview

todo: change to GitHubRepoRef or GitHubProject

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(owner, name) ⇒ GitHubRepo

Returns a new instance of GitHubRepo.



214
215
216
217
# File 'lib/mono/git/base.rb', line 214

def initialize( owner, name )
  @owner = owner    ## use/rename to login or something - why? why not??

  @name  = name     #  e.g. "rubylibs/webservice"

end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



212
213
214
# File 'lib/mono/git/base.rb', line 212

def name
  @name
end

#ownerObject (readonly)

Returns the value of attribute owner.



212
213
214
# File 'lib/mono/git/base.rb', line 212

def owner
  @owner
end

Instance Method Details

#ssh_clone_urlObject



219
220
221
222
223
# File 'lib/mono/git/base.rb', line 219

def ssh_clone_url
   ##  check: use https: as default? for github - http:// still supported? or redirected?

   ## "http://github.com/#{@owner}/#{@name}"

   "[email protected]:#{@owner}/#{@name}.git"
end