Skip to content

Commit

Permalink
simplify s3 command
Browse files Browse the repository at this point in the history
  • Loading branch information
hackartisan committed Oct 10, 2023
1 parent 73c3052 commit 6d90cdc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/services/card_image_loading_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6d90cdc

Please sign in to comment.