Sha256: 1874b4d3370e289b04b0e59e092769ad9741174378e8dd7c9479d0cfb2a3a682
Contents?: true
Size: 726 Bytes
Versions: 1
Compression:
Stored size: 726 Bytes
Contents
module Evertils module Common module Query class Backup < Query::Base # # @since 0.2.8 def files(*files) date = DateTime.now backup_notebook_name = 'Backup' nm = Entity::Note.new # create the backup notebook if it does not exist nb_entity = Entity::Notebook.new nb = nb_entity.find(backup_notebook_name) if nb_entity.find(backup_notebook_name).nil? nb = nb_entity.create(backup_notebook_name) end @entity = nm.create("Backup: #{date}", "", nb, files) end # # @since 0.2.9 def expunge! @entity.expunge! end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
evertils-common-0.3.2 | lib/evertils/common/query/backup.rb |