pulibrary / dspace-osti

Preparing PPPL dataset metadata for ingestion by OSTI
3 stars 1 forks source link

Add user prompt for test or prod mode #54

Closed astrochun closed 2 years ago

astrochun commented 2 years ago

Closes #53

A user prompt is added to request a response before triggering the Poster.run_pipeline method, which executes the POST submissions.

The prompt is the following:

WARNING: Running this script in test mode will trigger emails to PPPL and OSTI!
Are you sure you wish you proceed? (Enter 'Yes'/'yes')

Any response other than a lower-cased permutation (e.g., YES, Yes, yes) of "yes", triggers the following:

WARNING: Running this script in test mode will trigger emails to PPPL and OSTI!
Are you sure you wish you proceed? (Enter 'Yes'/'yes') no
User response: no
Exiting!!! You must response with a Yes/yes