migrate repost +debug

This commit is contained in:
Timothy N. Tsvetkov 2011-04-27 18:38:59 +04:00
parent 4134a16737
commit de735f9637
1 changed files with 4 additions and 0 deletions

View File

@ -2,8 +2,12 @@ namespace :repositories do
desc "Migrate repositories from fs"
task :migrate => :environment do
puts "Hello, doing haha"
repos_dirs = Dir["/root/mandriva_main_git/*.git"]
puts repos_dirs.inspect
cooker = Platform.find_by_name!("cooker")
main = cooker.repositories.find_by_name!("main")