2012-05-16 14:01:25 +01:00
|
|
|
namespace :downloads do
|
|
|
|
|
|
|
|
desc "Migrate from mount to symlinks"
|
|
|
|
task :migrate => :environment do
|
|
|
|
Platform.opened.each do |pl|
|
2012-05-17 07:48:42 +01:00
|
|
|
system("sudo mv #{pl.symlink_path}/*.lst #{pl.path}")
|
2012-05-16 14:01:25 +01:00
|
|
|
system("sudo umount #{pl.symlink_path}")
|
|
|
|
system("sudo rm -Rf #{pl.symlink_path}")
|
|
|
|
|
|
|
|
pl.symlink_directory
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|