Sha256: 105519ff99e5cbf33013fe53b65cd87eda075ed5f542e0620691ba2bde8a8149

Contents?: true

Size: 391 Bytes

Versions: 4

Compression:

Stored size: 391 Bytes

Contents

require "nenv"
require "dotenv"
Dotenv.load!(Nenv("celluloid").config_file || (Nenv.ci? ? ".env-ci" : ".env-dev"))

module Specs
  def self.env
    @env ||= Nenv("celluloid_specs")
  end

  def self.configure(config)
    if Specs.split_logs?
      config.log_split_dir = File.expand_path("../../log/#{DateTime.now.iso8601}", __FILE__)
      config.log_split_module = Specs
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
celluloid-0.17.1.2 spec/support/env.rb
celluloid-0.17.1.1 spec/support/env.rb
celluloid-0.17.1 spec/support/env.rb
celluloid-0.17.0 spec/support/env.rb