Sha256: 8cd7c79423b346efe4330bc277693ac101052bab5bce70dd81f0a32895bfcf0a

Contents?: true

Size: 1.08 KB

Versions: 5

Compression:

Stored size: 1.08 KB

Contents

require 'mercenary'

module Octopress
  require 'octopress/ext/hash'
  require 'octopress/ext/titlecase'
  require 'octopress/configuration'
  require 'octopress/command'
  require 'octopress/version'
  require 'octopress/commands/new'
  require 'octopress/commands/init'
  require 'octopress/commands/publish'
  require 'octopress/commands/build'
  require 'octopress/commands/serve'
  require 'octopress/commands/doctor'

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

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

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

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

  def self.gem_dir(dir='')
    File.expand_path(File.join(File.dirname(__FILE__), '../', dir))
  end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
octopress-3.0.0.rc.10 lib/octopress.rb
octopress-3.0.0.rc.9 lib/octopress.rb
octopress-3.0.0.rc.8 lib/octopress.rb
octopress-3.0.0.rc.7 lib/octopress.rb
octopress-3.0.0.rc.6 lib/octopress.rb