I started thinking that it would be a good thing to add a sync:uploads is this is the plans for this module? A simple downloads uploads, uploads would do but I guess there should be a rename locally so to put the new uploads into the correct place?
maybe something like this:
desc "Sync remote uploads directory"
task :uploads do
timestamp = Time.now.tof
system "mv tmp/uploads tmp/uploads#{timestamp}"
download("#{current_path}/tmp/uploads", "tmp/uploads", :via => :scp, :recursive => true)
end
I started thinking that it would be a good thing to add a sync:uploads is this is the plans for this module? A simple downloads uploads, uploads would do but I guess there should be a rename locally so to put the new uploads into the correct place?
maybe something like this:
desc "Sync remote uploads directory" task :uploads do timestamp = Time.now.tof system "mv tmp/uploads tmp/uploads#{timestamp}" download("#{current_path}/tmp/uploads", "tmp/uploads", :via => :scp, :recursive => true) end