main.rb
# Checks if the user is sure and want to delete Output Folder
Checks if the user is sure and want to delete Output Folder
Checks if the user is sure and want to delete Output Folder
def cofirm_deleting
  answer = nil
  until answer == "Y" || answer == "N"
    40.times{print "=".colorize(:red)}
    puts " "
    puts "Are you sure ? (Y/N)".colorize(:red)
    40.times{print "=".colorize(:red)}
    puts " "
    answer = $stdin.gets.chomp.upcase
  end
  answer
end
def cofirm_deleting answer = nil until answer == "Y" || answer == "N" 40 . times { print "=" . colorize ( :red ) } puts " " puts "Are you sure ? (Y/N)" . colorize ( :red ) 40 . times { print "=" . colorize ( :red ) } puts " " answer = $stdin . gets . chomp . upcase end answer end
Checks if the user is sure and want to delete Output Folder
Checks if the user is sure and want to delete Output Folder