mirror of
https://github.com/scratchfoundation/jquery-timeago.git
synced 2024-11-23 15:57:54 -05:00
Cleaned up rsync options for rake publish
This commit is contained in:
parent
e9929c1bc5
commit
4edc9c2322
1 changed files with 3 additions and 3 deletions
6
Rakefile
6
Rakefile
|
@ -1,13 +1,13 @@
|
||||||
SETTINGS = {
|
SETTINGS = {
|
||||||
'rsync_server' => ENV['rsync_server'] || 'timeago@yarp.com:/var/www/timeago/',
|
:rsync_server => 'timeago.yarp.com:/var/www/timeago/',
|
||||||
'rsync_options' => ENV['rsync_options'] || '-e ssh -avz --delete --exclude=.git'
|
:rsync_options => '-e ssh -avz --delete --exclude=.git'
|
||||||
}
|
}
|
||||||
|
|
||||||
task :default => :test
|
task :default => :test
|
||||||
|
|
||||||
desc 'Publish to server (edit Rakefile to config)'
|
desc 'Publish to server (edit Rakefile to config)'
|
||||||
task :publish do
|
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"
|
puts "\nSyncing with server: #{cmd}\n\n"
|
||||||
system(cmd)
|
system(cmd)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue