lib/gitolite-dtg/config.rb in gitolite-dtg-0.1.0 vs lib/gitolite-dtg/config.rb in gitolite-dtg-0.2.0
- old
+ new
@@ -35,9 +35,13 @@
def get_repo(repo)
name = normalize_repo_name(repo)
@repos[name]
end
+
+ def get_repos(pattern)
+ repos.keys.select {|k| k.include? pattern}
+ end
def add_group(group, overwrite = false)
raise ArgumentError, "Group must be of type Gitolite::Config::Group!" unless group.instance_of? Gitolite::Config::Group
@groups[group.name] = group
end