Class: Me::SshActivation

Inherits:
Activation show all
Defined in:
lib/me/ssh_activation.rb

Instance Method Summary collapse

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

#callObject



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