1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-06-16 09:33:13 +02:00
blog/_src/_plugins/rsync_media_folder.rb

9 lines
334 B
Ruby
Raw Normal View History

# http://rentzsch.tumblr.com/post/58936832594/speed-up-jekyll-using-one-weird-trick
module Jekyll
class RsyncMediaFolder < Generator
def generate(site)
system('mkdir -p _site'); # We may be called before _site exists.
system('rsync --archive _src/_media/ _site/media/');
end
end
end