Sha256: 9dfe91f89588f3fc426d1347d1b3b43ab03ae8d63a20bece43327ebcb3ed95e4

Contents?: true

Size: 310 Bytes

Versions: 4

Compression:

Stored size: 310 Bytes

Contents

require 'dotenv/environment'

module Dotenv
  def self.load(*filenames)
    filenames << '.env' if filenames.empty?
    filenames.inject({}) do |hash, filename|
      hash.merge Dotenv::Environment.new(filename).apply
    end
  end
end

require 'dotenv/railtie' if defined?(Rails) and defined?(Rails::Railtie)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dotenv-0.5.0 lib/dotenv.rb
dotenv-0.4.0 lib/dotenv.rb
dotenv-0.3.0 lib/dotenv.rb
dotenv-0.2.0 lib/dotenv.rb