Sha256: a63b699c4407ac24bc4b6a8edc55d9c9e9e51320568a51a556edf132e9a4ddd7
Contents?: true
Size: 401 Bytes
Versions: 2
Compression:
Stored size: 401 Bytes
Contents
module Middleman module Dotenv class << self def registered(app, options_hash = {}) env = options_hash[:env] || '.env' require 'dotenv' unless defined?(::Dotenv) ::Dotenv.load File.join(Dir.pwd, env) app.before do ::Dotenv.load File.join(self.class.inst.root, env) end end alias_method :included, :registered end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
middleman-dotenv-1.1.1 | lib/middleman-dotenv/extension.rb |
middleman-dotenv-1.1.0 | lib/middleman-dotenv/extension.rb |