Method: Bundler::Thor::Runner#uninstall
- Defined in:
- lib/bundler/vendor/thor/lib/thor/runner.rb
permalink #uninstall(name) ⇒ Object
130 131 132 133 134 135 136 137 138 139 140 |
# File 'lib/bundler/vendor/thor/lib/thor/runner.rb', line 130 def uninstall(name) raise Error, "Can't find module '#{name}'" unless thor_yaml[name] say "Uninstalling #{name}." require "fileutils" FileUtils.rm_rf(File.join(thor_root, (thor_yaml[name][:filename]).to_s)) thor_yaml.delete(name) save_yaml(thor_yaml) puts "Done." end |