class VimRecovery::Command::Clean
Public Instance Methods
run()
click to toggle source
# File lib/vim_recovery/command/clean.rb, line 3 def run each_swapfile do |swapfile| next if swapfile.modified? || swapfile.still_running? puts swapfile.path if @options[:verbose] swapfile.close File.unlink swapfile end end