Class: GitHubRepo
- Inherits:
-
Object
- Object
- GitHubRepo
- 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
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
Instance Method Summary collapse
-
#initialize(owner, name) ⇒ GitHubRepo
constructor
A new instance of GitHubRepo.
- #ssh_clone_url ⇒ Object
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
212 213 214 |
# File 'lib/mono/git/base.rb', line 212 def name @name end |
#owner ⇒ Object (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_url ⇒ Object
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 |