Class: Jenkins::ProjectScmGit
- Inherits:
-
ProjectScm
- Object
- ProjectScm
- Jenkins::ProjectScmGit
- Defined in:
- lib/jenkins/project_scm.rb
Instance Method Summary collapse
-
#initialize(url = nil) ⇒ ProjectScmGit
constructor
A new instance of ProjectScmGit.
- #url ⇒ Object
Methods inherited from ProjectScm
Constructor Details
#initialize(url = nil) ⇒ ProjectScmGit
Returns a new instance of ProjectScmGit.
14 15 16 |
# File 'lib/jenkins/project_scm.rb', line 14 def initialize(url = nil) @url = url end |
Instance Method Details
#url ⇒ Object
18 19 20 |
# File 'lib/jenkins/project_scm.rb', line 18 def url @url ||= `git config remote.origin.url`.strip end |