diff --git a/lib/tasks/migrate_repos_task.rake b/lib/tasks/migrate_repos_task.rake index 8dc40fe37..2e7b2c5fe 100644 --- a/lib/tasks/migrate_repos_task.rake +++ b/lib/tasks/migrate_repos_task.rake @@ -2,20 +2,16 @@ 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 + repo_dirs = Dir["/root/mandriva_main_git/*.git"] cooker = Platform.find_by_name!("cooker") main = cooker.repositories.find_by_name!("main") - repos_dirs.each do |repo_dir| + repo_dirs.each do |repo_dir| puts repo_dir - puts File.basename(repos_dir, ".git") - project_name = File.basename(repos_dir, ".git") + puts project_name + # main.projects.create(:name => project_name, :unixname => project_name) # Dir