Class: JekyllRecker::Generators::Graphs
- Inherits:
-
Jekyll::Generator
- Object
- Jekyll::Generator
- JekyllRecker::Generators::Graphs
- Includes:
- Logging
- Defined in:
- lib/jekyll_recker/generators.rb
Overview
Graphs Generator
Instance Attribute Summary collapse
-
#site ⇒ Object
readonly
Returns the value of attribute site.
Instance Method Summary collapse
Methods included from Logging
Instance Attribute Details
#site ⇒ Object (readonly)
Returns the value of attribute site.
51 52 53 |
# File 'lib/jekyll_recker/generators.rb', line 51 def site @site end |
Instance Method Details
#generate(site) ⇒ Object
53 54 55 56 57 58 59 60 61 |
# File 'lib/jekyll_recker/generators.rb', line 53 def generate(site) @site = Site.new(site) if @site.production? && @site.recker_config.fetch('production_skip_graphs', true) info 'skipping graphs (production)' else info 'generating graphs' JekyllRecker::Graphs.generate_graphs(@site) end end |