Sha256: b29997bf99ddcdb685eedbe3d1c85c185424bbf2f9cbdf52e0507ed2514b4052

Contents?: true

Size: 592 Bytes

Versions: 2

Compression:

Stored size: 592 Bytes

Contents

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

require 'conjur/api/hosts'
require 'conjur/api/secrets'
require 'conjur/api/users'
require 'conjur/api/groups'
require 'conjur/api/variables'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
conjur-api-2.1.2 lib/conjur/core-api.rb
conjur-api-2.1.1 lib/conjur/core-api.rb