Module: Stastic::Generator::Staticmatic
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/staticmatic.rb', line 18 def build verify_gem system("staticmatic build .") end |
#desc ⇒ Object
5 6 7 |
# File 'lib/stastic/generators/staticmatic.rb', line 5 def desc "Staticmatic Generator" end |
#detect ⇒ Object
9 10 11 12 |
# File 'lib/stastic/generators/staticmatic.rb', line 9 def detect FileTest.exists?('config/site.rb') && FileTest.exists?("src/pages") && File.directory?("src/pages") end |
#package ⇒ Object
23 24 25 |
# File 'lib/stastic/generators/staticmatic.rb', line 23 def package Stastic::Generator.package(site_root) end |
#preview ⇒ Object
27 28 29 30 |
# File 'lib/stastic/generators/staticmatic.rb', line 27 def preview verify_gem system("staticmatic preview .") end |