mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-16 06:05:00 -05:00
15 lines
467 B
Ruby
15 lines
467 B
Ruby
$:.unshift File.expand_path(File.dirname(__FILE__)) # For use/testing when no gem is installed
|
|
|
|
require "octopress/core_ext"
|
|
require "octopress/configuration"
|
|
require "octopress/js_asset_manager"
|
|
|
|
module Octopress
|
|
|
|
# Static: Fetches the Octopress environment
|
|
def self.env
|
|
configurator = Octopress::Configuration.new
|
|
ENV["OCTOPRESS_ENV"] || configurator.read_config("defaults/jekyll.yml").deep_merge(configurator.read_config("site.yml"))[:env]
|
|
end
|
|
end
|