Class: Fcom::GitHelpers
- Inherits:
-
Object
- Object
- Fcom::GitHelpers
- Defined in:
- lib/fcom/git_helpers.rb
Overview
This class contains helpers that extract information from ‘git`.
Instance Method Summary collapse
Instance Method Details
#repo ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/fcom/git_helpers.rb', line 5 def repo # Examples: # [email protected]:davidrunger/fcom.git # https://github.com/davidrunger/fcom.git # https://github.com/davidrunger/fcom origin_fetch_url.delete_suffix('/').match(%r{github\.com[:/](((?!\.git).)*)})[1] end |