From ff5005363f656e8c8d723d172f3f8d4b71d49c2a Mon Sep 17 00:00:00 2001 From: Benjamin Kiah Stroud <32469930+bkiahstroud@users.noreply.github.com> Date: Thu, 10 Oct 2024 16:43:52 -0700 Subject: [PATCH] add warning to bin/migrate_iaids --- bin/audit_iaids.rb | 4 ++-- bin/ia_to_s3_migrator | 4 ++-- bin/map_iaids_by_csv.rb | 2 +- bin/migrate_iaids | 4 ++++ 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/bin/audit_iaids.rb b/bin/audit_iaids.rb index 9d2b8b8..eb8470e 100755 --- a/bin/audit_iaids.rb +++ b/bin/audit_iaids.rb @@ -1,8 +1,8 @@ #!/usr/bin/env ruby -# NOTE: Usage: bin/audit_iaids.rb path/to/json +# INFO: Usage: bin/audit_iaids.rb path/to/json -# INFO: To use this script, you will first need to run bin/map_iaids_by_csv.rb +# NOTE: To use this script, you will first need to run bin/map_iaids_by_csv.rb require_relative '../lib/space_stone' require 'dotenv' diff --git a/bin/ia_to_s3_migrator b/bin/ia_to_s3_migrator index a7c0cf5..2f06b53 100755 --- a/bin/ia_to_s3_migrator +++ b/bin/ia_to_s3_migrator @@ -1,8 +1,8 @@ #!/usr/bin/env ruby -# NOTE: Usage: bin/migrate_iaids path/to/audit_json +# INFO: Usage: bin/migrate_iaids path/to/audit_json -# INFO: To use this script, you will first need to run: +# NOTE: To use this script, you will first need to run: # - bin/map_iaids_by_csv.rb # - bin/audit_iaids.rb diff --git a/bin/map_iaids_by_csv.rb b/bin/map_iaids_by_csv.rb index 58eae0e..8509c7f 100755 --- a/bin/map_iaids_by_csv.rb +++ b/bin/map_iaids_by_csv.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -# NOTE: Usage: bin/map_iaids_by_csv.rb path/to/csv +# INFO: Usage: bin/map_iaids_by_csv.rb path/to/csv require 'csv' require 'json' diff --git a/bin/migrate_iaids b/bin/migrate_iaids index 5f4c968..00198e2 100755 --- a/bin/migrate_iaids +++ b/bin/migrate_iaids @@ -1,6 +1,10 @@ #!/bin/bash set -e +# WARN: This script can run for a long time. Running this within a +# screen session or as a background process is strongly recommended + +# INFO: Usage: bin/migrate_iaids path/to/audit_json # See bin/ia_to_s3_migrator STAGE_ENV=production docker compose run \