Sha256: a2acce9dce91dadaf5627de8c735362fb206bba6be3211a62655219795c7dd51
Contents?: true
Size: 738 Bytes
Versions: 2
Compression:
Stored size: 738 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
evertils-common-0.3.1 | lib/evertils/common/query/backup.rb |
evertils-common-0.3.0 | lib/evertils/common/query/backup.rb |