Sha256: e61c1534b14e7a4d66359b1cb502f8daef49d8e1937e232ffc0b14c7f5f63c06
Contents?: true
Size: 530 Bytes
Versions: 4
Compression:
Stored size: 530 Bytes
Contents
require "nenv" require "dotenv" # Default to `pwd`/.env-* ( whatever is in the current directory ) # Otherwise take the `.env-*` from the gem itself. unless env = Nenv("celluloid").config_file env = Nenv.ci? ? ".env-ci" : ".env-dev" unless File.exist?(env) env = File.expand_path("../../../#{env}", __FILE__) end end Dotenv.load!(env) rescue nil # If for some reason no .env-* files are available at all, use defaults. module Specs class << self def env @env ||= Nenv("celluloid_specs") end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
celluloid-0.17.4 | spec/support/env.rb |
celluloid-0.18.0.pre | spec/support/env.rb |
celluloid-0.17.3 | spec/support/env.rb |
celluloid-0.17.2 | spec/support/env.rb |