Sha256: 824df9c1a68cc3e4784de5e6a1211a381103bff8c4f339568b44a54dbcab2892

Contents?: true

Size: 414 Bytes

Versions: 15

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"
      "v3"
    else
      env
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
conjur-api-2.7.1 lib/conjur/env.rb
conjur-api-2.5.1 lib/conjur/env.rb
conjur-api-2.4.0 lib/conjur/env.rb
conjur-api-2.3.1 lib/conjur/env.rb
conjur-api-2.2.3 lib/conjur/env.rb
conjur-api-2.2.2 lib/conjur/env.rb
conjur-api-2.2.1 lib/conjur/env.rb
conjur-api-2.1.8 lib/conjur/env.rb
conjur-api-2.1.7 lib/conjur/env.rb
conjur-api-2.1.6 lib/conjur/env.rb
conjur-api-2.1.5 lib/conjur/env.rb
conjur-api-2.1.4 lib/conjur/env.rb
conjur-api-2.1.3 lib/conjur/env.rb
conjur-api-2.1.2 lib/conjur/env.rb
conjur-api-2.1.1 lib/conjur/env.rb