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'