Sha256: a32e8f64a2518c113b1b89d69b6e047f39ba3262dcfe7804ab2b4a338f05e2df
Contents?: true
Size: 447 Bytes
Versions: 10
Compression:
Stored size: 447 Bytes
Contents
module Lolcommits class VCSInfo def self.repo_root?(path = '.') GitInfo.repo_root?(path) || MercurialInfo.repo_root?(path) end def self.local_name(path = '.') if GitInfo.repo_root?(path) GitInfo.local_name(path) elsif MercurialInfo.repo_root?(path) MercurialInfo.local_name(path) else raise "'#{File.expand_path(path)}' is not the root of a supported VCS" end end end end
Version data entries
10 entries across 10 versions & 1 rubygems