class Ghit::SshGlobals
Attributes
repository[R]
url[R]
Public Class Methods
new(remote)
click to toggle source
# File lib/ghit/ssh_globals.rb, line 6 def initialize remote @remote = remote @author = extract_author @repository = extract_repository @url = extract_url end
Private Instance Methods
extract_repository()
click to toggle source
# File lib/ghit/ssh_globals.rb, line 23 def extract_repository @remote.scan(/\/(.*).git/).join end
extract_url()
click to toggle source
# File lib/ghit/ssh_globals.rb, line 15 def extract_url "https://github.com/#{@author}/#{@repository}" end