Module: Stastic::Generator::Jekyll
Instance Method Summary collapse
- #build ⇒ Object
- #desc ⇒ Object
- #detect ⇒ Object
- #package ⇒ Object
- #preview ⇒ Object
- #site_root ⇒ Object
Instance Method Details
#build ⇒ Object
18 19 20 21 |
# File 'lib/stastic/generators/jekyll.rb', line 18 def build verify_gem system("jekyll") end |
#desc ⇒ Object
5 6 7 |
# File 'lib/stastic/generators/jekyll.rb', line 5 def desc "Jekyll Generator" end |
#detect ⇒ Object
9 10 11 12 |
# File 'lib/stastic/generators/jekyll.rb', line 9 def detect FileTest.exists?('_config.yml') || (FileTest.exists?('_site') && File.directory?('_site')) end |
#package ⇒ Object
23 24 25 |
# File 'lib/stastic/generators/jekyll.rb', line 23 def package Stastic::Generator.package(site_root) end |
#preview ⇒ Object
27 28 29 30 |
# File 'lib/stastic/generators/jekyll.rb', line 27 def preview verify_gem system("jekyll --server") end |