Added Octopress.env

This commit is contained in:
Parker Moore 2013-01-20 23:43:22 -05:00
parent 33885dd791
commit fa2aa4913d

View File

@ -1,7 +1,12 @@
$:.unshift File.dirname(__FILE__) # For use/testing when no gem is installed
module Octopress
end
require "octopress/core_ext"
require "octopress/configuration"
module Octopress
# Static: Fetches the Octopress environment
def self.env
ENV["OCTOPRESS_ENV"] || Configuration.read_config("defaults/jekyll.yml")[:env]
end
end