Sha256: f7b477e154b0e9313ac39882847e4835710e0231ef5846ce22fdc83dceccdb74

Contents?: true

Size: 472 Bytes

Versions: 2

Compression:

Stored size: 472 Bytes

Contents

module Conjur
  module DAS
    class API < Conjur::API
      class << self
        def host
          ENV['CONJUR_DAS_URL'] || default_host
        end
        
        def default_host
          case Conjur.env
          when 'test', 'development'
            "http://localhost:#{Conjur.service_base_port + 200}"
          else
            "https://das-#{Conjur.stack}-conjur.herokuapp.com"
          end
        end
      end
    end
  end
end

require 'conjur/api/das'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
conjur-api-2.0.1 lib/conjur/das-api.rb
conjur-api-2.0.0 lib/conjur/das-api.rb