Sha256: 39dcf3710af8c9aaf370e7ec2643af8ade2926bf70fa40c387953c8ddeff7319
Contents?: true
Size: 414 Bytes
Versions: 2
Compression:
Stored size: 414 Bytes
Contents
module Conjur extend self def service_base_port (ENV['CONJUR_SERVICE_BASE_PORT'] || 5000 ).to_i end def account ENV['CONJUR_ACCOUNT'] or raise "No CONJUR_ACCOUNT defined" end def env ENV['CONJUR_ENV'] || ENV['RAILS_ENV'] || ENV['RACK_ENV'] || "development" end def stack ENV['CONJUR_STACK'] || case env when "production" "v2" else env end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
conjur-api-2.0.1 | lib/conjur/env.rb |
conjur-api-2.0.0 | lib/conjur/env.rb |