Module: Circus::Repos
- Defined in:
- lib/circus/repos.rb,
lib/circus/repos/git.rb,
lib/circus/repos/mercurial.rb
Defined Under Namespace
Constant Summary collapse
- REPOS =
[]
Class Method Summary collapse
Class Method Details
.find_repo_by_id(type_name) ⇒ Object
9 10 11 |
# File 'lib/circus/repos.rb', line 9 def self.find_repo_by_id(type_name) REPOS.find { |r| r.accepts_id? type_name } end |
.find_repo_from_dir(dir_name) ⇒ Object
5 6 7 |
# File 'lib/circus/repos.rb', line 5 def self.find_repo_from_dir(dir_name) REPOS.find { |r| r.accepts_dir? dir_name } end |