Method: Fast::Node#project_url
- Defined in:
- lib/fast/git.rb
#project_url ⇒ String
Given #remote_url is “[email protected]:namespace/project.git” Or #remote_url is “github.com/namespace/project.git”
49 50 51 52 53 54 55 56 |
# File 'lib/fast/git.rb', line 49 def project_url return remote_url.gsub(/\.git$/, '') if remote_url.start_with?('https') remote_url .gsub('git@', 'https://') .gsub(/:(\w)/, '/\\1') .gsub(/\.git$/, '') end |