Sha256: 5ce68ea3afb008a060db6a5ae556f50c1d5248b6be0ea50aaec5c04db24adead

Contents?: true

Size: 216 Bytes

Versions: 4

Compression:

Stored size: 216 Bytes

Contents

module Pronto
  module Git
    class Remote < Struct.new(:remote)
      def github_slug
        match = /.*github.com(:|\/)(?<slug>.*).git/.match(remote.url)
        match[:slug] if match
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pronto-0.3.3 lib/pronto/git/remote.rb
pronto-0.3.2 lib/pronto/git/remote.rb
pronto-0.3.1 lib/pronto/git/remote.rb
pronto-0.3.0 lib/pronto/git/remote.rb