@@ -32,7 +32,6 @@ def perform
32
32
33
33
Dir . glob ( "#{ destination_path_with_dash_id } /**/*" ) . select { |f | File . file? ( f ) }
34
34
rescue StandardError => e
35
- puts "Export failed: #{ e . message } "
36
35
raise
37
36
ensure
38
37
cleanup_temp_dir
@@ -59,13 +58,11 @@ def params
59
58
def save_exported_zip_file
60
59
logger . info ( "Saving zip file: #{ zip_file_name } " )
61
60
File . open ( zip_file_name , 'wb' ) { |fp | fp . write ( response . body ) }
62
- puts "Saved zip file: #{ zip_file_name } "
63
61
end
64
62
65
63
def unzip_files
66
64
logger . info ( "Unzipping file: #{ zip_file_name } " )
67
65
@extracted_files = unzip_file ( zip_file_name , tmp_uniq_dashboard_path )
68
- puts "Unzipped files: #{ @extracted_files . inspect } "
69
66
end
70
67
71
68
def download_folder
@@ -80,10 +77,8 @@ def clean_destination_directory
80
77
logger . info ( "Cleaning destination directory: #{ destination_path_with_dash_id } " )
81
78
if Dir . exist? ( destination_path_with_dash_id )
82
79
FileUtils . rm_rf ( Dir . glob ( "#{ destination_path_with_dash_id } /*" ) )
83
- puts "Deleted all existing files in #{ destination_path_with_dash_id } ."
84
80
else
85
81
FileUtils . mkdir_p ( destination_path_with_dash_id )
86
- puts "Created new destination directory: #{ destination_path_with_dash_id } "
87
82
end
88
83
end
89
84
@@ -101,7 +96,6 @@ def copy_export_files_to_destination_path
101
96
def cleanup_temp_dir
102
97
if Dir . exist? ( tmp_uniq_dashboard_path )
103
98
FileUtils . rm_rf ( tmp_uniq_dashboard_path )
104
- puts "Temporary directory cleaned up: #{ tmp_uniq_dashboard_path } "
105
99
end
106
100
end
107
101
@@ -144,7 +138,6 @@ def unzip_file(zip_path, destination)
144
138
end
145
139
extracted_files
146
140
rescue => e
147
- puts "Failed to unzip file: #{ e . message } "
148
141
raise
149
142
end
150
143
end
0 commit comments