Files
bqkc/.github/Rakefile
Nasir Anthony Montalvo 0a854da998 reconnect
2026-01-26 02:25:43 -06:00

34 lines
880 B
Ruby

# frozen_string_literal: true
###############################################################################
#
# CollectionBuilder Rake Utilities
#
# See "docs/rake_tasks/" for documentation.
# See "rakelib" for individual rake tasks!
#
###############################################################################
require 'csv'
require 'fileutils'
###############################################################################
# Helper Functions
###############################################################################
def prompt_user_for_confirmation(message)
response = nil
loop do
print "#{message} (Y/n): "
$stdout.flush
response = case $stdin.gets.chomp.downcase
when '', 'y' then true
when 'n' then false
end
break unless response.nil?
puts 'Please enter "y" or "n"'
end
response
end