Sha256: 69b850a552d215a7d91c6e871bf5fcf4a1565107a913fc6297fc91cd5dbcaa5a
Contents?: true
Size: 290 Bytes
Versions: 1
Compression:
Stored size: 290 Bytes
Contents
module VimRecovery class Command::Clean < Command 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 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vim-recovery-0.0.1 | lib/vim_recovery/command/clean.rb |