Class: Pronto::Git::Remote

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#remoteObject

Returns the value of attribute remote

Returns:

  • (Object)

    the current value of remote



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

def remote
  @remote
end

Instance Method Details

#github_slugObject



4
5
6
7
# File 'lib/pronto/git/remote.rb', line 4

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