class Pronto::Github
def slug
def slug @slug ||= begin @repo.remote_urls.map do |url| match = /.*github.com(:|\/)(?<slug>.*).git/.match(url) match[:slug] if match end.compact.first end end
def slug @slug ||= begin @repo.remote_urls.map do |url| match = /.*github.com(:|\/)(?<slug>.*).git/.match(url) match[:slug] if match end.compact.first end end