Sha256: 25338b8081b86fb51b5ad0ba5c205d494af0f8dbb096238701159e6bfe8da5a3
Contents?: true
Size: 383 Bytes
Versions: 1
Compression:
Stored size: 383 Bytes
Contents
module Middleman module Dotenv class Extension < ::Middleman::Extension option :env, '.env', 'environment file name' def initialize(app, options_hash = {}, &block) super env = options.env ::Dotenv.load File.join(app.root, env) app.before do ::Dotenv.load File.join(self.root, env) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
middleman-dotenv-2.0.0 | lib/middleman-dotenv/extension.rb |