Sha256: 478701237990b77c6d812f547ce68877f78d1269224d2a1d34850e50a73cb4b6
Contents?: true
Size: 379 Bytes
Versions: 1
Compression:
Stored size: 379 Bytes
Contents
module Hudson class ProjectScm def self.discover(scm) ProjectScmGit.new(scm) if File.exist?(".git") && File.directory?(".git") end def self.supported %w[git] end end class ProjectScmGit < ProjectScm def initialize(url = nil) @url = url end def url @url ||= `git config remote.origin.url`.strip end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hudson-0.5.0 | lib/hudson/project_scm.rb |