Sha256: 316bd536adba8b3976e726fb389d204af138c30051c770652f901a99e1793dd6
Contents?: true
Size: 429 Bytes
Versions: 1
Compression:
Stored size: 429 Bytes
Contents
require 'conjur/role' module Conjur class API def create_role(role, options = {}) log do |logger| logger << "Creating role #{account}/#{role}" end RestClient::Resource.new(Conjur::Authz::API.host, credentials)["roles/#{path_escape role}"].put(options) role(role) end def role role Role.new(Conjur::Authz::API.host, credentials)["roles/#{path_escape role}"] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
conjur-api-2.0.1 | lib/conjur/api/roles.rb |