Class: OracleToMysql::Command::DeleteTempFiles
- Inherits:
-
OracleToMysql::Command
- Object
- OracleToMysql::Command
- OracleToMysql::Command::DeleteTempFiles
- Defined in:
- lib/oracle_to_mysql/command/delete_temp_files.rb
Instance Attribute Summary
Attributes inherited from OracleToMysql::Command
Instance Method Summary collapse
Methods inherited from OracleToMysql::Command
#error, #execute, #finished, #info, #output, #started, #temp_file_symbols, #warn
Instance Method Details
#execute_internal ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/oracle_to_mysql/command/delete_temp_files.rb', line 4 def execute_internal self.client_class.otm_all_temp_files.each do |temp_file| begin self.info("Deleting temp file, #{temp_file}") File.unlink(temp_file) rescue Errno::ENOENT => e self.warn("Could not remove temp file #{temp_file}") end end end |