Sha256: 3a7bd35ee03173031bf46ca8d918cfd0f1b9d35455c256a1756ba3834494ba67
Contents?: true
Size: 575 Bytes
Versions: 2
Compression:
Stored size: 575 Bytes
Contents
module URI module SshGit # @see http://docs.ruby-lang.org/en/2.2.0/URI/Generic.html class Generic < ::URI::Generic # @example # Generic.build( # userinfo: 'git', # host: 'github.com', # path: '/packsaddle/ruby-uri-ssh_git.git' # ).to_s # #=> 'git@github.com:packsaddle/ruby-uri-ssh_git.git' # # @return [String] git repository url via ssh protocol def to_s show_path = path.slice(1..-1) if path.start_with?('/') "#{user}@#{host}:#{show_path}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
uri-ssh_git-1.0.0 | lib/uri/ssh_git/generic.rb |
uri-ssh_git-0.1.2 | lib/uri/ssh_git/generic.rb |