Method: Command::Diff#clean_diff
- Defined in:
- lib/command/diff.rb
#clean_diff(id) ⇒ Object
135 136 137 138 139 140 141 142 143 144 |
# File 'lib/command/diff.rb', line 135 def clean_diff(id) cache_root_dir = Downloader.get_cache_root_dir(id) print @novel_data["title"] + " の" unless File.exist?(cache_root_dir) puts "差分はひとつもありません" return end FileUtils.remove_entry_secure(cache_root_dir) puts "差分を削除しました" end |