Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
7 lines (6 sloc) 246 Bytes
task :publish do
server = 'ack'
remote_directory = '/var/www/ruby-encoding/public'
sh "ssh #{server} mkdir -p #{remote_directory}"
sh "rsync -av #{File.expand_path('../', __FILE__)}/public/ #{server}:#{remote_directory}/"
end