Class: Integrity::SCM::Git

Inherits:
Object
  • Object
show all
Defined in:
lib/integrity/scm/git.rb

Class Method Summary collapse

Class Method Details

.is_this_my_home?(location) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
8
# File 'lib/integrity/scm/git.rb', line 5

def self.is_this_my_home?( location )
  uri = Addressable::URI.parse( location )
  return (uri.scheme == "git" || uri.path =~ /\.git\/?/)
end