require 'server' module Stastic::Generator module Default extend self def desc "Default Generator" end def detect true end def site_root Stastic::Config.site_root || Dir.pwd end def build; end def package Stastic::Generator.package(site_root) end def preview FileUtils.mkdir_p(site_root) server = ::Server.new(site_root, 3000) server.start end end end