From 3110a2d205b0355af46d4a2b40b87faddcdbed8f Mon Sep 17 00:00:00 2001 From: Chloe Kudryavtsev Date: Fri, 23 Jul 2021 17:48:40 -0400 Subject: anypaste plugins: remove --- dot_anypaste-plugins/executable_anyminio | 35 -------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 dot_anypaste-plugins/executable_anyminio (limited to 'dot_anypaste-plugins/executable_anyminio') diff --git a/dot_anypaste-plugins/executable_anyminio b/dot_anypaste-plugins/executable_anyminio deleted file mode 100644 index 173369b..0000000 --- a/dot_anypaste-plugins/executable_anyminio +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh -: "${anyminio_cli:=mc}" - -case $1 in - check_eligibility) - true - ;; - upload) - d=$(date +%Y/%m/%d) - path="$anyminio_prefix/$d/$ap_human_name" - - "$anyminio_cli" cp "$ap_path" "$path" || - { echo 'ERROR: Upload failed!' >&2; exit 1; } - url=$($anyminio_cli ls --json "$path" | jq -r .url) || - { echo 'ERROR: Fetching object information failed!' >&2; exit 2; } - - echo - echo "Link: $url" - echo "Direct: $url" - echo - ;; - get_info) - echo '[name]' - echo 'Minio' - echo '[description]' - echo 'Uses minio-client to upload to an arbitrary location (+date and human name). Requires jq to run.' - echo '[tags]' - echo 'direct' - echo 'permanent' - echo 'private' - echo '[config]' - echo 'optional|anyminio_mcli|binary to use as minio-client, defaults to mc' - echo 'required|anyminio_prefix|prefix to place data into, e.g target/shared/anypaste' - echo 'optional|MC_HOST_target|authorization env to use for *target* if not configured' -esac -- cgit v1.2.3