2013-02-10 03:47:53 -05:00
|
|
|
$:.unshift File.expand_path(File.dirname(__FILE__)) # For use/testing when no gem is installed
|
2013-01-18 19:49:31 -05:00
|
|
|
|
|
|
|
require "octopress/core_ext"
|
|
|
|
require "octopress/configuration"
|
2013-02-10 03:47:53 -05:00
|
|
|
require "octopress/js_asset_manager"
|
2013-01-20 23:43:22 -05:00
|
|
|
|
|
|
|
module Octopress
|
|
|
|
|
|
|
|
# Static: Fetches the Octopress environment
|
|
|
|
def self.env
|
2013-02-10 03:47:53 -05:00
|
|
|
configurator = Octopress::Configuration.new
|
2013-03-18 03:00:30 -04:00
|
|
|
ENV["OCTOPRESS_ENV"] || configurator.read_config("defaults/jekyll.yml").deep_merge(configurator.read_config("site.yml"))[:env]
|
2013-01-20 23:43:22 -05:00
|
|
|
end
|
|
|
|
end
|