Sha256: 18879a6f7740b3b33e7249ddda04055ac831d5173e2730341736e8b9802196ba

Contents?: true

Size: 453 Bytes

Versions: 8

Compression:

Stored size: 453 Bytes

Contents

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
stastic-0.2.7 lib/stastic/generators/default.rb
stastic-0.2.6 lib/stastic/generators/default.rb
stastic-0.2.5 lib/stastic/generators/default.rb
stastic-0.2.4 lib/stastic/generators/default.rb
stastic-0.2.3 lib/stastic/generators/default.rb
stastic-0.2.2 lib/stastic/generators/default.rb
stastic-0.2.1 lib/stastic/generators/default.rb
stastic-0.2.0 lib/stastic/generators/default.rb