Class: Rugged::Remote

Inherits:
Object
  • Object
show all
Defined in:
lib/pronto/rugged/remote.rb

Instance Method Summary collapse

Instance Method Details

#github_slugObject



3
4
5
6
# File 'lib/pronto/rugged/remote.rb', line 3

def github_slug
  match = /.*github.com(:|\/)(?<slug>.*).git/.match(url)
  match[:slug] if match
end