Class: Jenkins::ProjectScm

Inherits:
Object show all
Defined in:
lib/jenkins/project_scm.rb

Direct Known Subclasses

ProjectScmGit

Class Method Summary collapse

Class Method Details

.discover(scm) ⇒ Object



4
5
6
# File 'lib/jenkins/project_scm.rb', line 4

def self.discover(scm)
  ProjectScmGit.new(scm) if File.exist?(".git") && File.directory?(".git")
end

.supportedObject



8
9
10
# File 'lib/jenkins/project_scm.rb', line 8

def self.supported
  %w[git]
end