Sha256: 6d2a33fb34a00db210758a11d1bbe21ca11924e8ef03df1ae3e369ff017e55bc
Contents?: true
Size: 623 Bytes
Versions: 1
Compression:
Stored size: 623 Bytes
Contents
module Repomen module Repo module Service class GitHub < Base SERVICE_REGEXP = /(https:\/\/|git:\/\/|git\@)github.com[\:\/]([^\/]+)\/(.+?)(\.git)?$/ # @param url [String] def applicable? url =~ SERVICE_REGEXP end def handler_class Handler::Git end # overriding 'git_hub' here to make directories look prettier def name :github end def repo_name url =~ SERVICE_REGEXP && $3 end def user_name url =~ SERVICE_REGEXP && $2 end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
repomen-0.2.1 | lib/repomen/repo/service/git_hub.rb |