# File lib/rhc/rest/user.rb, line 8 def add_key(name, content, type) debug "Add key #{name} of type #{type} for user #{login}" rest_method "ADD_KEY", :name => name, :type => type, :content => content end
# File lib/rhc/rest/user.rb, line 23 def capabilities @capabilities ||= OpenStruct.new attribute('capabilities') end
Find Key by name
# File lib/rhc/rest/user.rb, line 19 def find_key(name) keys.detect { |key| key.name == name } end
# File lib/rhc/rest/user.rb, line 13 def keys debug "Getting all keys for user #{login}" rest_method "LIST_KEYS" end