[meta] Add a task for updating dlanham wallpapers to the Rakefile

pull/28/head
Alpha Chen 10 years ago
parent 2c12f1c1f3
commit 08528c8025

@ -1,9 +1,20 @@
# rsync -avz --exclude 'Newest Additions' --exclude '*.DS_Store' . ~/Dropbox/wallpapers/dlanham\ wallpapers # rsync -avz --exclude 'Newest Additions' --exclude '*.DS_Store' . ~/Dropbox/wallpapers/dlanham\ wallpapers
namespace :clean do namespace :clean do
desc 'Remove .DS_Store files from Dropbox'
task :ds_store do task :ds_store do
sh 'find ~/Dropbox -name .DS_Store -print0 | xargs -0 rm' sh 'find ~/Dropbox -name .DS_Store -print0 | xargs -0 rm -v'
end end
task all: %i[ ds_store ] task all: %i[ ds_store ]
end end
namespace :sync do
desc 'Sync David Lanham wallpapers (assumes the unzipped updates are in ~/Downloads)'
task :dlanham do
FileList[File.expand_path('~/Downloads/dlanham*')].each do |dir|
Dir.chdir dir
sh 'rsync -avz --exclude "Newest Additions" --exclude "*.DS_Store" . ~/Dropbox/wallpapers/dlanham\ wallpapers'
end
end
end

Loading…
Cancel
Save