14 lines
274 B
Ruby
14 lines
274 B
Ruby
|
namespace :downloads do
|
||
|
|
||
|
desc "Migrate from mount to symlinks"
|
||
|
task :migrate => :environment do
|
||
|
Platform.opened.each do |pl|
|
||
|
system("sudo umount #{pl.symlink_path}")
|
||
|
system("sudo rm -Rf #{pl.symlink_path}")
|
||
|
|
||
|
pl.symlink_directory
|
||
|
end
|
||
|
end
|
||
|
|
||
|
end
|