Class: Jekyll::MakeArchive
- Inherits:
-
Generator
- Object
- Generator
- Jekyll::MakeArchive
- Defined in:
- lib/jekyll_make_archive.rb
Overview
Makes tar or zip file based on _config.yml entry
Instance Method Summary collapse
-
#generate(site) ⇒ void
Method prescribed by the Jekyll plugin lifecycle.
Instance Method Details
#generate(site) ⇒ void
This method returns an undefined value.
Method prescribed by the Jekyll plugin lifecycle.
21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/jekyll_make_archive.rb', line 21 def generate(site)d @live_reload = site.config["livereload"] archive_config = site.config["make_archive"] return if archive_config.nil? archive_config.each do |config| setup_instance_variables config create_archive site.source site.keep_files << @archive_name end end |