Class: KeysFinder

Inherits:
Object
  • Object
show all
Defined in:
app/finders/keys_finder.rb

Constant Summary collapse

InvalidFingerprint =
Class.new(StandardError)
GitLabAccessDeniedError =
Class.new(StandardError)
FINGERPRINT_ATTRIBUTES =
{
  'sha256' => 'fingerprint_sha256',
  'md5' => 'fingerprint'
}.freeze

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ KeysFinder

Returns a new instance of KeysFinder.


13
14
15
# File 'app/finders/keys_finder.rb', line 13

def initialize(params)
  @params = params
end

Instance Method Details

#executeObject


17
18
19
20
21
22
23
# File 'app/finders/keys_finder.rb', line 17

def execute
  keys = by_key_type
  keys = by_users(keys)
  keys = sort(keys)

  by_fingerprint(keys)
end