Class: VimSitter::Bundle
- Inherits:
-
Object
- Object
- VimSitter::Bundle
- Defined in:
- lib/vim_sitter/bundle.rb
Class Method Summary collapse
Class Method Details
.delete_unused ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/vim_sitter/bundle.rb', line 17 def self.delete_unused bundles = Dir.entries(VimDir.bundle_dir).select { |item| File.directory?("#{VimDir.bundle_dir}/#{item}") && (item !~ /\.$/) } (bundles - Config.bundles).each do |item| FileUtils.rm_rf "#{VimDir.bundle_dir}/#{item}", verbose: true end end |