Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 222 Bytes
dir = ENV['RBX']
task :sync do
if !dir or !File.directory?(dir)
puts "Please set the RBX variable"
fail
end
Dir.mkdir "public" unless File.directory? "public"
sh "rsync -r #{dir}/web/_site/ public/"
end