Sha256: 9201353761889958b68eb4d11c0462dba4a998aa8017b1f015ef3a07d94fc248
Contents?: true
Size: 482 Bytes
Versions: 1
Compression:
Stored size: 482 Bytes
Contents
require 'envkey/platform' module Envkey::Fetch def self.fetch_env key fetch_env_path = Envkey::Platform.fetch_env_path `#{fetch_env_path} #{key}#{is_dev ? ' --cache' : ''} --client-name envkey-ruby --client-version #{Envkey::VERSION}` end def self.is_dev dev_vals = %w(development test) dev_vals.include?(ENV["RAILS_ENV"]) || dev_vals.include?(ENV["RACK_ENV"]) || (ENV["RAILS_ENV"].nil? && ENV["RACK_ENV"].nil? && File.exist?(".env")) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
envkey-1.1.0 | lib/envkey/fetch.rb |