Module: PryTheme::Uninstaller

Defined in:
lib/pry-theme/uninstaller.rb

Class Method Summary collapse

Class Method Details

.run(u) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/pry-theme/uninstaller.rb', line 6

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