Sha256: d6a172357dcf94c9ff6e60121248f3282a0740ad02a2ef0351ea9480837017ea
Contents?: true
Size: 854 Bytes
Versions: 1
Compression:
Stored size: 854 Bytes
Contents
module Octopress module Commands class BuildJekyll < Command class << self def process(args, options) Octopress.configurator.write_configs_for_generation puts "## Generating Site with Jekyll - ENV: #{Octopress.env}" system "jekyll build #{jekyll_flags}" puts unpublished unless unpublished.empty? Octopress.configurator.remove_configs_for_generation end def unpublished posts = Dir.glob("#{Octopress.configuration[:source]}/#{Octopress.configuration[:posts_dir]}/*.*") options = {env: Octopress.env, message: "\nThese posts were not generated:"} @unpublished ||= get_unpublished(posts, options) end def jekyll_flags Octopress.env.production? ? "" : "--drafts --trace" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
octopress-3.0.0.alpha1 | lib/octopress/commands/build_jekyll.rb |