Conditions | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | # frozen_string_literal: true |
||
29 | def apply(resource_factory) |
||
30 | path = "#{ssh_directory(@account.id)}/#{@private_key.id}" |
||
31 | options = @remote.options.merge('IdentityFile' => path) |
||
32 | account = @account |
||
33 | key = @private_key |
||
34 | remote = @remote |
||
35 | name = "#{account.id}:#{key.owner}:#{key.id}:#{remote.id}" |
||
36 | resource_factory.ssh_config name do |
||
37 | user account.id.to_s |
||
38 | host remote.id.to_s |
||
39 | options options |
||
40 | end |
||
41 | end |
||
42 | end |
||
50 |