Sha256: 890055a4a25c9f35de11ebb7d9a7b73cb892dc8b26e224bf921b0be9574e342d

Contents?: true

Size: 617 Bytes

Versions: 1

Compression:

Stored size: 617 Bytes

Contents

require 'jekyll'
require File.expand_path('helpers', File.dirname(__FILE__))

module Octopress
  class Build < Command
    def self.init_with_program(p)
      p.command(:build) do |c|
        c.syntax 'octopress build [options]'
        c.description 'Build your site'
        CommandHelpers.add_build_options(c)
        
        c.action do |args, options|
          Octopress.config(options)
          options = CommandHelpers.normalize_options(options)
          options = ::Jekyll.configuration(options.to_symbol_keys)
          ::Jekyll::Commands::Build.process(options)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
octopress-3.0.0.alpha8 lib/octopress/commands/build.rb