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.
Files changed (71) hide show
  1. data/README.rdoc +48 -0
  2. data/Rakefile +7 -0
  3. data/bin/sycbackup +6 -0
  4. data/doc/Backup.html +186 -0
  5. data/doc/Backup/CronEdit.html +381 -0
  6. data/doc/Backup/Environment.html +231 -0
  7. data/doc/Backup/FileBackup.html +363 -0
  8. data/doc/Backup/MySQLBackup.html +305 -0
  9. data/doc/Backup/Options.html +328 -0
  10. data/doc/Backup/Process.html +261 -0
  11. data/doc/Backup/Runner.html +244 -0
  12. data/doc/README_rdoc.html +202 -0
  13. data/doc/Rakefile.html +118 -0
  14. data/doc/TestCronEdit.html +211 -0
  15. data/doc/TestEnvironment.html +156 -0
  16. data/doc/TestFileBackup.html +237 -0
  17. data/doc/TestMySQLBackup.html +167 -0
  18. data/doc/TestOptions.html +156 -0
  19. data/doc/TestProcess.html +236 -0
  20. data/doc/created.rid +18 -0
  21. data/doc/images/add.png +0 -0
  22. data/doc/images/brick.png +0 -0
  23. data/doc/images/brick_link.png +0 -0
  24. data/doc/images/bug.png +0 -0
  25. data/doc/images/bullet_black.png +0 -0
  26. data/doc/images/bullet_toggle_minus.png +0 -0
  27. data/doc/images/bullet_toggle_plus.png +0 -0
  28. data/doc/images/date.png +0 -0
  29. data/doc/images/delete.png +0 -0
  30. data/doc/images/find.png +0 -0
  31. data/doc/images/loadingAnimation.gif +0 -0
  32. data/doc/images/macFFBgHack.png +0 -0
  33. data/doc/images/package.png +0 -0
  34. data/doc/images/page_green.png +0 -0
  35. data/doc/images/page_white_text.png +0 -0
  36. data/doc/images/page_white_width.png +0 -0
  37. data/doc/images/plugin.png +0 -0
  38. data/doc/images/ruby.png +0 -0
  39. data/doc/images/tag_blue.png +0 -0
  40. data/doc/images/tag_green.png +0 -0
  41. data/doc/images/transparent.png +0 -0
  42. data/doc/images/wrench.png +0 -0
  43. data/doc/images/wrench_orange.png +0 -0
  44. data/doc/images/zoom.png +0 -0
  45. data/doc/index.html +106 -0
  46. data/doc/js/darkfish.js +153 -0
  47. data/doc/js/jquery.js +18 -0
  48. data/doc/js/navigation.js +142 -0
  49. data/doc/js/search.js +94 -0
  50. data/doc/js/search_index.js +1 -0
  51. data/doc/js/searcher.js +228 -0
  52. data/doc/rdoc.css +543 -0
  53. data/doc/table_of_contents.html +148 -0
  54. data/lib/backup/cron_edit.rb +127 -0
  55. data/lib/backup/environment.rb +44 -0
  56. data/lib/backup/file_backup.rb +94 -0
  57. data/lib/backup/mysql_backup.rb +58 -0
  58. data/lib/backup/options.rb +199 -0
  59. data/lib/backup/process.rb +99 -0
  60. data/lib/backup/runner.rb +79 -0
  61. data/lib/backup_version.rb +9 -0
  62. data/syc-backup-0.0.1.gem +0 -0
  63. data/syc-backup-0.0.3.gem +0 -0
  64. data/sycbackup.gemspec +20 -0
  65. data/test/test_cron_edit.rb +49 -0
  66. data/test/test_environment.rb +22 -0
  67. data/test/test_file_backup.rb +70 -0
  68. data/test/test_mysql_backup.rb +71 -0
  69. data/test/test_options.rb +189 -0
  70. data/test/test_process.rb +40 -0
  71. 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">&quot;file1&quot;</span>, <span class="ruby-string">&quot;file2&quot;</span>, <span class="ruby-string">&quot;file3&quot;</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">&quot;test/backup_p/*&quot;</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
+
@@ -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
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file