Class: Conjur::Host
Instance Method Summary
collapse
#delete, #resource, #resource_id, #resource_kind
Methods included from ActsAsUser
included
#attributes, #attributes=, #refresh, #save, #to_json
#identifier, included
Methods included from HasId
#id, #to_json
Methods included from Exists
#exists?
Instance Method Details
#api_key ⇒ Object
14
15
16
|
# File 'lib/conjur/host.rb', line 14
def api_key
self.attributes['api_key']
end
|
#enrollment_url ⇒ Object
18
19
20
21
22
23
|
# File 'lib/conjur/host.rb', line 18
def enrollment_url
log do |logger|
logger << "Fetching enrollment_url for #{id}"
end
self['enrollment_url'].head{|response, request, result| response }.[:location]
end
|
#login ⇒ Object
10
11
12
|
# File 'lib/conjur/host.rb', line 10
def login
[ 'host', id ].join('/')
end
|