Conditions | 1 |
Total Lines | 12 |
Lines | 12 |
Ratio | 100 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | # frozen_string_literal: true |
||
22 | def apply(resource_factory) |
||
23 | account = @account |
||
24 | key = @key |
||
25 | id = "#{account.id}:#{key.owner}:#{key.id}" |
||
26 | resource_factory.ssh_authorize_key id do |
||
27 | user account.id.to_s |
||
28 | key key.content |
||
29 | keytype key.type.to_s |
||
30 | comment "#{key.owner}:#{key.id}" |
||
31 | validate_key key.validate |
||
32 | end |
||
33 | end |
||
34 | end |
||
41 |