Sha256: 9ac42a36cad448f753f46cb4eb68928786d1ec2e71b375c8dd629f4b15b5f5d2
Contents?: true
Size: 440 Bytes
Versions: 8
Compression:
Stored size: 440 Bytes
Contents
require 'fileutils' module PryTheme module Uninstaller def self.run(u) puts "Do you wish to delete #{THEME_DIR} directory with all Pry themes?" print "(y/n): " case $stdin.gets.chomp when "y" FileUtils.rm_rf(THEME_DIR) puts "Successfully deleted #{THEME_DIR} and all Pry themes." else puts "Nothing deleted. You can manually delete the directory." end end end end
Version data entries
8 entries across 8 versions & 1 rubygems