Sha256: fe80c0fdb1530b7ac863c9331891de0b336bdb354da9ab462dd24f44d3929893

Contents?: true

Size: 904 Bytes

Versions: 1

Compression:

Stored size: 904 Bytes

Contents

require 'mercenary'

module Octopress
  require 'octopress/core_ext'
  require 'octopress/configuration'
  require 'octopress/command'
  require 'octopress/version'
  require 'octopress/commands/new'
  require 'octopress/commands/publish'
  require 'octopress/commands/build'
  require 'octopress/commands/serve'
  require 'octopress/commands/doctor'
  require 'octopress/commands/docs'

  autoload :Page, 'octopress/page'
  autoload :Post, 'octopress/post'
  autoload :Draft, 'octopress/draft'

  BLESSED_GEMS = %w[
    octopress-deploy
    octopress-ink
  ]

  def self.logger
    @logger ||= Mercenary::Command.logger
    @logger.level = Logger::DEBUG
    @logger
  end

  def self.config(options={})
    @config ||= Configuration.config(options)
  end

  def self.require_blessed_gems
    BLESSED_GEMS.each do |gem|
      begin
        require gem
      rescue LoadError
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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