class GitProperties
Public Class Methods
repoDirName(repoPath)
click to toggle source
# File lib/gitcopy.rb, line 56 def self.repoDirName(repoPath) repoName = repoName(repoPath) repoExtension = repoExtension(repoPath) repoDirName = repoName[0...-repoExtension.length] return repoDirName end
repoExtension(repoPath)
click to toggle source
# File lib/gitcopy.rb, line 50 def self.repoExtension(repoPath) repoName = repoName(repoPath) repoExtension = repoName.split(//).last(4).join return repoExtension end
repoName(repoPath)
click to toggle source
# File lib/gitcopy.rb, line 45 def self.repoName(repoPath) repoName = repoPath.split("/").last return repoName end
repoProtocol(repoPath)
click to toggle source
# File lib/gitcopy.rb, line 40 def self.repoProtocol(repoPath) repoProtocol = repoPath[0...4] return repoProtocol end