Cleaned up rsync options for rake publish

This commit is contained in:
Ryan McGeary 2008-09-06 12:01:44 -04:00
parent e9929c1bc5
commit 4edc9c2322

View file

@ -1,13 +1,13 @@
SETTINGS = {
'rsync_server' => ENV['rsync_server'] || 'timeago@yarp.com:/var/www/timeago/',
'rsync_options' => ENV['rsync_options'] || '-e ssh -avz --delete --exclude=.git'
:rsync_server => 'timeago.yarp.com:/var/www/timeago/',
:rsync_options => '-e ssh -avz --delete --exclude=.git'
}
task :default => :test
desc 'Publish to server (edit Rakefile to config)'
task :publish do
cmd = "rsync #{SETTINGS['rsync_options']} ./ #{SETTINGS['rsync_server']}"
cmd = "rsync #{SETTINGS[:rsync_options]} ./ #{SETTINGS[:rsync_server]}"
puts "\nSyncing with server: #{cmd}\n\n"
system(cmd)
end