From 6d90cdc7778e5b3e2c35f0e1a7787c6fb3a76817 Mon Sep 17 00:00:00 2001 From: Anna Headley <845363+hackartisan@users.noreply.github.com> Date: Tue, 10 Oct 2023 15:50:09 -0400 Subject: [PATCH] simplify s3 command --- app/services/card_image_loading_service.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/services/card_image_loading_service.rb b/app/services/card_image_loading_service.rb index 3c8c272..3ed87c9 100644 --- a/app/services/card_image_loading_service.rb +++ b/app/services/card_image_loading_service.rb @@ -37,8 +37,7 @@ def disk_array(disk) # returns something like # "2023-07-19 14:39:38 3422 imagecat-disk9-0091-A3037-1358.0110.tif\n2023-07-19 14:39:38 7010 imagecat-disk9-0091-A3037-1358.0111.tif\n" def s3_disk_list(disk) - s3_query = "aws s3 ls s3://puliiif-production/imagecat-disk#{disk}-" - `#{s3_query}` + `aws s3 ls s3://puliiif-production/imagecat-disk#{disk}-` end def find_or_create_card_image(file_name)