Class: Conjur::Core::API
- Inherits:
-
API
- Object
- API
- Conjur::Core::API
- Defined in:
- lib/conjur/core-api.rb
Class Method Summary collapse
Class Method Details
.conjur_account ⇒ Object
5 6 7 |
# File 'lib/conjur/core-api.rb', line 5 def conjur_account info['account'] or raise "No account field in #{info.inspect}" end |
.default_host ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/conjur/core-api.rb', line 17 def default_host case Conjur.env when 'test', 'development' "http://localhost:#{Conjur.service_base_port + 200}" else "https://core-#{Conjur.account}-conjur.herokuapp.com" end end |
.host ⇒ Object
13 14 15 |
# File 'lib/conjur/core-api.rb', line 13 def host ENV['CONJUR_CORE_URL'] || default_host end |