Method: NA.restore_last_modified_file

Defined in:
lib/na/next_action.rb

.restore_last_modified_file(search: nil) ⇒ Object

Get last modified file and restore a backup

Parameters:

  • search (defaults to: nil)

    The search



661
662
663
664
665
666
667
668
# File 'lib/na/next_action.rb', line 661

def restore_last_modified_file(search: nil)
  file = last_modified_file(search: search)
  if file
    restore_modified_file(file)
  else
    NA.notify("#{NA.theme[:error]}No matching file found")
  end
end