Skip to content

Commit 408b526

Browse files
committed
[NEP-17596] remove redundant puts
1 parent 0dc30db commit 408b526

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/superset/dashboard/export.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def perform
3232

3333
Dir.glob("#{destination_path_with_dash_id}/**/*").select { |f| File.file?(f) }
3434
rescue StandardError => e
35-
puts "Export failed: #{e.message}"
3635
raise
3736
ensure
3837
cleanup_temp_dir
@@ -59,13 +58,11 @@ def params
5958
def save_exported_zip_file
6059
logger.info("Saving zip file: #{zip_file_name}")
6160
File.open(zip_file_name, 'wb') { |fp| fp.write(response.body) }
62-
puts "Saved zip file: #{zip_file_name}"
6361
end
6462

6563
def unzip_files
6664
logger.info("Unzipping file: #{zip_file_name}")
6765
@extracted_files = unzip_file(zip_file_name, tmp_uniq_dashboard_path)
68-
puts "Unzipped files: #{@extracted_files.inspect}"
6966
end
7067

7168
def download_folder
@@ -80,10 +77,8 @@ def clean_destination_directory
8077
logger.info("Cleaning destination directory: #{destination_path_with_dash_id}")
8178
if Dir.exist?(destination_path_with_dash_id)
8279
FileUtils.rm_rf(Dir.glob("#{destination_path_with_dash_id}/*"))
83-
puts "Deleted all existing files in #{destination_path_with_dash_id}."
8480
else
8581
FileUtils.mkdir_p(destination_path_with_dash_id)
86-
puts "Created new destination directory: #{destination_path_with_dash_id}"
8782
end
8883
end
8984

@@ -101,7 +96,6 @@ def copy_export_files_to_destination_path
10196
def cleanup_temp_dir
10297
if Dir.exist?(tmp_uniq_dashboard_path)
10398
FileUtils.rm_rf(tmp_uniq_dashboard_path)
104-
puts "Temporary directory cleaned up: #{tmp_uniq_dashboard_path}"
10599
end
106100
end
107101

@@ -144,7 +138,6 @@ def unzip_file(zip_path, destination)
144138
end
145139
extracted_files
146140
rescue => e
147-
puts "Failed to unzip file: #{e.message}"
148141
raise
149142
end
150143
end

0 commit comments

Comments
 (0)