Method: Arver::CloseAction#execute_partition

Defined in:
lib/arver/close_action.rb

#execute_partition(partition) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/arver/close_action.rb', line 12

def execute_partition( partition )
  Arver::Log.info( "closing: "+partition.path )
  caller = Arver::LuksWrapper.close( partition )
  unless( caller.execute )
    Arver::Log.error( "Aborting: Something went wrong when closing "+partition.name+":\n"+caller.output )
    throw( :abort_action )
  end
end