doing 2.1.2pre → 2.1.6pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardoc/checksums +19 -15
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/.yardopts +1 -1
- data/CHANGELOG.md +62 -14
- data/Gemfile.lock +25 -1
- data/README.md +5 -1
- data/Rakefile +2 -0
- data/bin/doing +429 -142
- data/docs/_config.yml +1 -0
- data/{doc → docs/doc}/Array.html +63 -1
- data/docs/doc/BooleanTermParser/Clause.html +293 -0
- data/docs/doc/BooleanTermParser/Operator.html +172 -0
- data/docs/doc/BooleanTermParser/Query.html +417 -0
- data/docs/doc/BooleanTermParser/QueryParser.html +135 -0
- data/docs/doc/BooleanTermParser/QueryTransformer.html +124 -0
- data/docs/doc/BooleanTermParser.html +115 -0
- data/docs/doc/Doing/CLIFormat.html +131 -0
- data/{doc → docs/doc}/Doing/Color.html +2 -2
- data/{doc → docs/doc}/Doing/Completion.html +1 -1
- data/{doc → docs/doc}/Doing/Configuration.html +163 -69
- data/{doc → docs/doc}/Doing/Content.html +0 -0
- data/{doc → docs/doc}/Doing/Errors/DoingNoTraceError.html +1 -1
- data/{doc → docs/doc}/Doing/Errors/DoingRuntimeError.html +1 -1
- data/{doc → docs/doc}/Doing/Errors/DoingStandardError.html +1 -1
- data/{doc → docs/doc}/Doing/Errors/EmptyInput.html +1 -1
- data/{doc → docs/doc}/Doing/Errors/NoResults.html +1 -1
- data/{doc → docs/doc}/Doing/Errors/PluginException.html +1 -1
- data/{doc → docs/doc}/Doing/Errors/UserCancelled.html +1 -1
- data/{doc → docs/doc}/Doing/Errors/WrongCommand.html +1 -1
- data/{doc → docs/doc}/Doing/Errors.html +1 -1
- data/{doc → docs/doc}/Doing/Hooks.html +1 -1
- data/{doc → docs/doc}/Doing/Item.html +135 -89
- data/{doc → docs/doc}/Doing/Items.html +36 -2
- data/{doc → docs/doc}/Doing/LogAdapter.html +70 -1
- data/{doc → docs/doc}/Doing/Note.html +5 -134
- data/{doc → docs/doc}/Doing/Pager.html +1 -1
- data/{doc → docs/doc}/Doing/Plugins.html +431 -35
- data/{doc → docs/doc}/Doing/Prompt.html +70 -18
- data/{doc → docs/doc}/Doing/Section.html +1 -1
- data/docs/doc/Doing/TemplateString.html +713 -0
- data/docs/doc/Doing/Util/Backup.html +686 -0
- data/{doc → docs/doc}/Doing/Util.html +16 -4
- data/{doc → docs/doc}/Doing/WWID.html +133 -73
- data/{doc → docs/doc}/Doing/WWIDFile.html +0 -0
- data/{doc → docs/doc}/Doing.html +4 -4
- data/{doc → docs/doc}/GLI/Commands/MarkdownDocumentListener.html +1 -1
- data/{doc → docs/doc}/GLI/Commands.html +1 -1
- data/{doc → docs/doc}/GLI.html +1 -1
- data/{doc → docs/doc}/Hash.html +1 -1
- data/docs/doc/PhraseParser/Operator.html +172 -0
- data/docs/doc/PhraseParser/PhraseClause.html +303 -0
- data/docs/doc/PhraseParser/Query.html +495 -0
- data/docs/doc/PhraseParser/QueryParser.html +136 -0
- data/docs/doc/PhraseParser/QueryTransformer.html +124 -0
- data/docs/doc/PhraseParser/TermClause.html +293 -0
- data/docs/doc/PhraseParser.html +115 -0
- data/{doc → docs/doc}/Status.html +1 -1
- data/{doc → docs/doc}/String.html +319 -13
- data/{doc → docs/doc}/Symbol.html +35 -1
- data/{doc → docs/doc}/Time.html +70 -2
- data/{doc → docs/doc}/_index.html +132 -4
- data/docs/doc/class_list.html +51 -0
- data/{doc → docs/doc}/css/common.css +0 -0
- data/{doc → docs/doc}/css/full_list.css +0 -0
- data/{doc → docs/doc}/css/style.css +0 -0
- data/{doc → docs/doc}/file.README.html +6 -2
- data/{doc → docs/doc}/file_list.html +0 -0
- data/{doc → docs/doc}/frames.html +0 -0
- data/{doc → docs/doc}/index.html +6 -2
- data/{doc → docs/doc}/js/app.js +0 -0
- data/{doc → docs/doc}/js/full_list.js +0 -0
- data/{doc → docs/doc}/js/jquery.js +0 -0
- data/{doc → docs/doc}/method_list.html +684 -196
- data/{doc → docs/doc}/top-level-namespace.html +2 -2
- data/docs/index.md +60 -0
- data/doing.gemspec +3 -0
- data/doing.rdoc +222 -74
- data/example_plugin.rb +3 -1
- data/lib/completion/_doing.zsh +53 -41
- data/lib/completion/doing.bash +17 -6
- data/lib/completion/doing.fish +321 -2
- data/lib/doing/array.rb +9 -0
- data/lib/doing/boolean_term_parser.rb +86 -0
- data/lib/doing/completion/fish_completion.rb +46 -3
- data/lib/doing/completion/zsh_completion.rb +1 -1
- data/lib/doing/configuration.rb +48 -21
- data/lib/doing/item.rb +105 -10
- data/lib/doing/items.rb +6 -0
- data/lib/doing/log_adapter.rb +28 -0
- data/lib/doing/note.rb +31 -30
- data/lib/doing/phrase_parser.rb +124 -0
- data/lib/doing/plugin_manager.rb +84 -21
- data/lib/doing/plugins/export/dayone_export.rb +209 -0
- data/lib/doing/plugins/export/html_export.rb +2 -2
- data/lib/doing/plugins/export/json_export.rb +1 -0
- data/lib/doing/plugins/export/markdown_export.rb +1 -1
- data/lib/doing/plugins/export/template_export.rb +94 -86
- data/lib/doing/prompt.rb +26 -15
- data/lib/doing/string.rb +114 -29
- data/lib/doing/string_chronify.rb +5 -1
- data/lib/doing/symbol.rb +4 -0
- data/lib/doing/template_string.rb +197 -0
- data/lib/doing/time.rb +32 -0
- data/lib/doing/util.rb +6 -7
- data/lib/doing/util_backup.rb +287 -0
- data/lib/doing/version.rb +1 -1
- data/lib/doing/wwid.rb +105 -41
- data/lib/doing.rb +9 -0
- data/lib/examples/plugins/say_export.rb +1 -1
- data/lib/examples/plugins/wiki_export/wiki_export.rb +3 -3
- data/lib/templates/doing-dayone-entry.erb +6 -0
- data/lib/templates/doing-dayone.erb +5 -0
- metadata +136 -51
- data/doc/class_list.html +0 -51
@@ -0,0 +1,686 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Module: Doing::Util::Backup
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.26
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" />
|
16
|
+
|
17
|
+
<script type="text/javascript">
|
18
|
+
pathId = "Doing::Util::Backup";
|
19
|
+
relpath = '../../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="../../_index.html">Index (B)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../../Doing.html" title="Doing (module)">Doing</a></span></span> » <span class='title'><span class='object_link'><a href="../Util.html" title="Doing::Util (module)">Util</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">Backup</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../../class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Module: Doing::Util::Backup
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
<dl>
|
73
|
+
<dt>Extended by:</dt>
|
74
|
+
<dd><span class='object_link'><a href="" title="Doing::Util::Backup (module)">Backup</a></span></dd>
|
75
|
+
</dl>
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<dl>
|
80
|
+
<dt>Includes:</dt>
|
81
|
+
<dd><span class='object_link'><a href="../Util.html" title="Doing::Util (module)">Doing::Util</a></span></dd>
|
82
|
+
</dl>
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
<dl>
|
88
|
+
<dt>Included in:</dt>
|
89
|
+
<dd><span class='object_link'><a href="" title="Doing::Util::Backup (module)">Backup</a></span></dd>
|
90
|
+
</dl>
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
<dl>
|
95
|
+
<dt>Defined in:</dt>
|
96
|
+
<dd>lib/doing/util_backup.rb</dd>
|
97
|
+
</dl>
|
98
|
+
|
99
|
+
</div>
|
100
|
+
|
101
|
+
<h2>Overview</h2><div class="docstring">
|
102
|
+
<div class="discussion">
|
103
|
+
<p>Backup utils</p>
|
104
|
+
|
105
|
+
|
106
|
+
</div>
|
107
|
+
</div>
|
108
|
+
<div class="tags">
|
109
|
+
|
110
|
+
|
111
|
+
</div>
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
<h2>
|
120
|
+
Instance Method Summary
|
121
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
122
|
+
</h2>
|
123
|
+
|
124
|
+
<ul class="summary">
|
125
|
+
|
126
|
+
<li class="public ">
|
127
|
+
<span class="summary_signature">
|
128
|
+
|
129
|
+
<a href="#clear_undone-instance_method" title="#clear_undone (instance method)">#<strong>clear_undone</strong>(filename = nil) ⇒ Object </a>
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
</span>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
144
|
+
|
145
|
+
</li>
|
146
|
+
|
147
|
+
|
148
|
+
<li class="public ">
|
149
|
+
<span class="summary_signature">
|
150
|
+
|
151
|
+
<a href="#prune_backups-instance_method" title="#prune_backups (instance method)">#<strong>prune_backups</strong>(filename, limit = 10) ⇒ Object </a>
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
</span>
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
<span class="summary_desc"><div class='inline'><p>Delete all but most recent 5 backups.</p>
|
166
|
+
</div></span>
|
167
|
+
|
168
|
+
</li>
|
169
|
+
|
170
|
+
|
171
|
+
<li class="public ">
|
172
|
+
<span class="summary_signature">
|
173
|
+
|
174
|
+
<a href="#redo_backup-instance_method" title="#redo_backup (instance method)">#<strong>redo_backup</strong>(filename = nil, count: 1) ⇒ Object </a>
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
</span>
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
<span class="summary_desc"><div class='inline'><p>Undo last undo.</p>
|
189
|
+
</div></span>
|
190
|
+
|
191
|
+
</li>
|
192
|
+
|
193
|
+
|
194
|
+
<li class="public ">
|
195
|
+
<span class="summary_signature">
|
196
|
+
|
197
|
+
<a href="#restore_last_backup-instance_method" title="#restore_last_backup (instance method)">#<strong>restore_last_backup</strong>(filename = nil, count: 1) ⇒ Object </a>
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
</span>
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
<span class="summary_desc"><div class='inline'><p>Restore the most recent backup.</p>
|
212
|
+
</div></span>
|
213
|
+
|
214
|
+
</li>
|
215
|
+
|
216
|
+
|
217
|
+
<li class="public ">
|
218
|
+
<span class="summary_signature">
|
219
|
+
|
220
|
+
<a href="#select_backup-instance_method" title="#select_backup (instance method)">#<strong>select_backup</strong>(filename = nil) ⇒ Object </a>
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
</span>
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
<span class="summary_desc"><div class='inline'><p>Select from recent backups.</p>
|
235
|
+
</div></span>
|
236
|
+
|
237
|
+
</li>
|
238
|
+
|
239
|
+
|
240
|
+
<li class="public ">
|
241
|
+
<span class="summary_signature">
|
242
|
+
|
243
|
+
<a href="#select_redo-instance_method" title="#select_redo (instance method)">#<strong>select_redo</strong>(filename = nil) ⇒ Object </a>
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
</span>
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
<span class="summary_desc"><div class='inline'><p>Select from recent undos.</p>
|
258
|
+
</div></span>
|
259
|
+
|
260
|
+
</li>
|
261
|
+
|
262
|
+
|
263
|
+
<li class="public ">
|
264
|
+
<span class="summary_signature">
|
265
|
+
|
266
|
+
<a href="#show_menu-instance_method" title="#show_menu (instance method)">#<strong>show_menu</strong>(options, filename) ⇒ Object </a>
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
</span>
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
281
|
+
|
282
|
+
</li>
|
283
|
+
|
284
|
+
|
285
|
+
<li class="public ">
|
286
|
+
<span class="summary_signature">
|
287
|
+
|
288
|
+
<a href="#write_backup-instance_method" title="#write_backup (instance method)">#<strong>write_backup</strong>(filename = nil) ⇒ Object </a>
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
</span>
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
<span class="summary_desc"><div class='inline'><p>Writes a copy of the content to a dated backup file in a hidden directory.</p>
|
303
|
+
</div></span>
|
304
|
+
|
305
|
+
</li>
|
306
|
+
|
307
|
+
|
308
|
+
</ul>
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="../Util.html" title="Doing::Util (module)">Doing::Util</a></span></h3>
|
321
|
+
<p class="inherited"><span class='object_link'><a href="../Util.html#args_for_editor-instance_method" title="Doing::Util#args_for_editor (method)">#args_for_editor</a></span>, <span class='object_link'><a href="../Util.html#deep_merge_hashes-instance_method" title="Doing::Util#deep_merge_hashes (method)">#deep_merge_hashes</a></span>, <span class='object_link'><a href="../Util.html#deep_merge_hashes!-instance_method" title="Doing::Util#deep_merge_hashes! (method)">#deep_merge_hashes!</a></span>, <span class='object_link'><a href="../Util.html#default_editor-instance_method" title="Doing::Util#default_editor (method)">#default_editor</a></span>, <span class='object_link'><a href="../Util.html#duplicable%3F-instance_method" title="Doing::Util#duplicable? (method)">#duplicable?</a></span>, <span class='object_link'><a href="../Util.html#duplicate_frozen_values-instance_method" title="Doing::Util#duplicate_frozen_values (method)">#duplicate_frozen_values</a></span>, <span class='object_link'><a href="../Util.html#editor_with_args-instance_method" title="Doing::Util#editor_with_args (method)">#editor_with_args</a></span>, <span class='object_link'><a href="../Util.html#exec_available-instance_method" title="Doing::Util#exec_available (method)">#exec_available</a></span>, <span class='object_link'><a href="../Util.html#find_default_editor-instance_method" title="Doing::Util#find_default_editor (method)">#find_default_editor</a></span>, <span class='object_link'><a href="../Util.html#first_available_exec-instance_method" title="Doing::Util#first_available_exec (method)">#first_available_exec</a></span>, <span class='object_link'><a href="../Util.html#mergable%3F-instance_method" title="Doing::Util#mergable? (method)">#mergable?</a></span>, <span class='object_link'><a href="../Util.html#merge_default_proc-instance_method" title="Doing::Util#merge_default_proc (method)">#merge_default_proc</a></span>, <span class='object_link'><a href="../Util.html#merge_values-instance_method" title="Doing::Util#merge_values (method)">#merge_values</a></span>, <span class='object_link'><a href="../Util.html#safe_load_file-instance_method" title="Doing::Util#safe_load_file (method)">#safe_load_file</a></span>, <span class='object_link'><a href="../Util.html#user_home-instance_method" title="Doing::Util#user_home (method)">#user_home</a></span>, <span class='object_link'><a href="../Util.html#write_to_file-instance_method" title="Doing::Util#write_to_file (method)">#write_to_file</a></span></p>
|
322
|
+
|
323
|
+
|
324
|
+
<div id="instance_method_details" class="method_details_list">
|
325
|
+
<h2>Instance Method Details</h2>
|
326
|
+
|
327
|
+
|
328
|
+
<div class="method_details first">
|
329
|
+
<h3 class="signature first" id="clear_undone-instance_method">
|
330
|
+
|
331
|
+
#<strong>clear_undone</strong>(filename = nil) ⇒ <tt>Object</tt>
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
</h3>
|
338
|
+
</div>
|
339
|
+
|
340
|
+
<div class="method_details ">
|
341
|
+
<h3 class="signature " id="prune_backups-instance_method">
|
342
|
+
|
343
|
+
#<strong>prune_backups</strong>(filename, limit = 10) ⇒ <tt>Object</tt>
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
</h3><div class="docstring">
|
350
|
+
<div class="discussion">
|
351
|
+
<p>Delete all but most recent 5 backups</p>
|
352
|
+
|
353
|
+
|
354
|
+
</div>
|
355
|
+
</div>
|
356
|
+
<div class="tags">
|
357
|
+
<p class="tag_title">Parameters:</p>
|
358
|
+
<ul class="param">
|
359
|
+
|
360
|
+
<li>
|
361
|
+
|
362
|
+
<span class='name'>limit</span>
|
363
|
+
|
364
|
+
|
365
|
+
<span class='type'></span>
|
366
|
+
|
367
|
+
|
368
|
+
<em class="default">(defaults to: <tt>10</tt>)</em>
|
369
|
+
|
370
|
+
|
371
|
+
—
|
372
|
+
<div class='inline'><p>Maximum number of backups to retain</p>
|
373
|
+
</div>
|
374
|
+
|
375
|
+
</li>
|
376
|
+
|
377
|
+
</ul>
|
378
|
+
|
379
|
+
|
380
|
+
</div>
|
381
|
+
</div>
|
382
|
+
|
383
|
+
<div class="method_details ">
|
384
|
+
<h3 class="signature " id="redo_backup-instance_method">
|
385
|
+
|
386
|
+
#<strong>redo_backup</strong>(filename = nil, count: 1) ⇒ <tt>Object</tt>
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
|
392
|
+
</h3><div class="docstring">
|
393
|
+
<div class="discussion">
|
394
|
+
<p>Undo last undo</p>
|
395
|
+
|
396
|
+
|
397
|
+
</div>
|
398
|
+
</div>
|
399
|
+
<div class="tags">
|
400
|
+
<p class="tag_title">Parameters:</p>
|
401
|
+
<ul class="param">
|
402
|
+
|
403
|
+
<li>
|
404
|
+
|
405
|
+
<span class='name'>filename</span>
|
406
|
+
|
407
|
+
|
408
|
+
<span class='type'></span>
|
409
|
+
|
410
|
+
|
411
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
412
|
+
|
413
|
+
|
414
|
+
—
|
415
|
+
<div class='inline'><p>The filename</p>
|
416
|
+
</div>
|
417
|
+
|
418
|
+
</li>
|
419
|
+
|
420
|
+
</ul>
|
421
|
+
|
422
|
+
<p class="tag_title">Raises:</p>
|
423
|
+
<ul class="raise">
|
424
|
+
|
425
|
+
<li>
|
426
|
+
|
427
|
+
|
428
|
+
<span class='type'>(<tt>DoingRuntimeError</tt>)</span>
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
</li>
|
433
|
+
|
434
|
+
</ul>
|
435
|
+
|
436
|
+
</div>
|
437
|
+
</div>
|
438
|
+
|
439
|
+
<div class="method_details ">
|
440
|
+
<h3 class="signature " id="restore_last_backup-instance_method">
|
441
|
+
|
442
|
+
#<strong>restore_last_backup</strong>(filename = nil, count: 1) ⇒ <tt>Object</tt>
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
</h3><div class="docstring">
|
449
|
+
<div class="discussion">
|
450
|
+
<p>Restore the most recent backup. If a filename is
|
451
|
+
provided, only backups of that filename will be used.</p>
|
452
|
+
|
453
|
+
|
454
|
+
</div>
|
455
|
+
</div>
|
456
|
+
<div class="tags">
|
457
|
+
<p class="tag_title">Parameters:</p>
|
458
|
+
<ul class="param">
|
459
|
+
|
460
|
+
<li>
|
461
|
+
|
462
|
+
<span class='name'>filename</span>
|
463
|
+
|
464
|
+
|
465
|
+
<span class='type'></span>
|
466
|
+
|
467
|
+
|
468
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
469
|
+
|
470
|
+
|
471
|
+
—
|
472
|
+
<div class='inline'><p>The filename to restore, if
|
473
|
+
different from default</p>
|
474
|
+
</div>
|
475
|
+
|
476
|
+
</li>
|
477
|
+
|
478
|
+
</ul>
|
479
|
+
|
480
|
+
<p class="tag_title">Raises:</p>
|
481
|
+
<ul class="raise">
|
482
|
+
|
483
|
+
<li>
|
484
|
+
|
485
|
+
|
486
|
+
<span class='type'>(<tt>DoingRuntimeError</tt>)</span>
|
487
|
+
|
488
|
+
|
489
|
+
|
490
|
+
</li>
|
491
|
+
|
492
|
+
</ul>
|
493
|
+
|
494
|
+
</div>
|
495
|
+
</div>
|
496
|
+
|
497
|
+
<div class="method_details ">
|
498
|
+
<h3 class="signature " id="select_backup-instance_method">
|
499
|
+
|
500
|
+
#<strong>select_backup</strong>(filename = nil) ⇒ <tt>Object</tt>
|
501
|
+
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
|
506
|
+
</h3><div class="docstring">
|
507
|
+
<div class="discussion">
|
508
|
+
<p>Select from recent backups. If a filename is
|
509
|
+
provided, only backups of that filename will be used.</p>
|
510
|
+
|
511
|
+
|
512
|
+
</div>
|
513
|
+
</div>
|
514
|
+
<div class="tags">
|
515
|
+
<p class="tag_title">Parameters:</p>
|
516
|
+
<ul class="param">
|
517
|
+
|
518
|
+
<li>
|
519
|
+
|
520
|
+
<span class='name'>filename</span>
|
521
|
+
|
522
|
+
|
523
|
+
<span class='type'></span>
|
524
|
+
|
525
|
+
|
526
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
527
|
+
|
528
|
+
|
529
|
+
—
|
530
|
+
<div class='inline'><p>The filename to restore</p>
|
531
|
+
</div>
|
532
|
+
|
533
|
+
</li>
|
534
|
+
|
535
|
+
</ul>
|
536
|
+
|
537
|
+
|
538
|
+
</div>
|
539
|
+
</div>
|
540
|
+
|
541
|
+
<div class="method_details ">
|
542
|
+
<h3 class="signature " id="select_redo-instance_method">
|
543
|
+
|
544
|
+
#<strong>select_redo</strong>(filename = nil) ⇒ <tt>Object</tt>
|
545
|
+
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
|
550
|
+
</h3><div class="docstring">
|
551
|
+
<div class="discussion">
|
552
|
+
<p>Select from recent undos. If a filename is
|
553
|
+
provided, only backups of that filename will be used.</p>
|
554
|
+
|
555
|
+
|
556
|
+
</div>
|
557
|
+
</div>
|
558
|
+
<div class="tags">
|
559
|
+
<p class="tag_title">Parameters:</p>
|
560
|
+
<ul class="param">
|
561
|
+
|
562
|
+
<li>
|
563
|
+
|
564
|
+
<span class='name'>filename</span>
|
565
|
+
|
566
|
+
|
567
|
+
<span class='type'></span>
|
568
|
+
|
569
|
+
|
570
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
571
|
+
|
572
|
+
|
573
|
+
—
|
574
|
+
<div class='inline'><p>The filename to restore</p>
|
575
|
+
</div>
|
576
|
+
|
577
|
+
</li>
|
578
|
+
|
579
|
+
</ul>
|
580
|
+
|
581
|
+
<p class="tag_title">Raises:</p>
|
582
|
+
<ul class="raise">
|
583
|
+
|
584
|
+
<li>
|
585
|
+
|
586
|
+
|
587
|
+
<span class='type'>(<tt>DoingRuntimeError</tt>)</span>
|
588
|
+
|
589
|
+
|
590
|
+
|
591
|
+
</li>
|
592
|
+
|
593
|
+
</ul>
|
594
|
+
|
595
|
+
</div>
|
596
|
+
</div>
|
597
|
+
|
598
|
+
<div class="method_details ">
|
599
|
+
<h3 class="signature " id="show_menu-instance_method">
|
600
|
+
|
601
|
+
#<strong>show_menu</strong>(options, filename) ⇒ <tt>Object</tt>
|
602
|
+
|
603
|
+
|
604
|
+
|
605
|
+
|
606
|
+
|
607
|
+
</h3><div class="docstring">
|
608
|
+
<div class="discussion">
|
609
|
+
|
610
|
+
|
611
|
+
</div>
|
612
|
+
</div>
|
613
|
+
<div class="tags">
|
614
|
+
|
615
|
+
<p class="tag_title">Raises:</p>
|
616
|
+
<ul class="raise">
|
617
|
+
|
618
|
+
<li>
|
619
|
+
|
620
|
+
|
621
|
+
<span class='type'>(<tt>UserCancelled</tt>)</span>
|
622
|
+
|
623
|
+
|
624
|
+
|
625
|
+
</li>
|
626
|
+
|
627
|
+
</ul>
|
628
|
+
|
629
|
+
</div>
|
630
|
+
</div>
|
631
|
+
|
632
|
+
<div class="method_details ">
|
633
|
+
<h3 class="signature " id="write_backup-instance_method">
|
634
|
+
|
635
|
+
#<strong>write_backup</strong>(filename = nil) ⇒ <tt>Object</tt>
|
636
|
+
|
637
|
+
|
638
|
+
|
639
|
+
|
640
|
+
|
641
|
+
</h3><div class="docstring">
|
642
|
+
<div class="discussion">
|
643
|
+
<p>Writes a copy of the content to a dated backup file
|
644
|
+
in a hidden directory</p>
|
645
|
+
|
646
|
+
|
647
|
+
</div>
|
648
|
+
</div>
|
649
|
+
<div class="tags">
|
650
|
+
<p class="tag_title">Parameters:</p>
|
651
|
+
<ul class="param">
|
652
|
+
|
653
|
+
<li>
|
654
|
+
|
655
|
+
<span class='name'>content</span>
|
656
|
+
|
657
|
+
|
658
|
+
<span class='type'></span>
|
659
|
+
|
660
|
+
|
661
|
+
|
662
|
+
—
|
663
|
+
<div class='inline'><p>The data to back up</p>
|
664
|
+
</div>
|
665
|
+
|
666
|
+
</li>
|
667
|
+
|
668
|
+
</ul>
|
669
|
+
|
670
|
+
|
671
|
+
</div>
|
672
|
+
</div>
|
673
|
+
|
674
|
+
</div>
|
675
|
+
|
676
|
+
</div>
|
677
|
+
|
678
|
+
<div id="footer">
|
679
|
+
Generated on Mon Dec 20 15:39:45 2021 by
|
680
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
681
|
+
0.9.26 (ruby-3.0.1).
|
682
|
+
</div>
|
683
|
+
|
684
|
+
</div>
|
685
|
+
</body>
|
686
|
+
</html>
|