Class: Me::SshActivation
- Inherits:
-
Activation
- Object
- Activation
- Me::SshActivation
- Defined in:
- lib/me/ssh_activation.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(keys) ⇒ SshActivation
constructor
A new instance of SshActivation.
Methods inherited from Activation
#==, #_with_commands, #build_view
Constructor Details
#initialize(keys) ⇒ SshActivation
Returns a new instance of SshActivation.
6 7 8 |
# File 'lib/me/ssh_activation.rb', line 6 def initialize(keys) @keys = keys end |
Instance Method Details
#call ⇒ Object
10 11 12 13 14 |
# File 'lib/me/ssh_activation.rb', line 10 def call clear_ssh_keys keys.each(&method(:add_ssh_key)) execute end |