Class: Arver::DumpKeyAction

Inherits:
Action
  • Object
show all
Defined in:
lib/arver/dump_key_action.rb

Instance Attribute Summary

Attributes inherited from Action

#generator, #key, #keystore, #slot_of_target_user, #target_list, #target_user

Instance Method Summary collapse

Methods inherited from Action

#load_key, #needs_target_user?, #new_key_generator, #on_user, #open_keystore, #post_action, #pre_action, #run_on, #verify_key_on_target

Constructor Details

#initialize(target_list) ⇒ DumpKeyAction

Returns a new instance of DumpKeyAction.



3
4
5
6
# File 'lib/arver/dump_key_action.rb', line 3

def initialize(target_list)
  super(target_list)
  self.open_keystore
end

Instance Method Details

#execute_partition(partition) ⇒ Object



12
13
14
15
# File 'lib/arver/dump_key_action.rb', line 12

def execute_partition( partition )
  Arver::Log.info("key for #{partition.path}:")
  Arver::Log.info(key)
end

#post_host(host) ⇒ Object



26
27
# File 'lib/arver/dump_key_action.rb', line 26

def post_host( host )
end

#post_partition(partition) ⇒ Object



23
24
# File 'lib/arver/dump_key_action.rb', line 23

def post_partition( partition )
end

#pre_host(host) ⇒ Object



17
18
# File 'lib/arver/dump_key_action.rb', line 17

def pre_host( host )
end

#pre_partition(partition) ⇒ Object



20
21
# File 'lib/arver/dump_key_action.rb', line 20

def pre_partition( partition )
end

#verify?(partition) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/arver/dump_key_action.rb', line 8

def verify?(partition)
  load_key(partition)
end