Sha256: 3b7e8be67028397550a96ff9e0b8a16d0a55038b4cbed360911bea28ccb4a6b3
Contents?: true
Size: 345 Bytes
Versions: 25
Compression:
Stored size: 345 Bytes
Contents
class Dir def git_repos(subdir = '*') Dir.glob(File.join(path, subdir, '*', '.git')).map { |path_to_git_dir| path_to_git_repo = File.dirname(path_to_git_dir) # without "/.git" repo_name = path_to_git_repo[%r{[^\/]+\/[^\/]+\z}] # e.g. "pvdb/git-multi" def repo_name.full_name() self; end repo_name } end end
Version data entries
25 entries across 25 versions & 1 rubygems