Permalink
Browse files

Ginatra::MultiRepoList now conforms to the new API of Ginatra::RepoList

  • Loading branch information...
1 parent 50fd26a commit 2aee4c81deb4b1dad3c29398d9e9da53f6f42750 @lenary lenary committed Jul 26, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/ginatra/repo_list.rb
@@ -49,12 +49,12 @@ def self.method_missing(sym, *args, &block)
end
class MultiRepoList < RepoList
- def self.list
+ def refresh
Ginatra::Config.git_dirs.map! do |git_dir|
files = Dir.glob(git_dir)
files.delete_if { |e| Ginatra::Config.ignored_files.include?(e) }
- files.map! { |e| File.expand_path(e) }
- end.flatten.map! { |e| Repo.new(e) }
+ files.each { |e| add(e) }
+ end
end
end
end

0 comments on commit 2aee4c8

Please sign in to comment.