Class: DumpCleaner::Cleaners::MysqlShellDumpCleaner
Instance Attribute Summary
Attributes inherited from BaseCleaner
#config, #options
Instance Method Summary
collapse
#destination_file_for
Methods inherited from BaseCleaner
#initialize, #keep_same_record?
Instance Method Details
#clean ⇒ Object
15
16
17
18
19
20
21
22
23
|
# File 'lib/dump_cleaner/cleaners/mysql_shell_dump_cleaner.rb', line 15
def clean
config.cleanup_tables.each do |db, table|
table_cleaner = MysqlShellTableCleaner.new(db:, table:, config:, options:)
table_cleaner.pre_cleanup
table_cleaner.clean
table_cleaner.post_cleanup
end
end
|
#post_cleanup ⇒ Object
25
26
27
|
# File 'lib/dump_cleaner/cleaners/mysql_shell_dump_cleaner.rb', line 25
def post_cleanup
copy_remaining_files
end
|
#pre_cleanup ⇒ Object
10
11
12
13
|
# File 'lib/dump_cleaner/cleaners/mysql_shell_dump_cleaner.rb', line 10
def pre_cleanup
validate_source_dump
prepare_destination_dump
end
|