2012-05-16 14:01:25 +01:00
|
|
|
namespace :downloads do
|
|
|
|
|
|
|
|
desc "Migrate from mount to symlinks"
|
2014-01-21 04:51:49 +00:00
|
|
|
task migrate: :environment do
|
2012-05-16 14:01:25 +01:00
|
|
|
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
|