syc-backup 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +48 -0
- data/Rakefile +7 -0
- data/bin/sycbackup +6 -0
- data/doc/Backup.html +186 -0
- data/doc/Backup/CronEdit.html +381 -0
- data/doc/Backup/Environment.html +231 -0
- data/doc/Backup/FileBackup.html +363 -0
- data/doc/Backup/MySQLBackup.html +305 -0
- data/doc/Backup/Options.html +328 -0
- data/doc/Backup/Process.html +261 -0
- data/doc/Backup/Runner.html +244 -0
- data/doc/README_rdoc.html +202 -0
- data/doc/Rakefile.html +118 -0
- data/doc/TestCronEdit.html +211 -0
- data/doc/TestEnvironment.html +156 -0
- data/doc/TestFileBackup.html +237 -0
- data/doc/TestMySQLBackup.html +167 -0
- data/doc/TestOptions.html +156 -0
- data/doc/TestProcess.html +236 -0
- data/doc/created.rid +18 -0
- data/doc/images/add.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +106 -0
- data/doc/js/darkfish.js +153 -0
- data/doc/js/jquery.js +18 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/search.js +94 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/searcher.js +228 -0
- data/doc/rdoc.css +543 -0
- data/doc/table_of_contents.html +148 -0
- data/lib/backup/cron_edit.rb +127 -0
- data/lib/backup/environment.rb +44 -0
- data/lib/backup/file_backup.rb +94 -0
- data/lib/backup/mysql_backup.rb +58 -0
- data/lib/backup/options.rb +199 -0
- data/lib/backup/process.rb +99 -0
- data/lib/backup/runner.rb +79 -0
- data/lib/backup_version.rb +9 -0
- data/syc-backup-0.0.1.gem +0 -0
- data/syc-backup-0.0.3.gem +0 -0
- data/sycbackup.gemspec +20 -0
- data/test/test_cron_edit.rb +49 -0
- data/test/test_environment.rb +22 -0
- data/test/test_file_backup.rb +70 -0
- data/test/test_mysql_backup.rb +71 -0
- data/test/test_options.rb +189 -0
- data/test/test_process.rb +40 -0
- metadata +123 -0
@@ -0,0 +1,156 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class TestOptions - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "./";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="./index.html">Home</a>
|
28
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>test/test_options.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
<nav id="parent-class-section" class="section">
|
60
|
+
<h3 class="section-header">Parent</h3>
|
61
|
+
|
62
|
+
<p class="link">Test::Unit::TestCase
|
63
|
+
|
64
|
+
</nav>
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
</div>
|
69
|
+
|
70
|
+
<div id="project-metadata">
|
71
|
+
<nav id="fileindex-section" class="section project-section">
|
72
|
+
<h3 class="section-header">Pages</h3>
|
73
|
+
|
74
|
+
<ul>
|
75
|
+
|
76
|
+
<li class="file"><a href="./README_rdoc.html">README</a>
|
77
|
+
|
78
|
+
<li class="file"><a href="./Rakefile.html">Rakefile</a>
|
79
|
+
|
80
|
+
</ul>
|
81
|
+
</nav>
|
82
|
+
|
83
|
+
<nav id="classindex-section" class="section project-section">
|
84
|
+
<h3 class="section-header">Class and Module Index</h3>
|
85
|
+
|
86
|
+
<ul class="link-list">
|
87
|
+
|
88
|
+
<li><a href="./Backup.html">Backup</a>
|
89
|
+
|
90
|
+
<li><a href="./Backup/CronEdit.html">Backup::CronEdit</a>
|
91
|
+
|
92
|
+
<li><a href="./Backup/Environment.html">Backup::Environment</a>
|
93
|
+
|
94
|
+
<li><a href="./Backup/FileBackup.html">Backup::FileBackup</a>
|
95
|
+
|
96
|
+
<li><a href="./Backup/MySQLBackup.html">Backup::MySQLBackup</a>
|
97
|
+
|
98
|
+
<li><a href="./Backup/Options.html">Backup::Options</a>
|
99
|
+
|
100
|
+
<li><a href="./Backup/Process.html">Backup::Process</a>
|
101
|
+
|
102
|
+
<li><a href="./Backup/Runner.html">Backup::Runner</a>
|
103
|
+
|
104
|
+
<li><a href="./TestCronEdit.html">TestCronEdit</a>
|
105
|
+
|
106
|
+
<li><a href="./TestEnvironment.html">TestEnvironment</a>
|
107
|
+
|
108
|
+
<li><a href="./TestFileBackup.html">TestFileBackup</a>
|
109
|
+
|
110
|
+
<li><a href="./TestMySQLBackup.html">TestMySQLBackup</a>
|
111
|
+
|
112
|
+
<li><a href="./TestOptions.html">TestOptions</a>
|
113
|
+
|
114
|
+
<li><a href="./TestProcess.html">TestProcess</a>
|
115
|
+
|
116
|
+
</ul>
|
117
|
+
</nav>
|
118
|
+
|
119
|
+
</div>
|
120
|
+
</nav>
|
121
|
+
|
122
|
+
<div id="documentation">
|
123
|
+
<h1 class="class">class TestOptions</h1>
|
124
|
+
|
125
|
+
<div id="description" class="description">
|
126
|
+
|
127
|
+
<p>Test that user input is correctly interpreted and provided to other classes
|
128
|
+
over methods.</p>
|
129
|
+
|
130
|
+
</div><!-- description -->
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
<!-- Methods -->
|
145
|
+
|
146
|
+
</section><!-- 5Buntitled-5D -->
|
147
|
+
|
148
|
+
</div><!-- documentation -->
|
149
|
+
|
150
|
+
|
151
|
+
<footer id="validator-badges">
|
152
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
153
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
154
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
155
|
+
</footer>
|
156
|
+
|
@@ -0,0 +1,236 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
+
|
7
|
+
<title>class TestProcess - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
+
|
11
|
+
<script type="text/javascript">
|
12
|
+
var rdoc_rel_prefix = "./";
|
13
|
+
</script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
+
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
+
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" class="class">
|
24
|
+
<nav id="metadata">
|
25
|
+
<nav id="home-section" class="section">
|
26
|
+
<h3 class="section-header">
|
27
|
+
<a href="./index.html">Home</a>
|
28
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
+
</h3>
|
31
|
+
</nav>
|
32
|
+
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
+
<form action="#" method="get" accept-charset="utf-8">
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
+
</h3>
|
40
|
+
</form>
|
41
|
+
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
45
|
+
|
46
|
+
<div id="file-metadata">
|
47
|
+
<nav id="file-list-section" class="section">
|
48
|
+
<h3 class="section-header">Defined In</h3>
|
49
|
+
<ul>
|
50
|
+
<li>test/test_process.rb
|
51
|
+
</ul>
|
52
|
+
</nav>
|
53
|
+
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
<nav id="parent-class-section" class="section">
|
60
|
+
<h3 class="section-header">Parent</h3>
|
61
|
+
|
62
|
+
<p class="link">Test::Unit::TestCase
|
63
|
+
|
64
|
+
</nav>
|
65
|
+
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<nav id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
70
|
+
|
71
|
+
<ul class="link-list">
|
72
|
+
|
73
|
+
<li><a href="#method-i-setup">#setup</a>
|
74
|
+
|
75
|
+
<li><a href="#method-i-teardown">#teardown</a>
|
76
|
+
|
77
|
+
</ul>
|
78
|
+
</nav>
|
79
|
+
|
80
|
+
</div>
|
81
|
+
|
82
|
+
<div id="project-metadata">
|
83
|
+
<nav id="fileindex-section" class="section project-section">
|
84
|
+
<h3 class="section-header">Pages</h3>
|
85
|
+
|
86
|
+
<ul>
|
87
|
+
|
88
|
+
<li class="file"><a href="./README_rdoc.html">README</a>
|
89
|
+
|
90
|
+
<li class="file"><a href="./Rakefile.html">Rakefile</a>
|
91
|
+
|
92
|
+
</ul>
|
93
|
+
</nav>
|
94
|
+
|
95
|
+
<nav id="classindex-section" class="section project-section">
|
96
|
+
<h3 class="section-header">Class and Module Index</h3>
|
97
|
+
|
98
|
+
<ul class="link-list">
|
99
|
+
|
100
|
+
<li><a href="./Backup.html">Backup</a>
|
101
|
+
|
102
|
+
<li><a href="./Backup/CronEdit.html">Backup::CronEdit</a>
|
103
|
+
|
104
|
+
<li><a href="./Backup/Environment.html">Backup::Environment</a>
|
105
|
+
|
106
|
+
<li><a href="./Backup/FileBackup.html">Backup::FileBackup</a>
|
107
|
+
|
108
|
+
<li><a href="./Backup/MySQLBackup.html">Backup::MySQLBackup</a>
|
109
|
+
|
110
|
+
<li><a href="./Backup/Options.html">Backup::Options</a>
|
111
|
+
|
112
|
+
<li><a href="./Backup/Process.html">Backup::Process</a>
|
113
|
+
|
114
|
+
<li><a href="./Backup/Runner.html">Backup::Runner</a>
|
115
|
+
|
116
|
+
<li><a href="./TestCronEdit.html">TestCronEdit</a>
|
117
|
+
|
118
|
+
<li><a href="./TestEnvironment.html">TestEnvironment</a>
|
119
|
+
|
120
|
+
<li><a href="./TestFileBackup.html">TestFileBackup</a>
|
121
|
+
|
122
|
+
<li><a href="./TestMySQLBackup.html">TestMySQLBackup</a>
|
123
|
+
|
124
|
+
<li><a href="./TestOptions.html">TestOptions</a>
|
125
|
+
|
126
|
+
<li><a href="./TestProcess.html">TestProcess</a>
|
127
|
+
|
128
|
+
</ul>
|
129
|
+
</nav>
|
130
|
+
|
131
|
+
</div>
|
132
|
+
</nav>
|
133
|
+
|
134
|
+
<div id="documentation">
|
135
|
+
<h1 class="class">class TestProcess</h1>
|
136
|
+
|
137
|
+
<div id="description" class="description">
|
138
|
+
|
139
|
+
<p>Test for the Process class. Tests copy and compress commands</p>
|
140
|
+
|
141
|
+
</div><!-- description -->
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
<!-- Methods -->
|
156
|
+
|
157
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
158
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
159
|
+
|
160
|
+
|
161
|
+
<div id="method-i-setup" class="method-detail ">
|
162
|
+
|
163
|
+
<div class="method-heading">
|
164
|
+
<span class="method-name">setup</span><span
|
165
|
+
class="method-args">()</span>
|
166
|
+
<span class="method-click-advice">click to toggle source</span>
|
167
|
+
</div>
|
168
|
+
|
169
|
+
|
170
|
+
<div class="method-description">
|
171
|
+
|
172
|
+
<p>Create files to backup</p>
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
<div class="method-source-code" id="setup-source">
|
177
|
+
<pre><span class="ruby-comment"># File test/test_process.rb, line 12</span>
|
178
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">setup</span>
|
179
|
+
<span class="ruby-ivar">@files</span> = [<span class="ruby-string">"file1"</span>, <span class="ruby-string">"file2"</span>, <span class="ruby-string">"file3"</span>]
|
180
|
+
<span class="ruby-ivar">@files</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">touch</span> <span class="ruby-identifier">f</span>}
|
181
|
+
<span class="ruby-keyword">end</span></pre>
|
182
|
+
</div><!-- setup-source -->
|
183
|
+
|
184
|
+
</div>
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
</div><!-- setup-method -->
|
190
|
+
|
191
|
+
|
192
|
+
<div id="method-i-teardown" class="method-detail ">
|
193
|
+
|
194
|
+
<div class="method-heading">
|
195
|
+
<span class="method-name">teardown</span><span
|
196
|
+
class="method-args">()</span>
|
197
|
+
<span class="method-click-advice">click to toggle source</span>
|
198
|
+
</div>
|
199
|
+
|
200
|
+
|
201
|
+
<div class="method-description">
|
202
|
+
|
203
|
+
<p>Remove files that have created with setup and all files and directories
|
204
|
+
created during backup processing</p>
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
<div class="method-source-code" id="teardown-source">
|
209
|
+
<pre><span class="ruby-comment"># File test/test_process.rb, line 19</span>
|
210
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">teardown</span>
|
211
|
+
<span class="ruby-ivar">@files</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span> <span class="ruby-identifier">f</span>}
|
212
|
+
<span class="ruby-constant">Dir</span>[<span class="ruby-string">"test/backup_p/*"</span>].<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span> <span class="ruby-identifier">f</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">file?</span> <span class="ruby-identifier">f</span>}
|
213
|
+
<span class="ruby-keyword">end</span></pre>
|
214
|
+
</div><!-- teardown-source -->
|
215
|
+
|
216
|
+
</div>
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
</div><!-- teardown-method -->
|
222
|
+
|
223
|
+
|
224
|
+
</section><!-- public-instance-method-details -->
|
225
|
+
|
226
|
+
</section><!-- 5Buntitled-5D -->
|
227
|
+
|
228
|
+
</div><!-- documentation -->
|
229
|
+
|
230
|
+
|
231
|
+
<footer id="validator-badges">
|
232
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
233
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
234
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
235
|
+
</footer>
|
236
|
+
|
data/doc/created.rid
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
Sat, 02 Feb 2013 19:22:09 +0100
|
2
|
+
./README.rdoc Sun, 27 Jan 2013 22:13:29 +0100
|
3
|
+
./test/test_process.rb Sat, 02 Feb 2013 16:04:30 +0100
|
4
|
+
./test/test_mysql_backup.rb Sat, 02 Feb 2013 16:05:39 +0100
|
5
|
+
./test/test_options.rb Sat, 02 Feb 2013 14:21:39 +0100
|
6
|
+
./test/test_cron_edit.rb Sat, 26 Jan 2013 23:41:31 +0100
|
7
|
+
./test/test_environment.rb Sat, 02 Feb 2013 15:56:51 +0100
|
8
|
+
./test/test_file_backup.rb Sat, 02 Feb 2013 16:09:39 +0100
|
9
|
+
./lib/backup_version.rb Sat, 02 Feb 2013 17:53:41 +0100
|
10
|
+
./lib/backup/file_backup.rb Sat, 02 Feb 2013 17:58:42 +0100
|
11
|
+
./lib/backup/process.rb Mon, 28 Jan 2013 08:46:33 +0100
|
12
|
+
./lib/backup/mysql_backup.rb Sun, 27 Jan 2013 22:30:18 +0100
|
13
|
+
./lib/backup/options.rb Sat, 02 Feb 2013 18:13:34 +0100
|
14
|
+
./lib/backup/cron_edit.rb Sat, 02 Feb 2013 18:31:29 +0100
|
15
|
+
./lib/backup/environment.rb Sat, 02 Feb 2013 15:55:40 +0100
|
16
|
+
./lib/backup/runner.rb Sat, 02 Feb 2013 15:29:54 +0100
|
17
|
+
./bin/sycbackup Sun, 27 Jan 2013 13:07:36 +0100
|
18
|
+
./Rakefile Sun, 27 Jan 2013 10:52:48 +0100
|
data/doc/images/add.png
ADDED
Binary file
|
Binary file
|
Binary file
|
data/doc/images/bug.png
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/doc/images/date.png
ADDED
Binary file
|
Binary file
|
data/doc/images/find.png
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/doc/images/ruby.png
ADDED
Binary file
|
Binary file
|