Sha256: 8b82bc958c6c07c81ed895f6351a673c1a57c9ca12af0c80d43530e540e9dfc6
Contents?: true
Size: 276 Bytes
Versions: 6
Compression:
Stored size: 276 Bytes
Contents
module PT::Flow class Repo def user path.split('/').first end def name path.split('/').last end private def path @path ||= `git config --get remote.origin.url`.strip.match(/github.com[:\/](\S+\/\S+)\.git/)[1] end end end
Version data entries
6 entries across 6 versions & 1 rubygems