Permalink
Fetching contributors…
Cannot retrieve contributors at this time
|
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 |
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.