Sha256: 367edaa923f815d6a392c1ef5378077a7a53ab589fbada9106f86d4a1b7dbc63
Contents?: true
Size: 338 Bytes
Versions: 1
Compression:
Stored size: 338 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' : ''}` end def self.is_dev dev_vals = %w(development test) dev_vals.include?(ENV["RAILS_ENV"]) || dev_vals.include?(ENV["RACK_ENV"]) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
envkey-1.0.0 | lib/envkey/fetch.rb |