Class: Pronto::Git::Remote
- Inherits:
-
Struct
- Object
- Struct
- Pronto::Git::Remote
- Defined in:
- lib/pronto/git/remote.rb
Instance Attribute Summary collapse
-
#remote ⇒ Object
Returns the value of attribute remote.
Instance Method Summary collapse
Instance Attribute Details
#remote ⇒ Object
Returns the value of attribute remote
3 4 5 |
# File 'lib/pronto/git/remote.rb', line 3 def remote @remote end |
Instance Method Details
#github_slug ⇒ Object
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 |