lib/stashify/directory/local.rb in stashify-2.1.1 vs lib/stashify/directory/local.rb in stashify-3.0.0

- old
+ new

@@ -9,14 +9,10 @@ def write_directory(directory) FileUtils.mkdir(path_of(directory.name)) super end - def write_file(file) - ::File.write(path_of(file.name), file.contents) - end - def files Dir.entries(path).grep_v(/^[.][.]?$/).map do |file_name| find(::File.basename(file_name)) end end @@ -39,13 +35,9 @@ Stashify::Directory::Local.new(path: path_of(name)) end def delete_directory(name) FileUtils.rm_r(path_of(name)) - end - - def delete_file(name) - ::File.delete(path_of(name)) end end end end