RuPac 0.5

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 (68) hide show
  1. data/doc/classes/RuPacRemove.html +127 -0
  2. data/doc/classes/RuPacRemove/PacRemove.html +473 -0
  3. data/doc/classes/RuPacRemove/PacRemove.src/M000008.html +18 -0
  4. data/doc/classes/RuPacRemove/PacRemove.src/M000009.html +24 -0
  5. data/doc/classes/RuPacRemove/PacRemove.src/M000010.html +24 -0
  6. data/doc/classes/RuPacRemove/PacRemove.src/M000011.html +24 -0
  7. data/doc/classes/RuPacRemove/PacRemove.src/M000012.html +24 -0
  8. data/doc/classes/RuPacRemove/PacRemove.src/M000013.html +24 -0
  9. data/doc/classes/RuPacRemove/PacRemove.src/M000014.html +24 -0
  10. data/doc/classes/RuPacRemove/PacRemove.src/M000015.html +24 -0
  11. data/doc/classes/RuPacRemove/PacRemove.src/M000016.html +24 -0
  12. data/doc/classes/RuPacRemove/PacRemove.src/M000017.html +24 -0
  13. data/doc/classes/RuPacRemove/PacRemove.src/M000018.html +24 -0
  14. data/doc/classes/RuPacRemove/PacRemove.src/M000019.html +24 -0
  15. data/doc/classes/RuPacRemove/PacRemove.src/M000020.html +24 -0
  16. data/doc/classes/RuPacRemove/PacRemove.src/M000021.html +24 -0
  17. data/doc/classes/RuPacRemove/PacRemove.src/M000022.html +24 -0
  18. data/doc/classes/RuPacRemove/PacRemove.src/M000023.html +24 -0
  19. data/doc/classes/RuPacSync.html +119 -0
  20. data/doc/classes/RuPacSync/PacSync.html +280 -0
  21. data/doc/classes/RuPacSync/PacSync.src/M000024.html +19 -0
  22. data/doc/classes/RuPacSync/PacSync.src/M000025.html +24 -0
  23. data/doc/classes/RuPacSync/PacSync.src/M000026.html +24 -0
  24. data/doc/classes/RuPacSync/PacSync.src/M000027.html +24 -0
  25. data/doc/classes/RuPacSync/PacSync.src/M000028.html +24 -0
  26. data/doc/classes/RuPacSync/PacSync.src/M000029.html +24 -0
  27. data/doc/classes/RuPacSync/PacSync.src/M000030.html +24 -0
  28. data/doc/classes/Rupac.html +124 -0
  29. data/doc/classes/Rupac/Pacman.html +283 -0
  30. data/doc/classes/Rupac/Pacman.src/M000001.html +19 -0
  31. data/doc/classes/Rupac/Pacman.src/M000002.html +22 -0
  32. data/doc/classes/Rupac/Pacman.src/M000003.html +22 -0
  33. data/doc/classes/Rupac/Pacman.src/M000004.html +21 -0
  34. data/doc/classes/Rupac/Pacman.src/M000005.html +21 -0
  35. data/doc/classes/Rupac/Pacman.src/M000006.html +18 -0
  36. data/doc/classes/Rupac/Pacman.src/M000007.html +45 -0
  37. data/doc/classes/Rupac/Pacman/PacSync.html +254 -0
  38. data/doc/classes/Rupac/Pacman/PacSync.src/M000003.html +18 -0
  39. data/doc/classes/Rupac/Pacman/PacSync.src/M000004.html +25 -0
  40. data/doc/classes/Rupac/Pacman/PacSync.src/M000005.html +24 -0
  41. data/doc/classes/Rupac/Pacman/PacSync.src/M000006.html +25 -0
  42. data/doc/classes/Rupac/Pacman/PacSync.src/M000007.html +24 -0
  43. data/doc/classes/Rupac/Pacman/PacSync.src/M000008.html +24 -0
  44. data/doc/classes/Rupac/Pacman/PacSync.src/M000009.html +24 -0
  45. data/doc/created.rid +1 -0
  46. data/doc/dot/f_0.dot +48 -0
  47. data/doc/dot/f_0.png +0 -0
  48. data/doc/dot/f_1.dot +58 -0
  49. data/doc/dot/f_1.png +0 -0
  50. data/doc/dot/f_2.dot +39 -0
  51. data/doc/dot/f_2.png +0 -0
  52. data/doc/dot/m_0_0.dot +48 -0
  53. data/doc/dot/m_0_0.png +0 -0
  54. data/doc/dot/m_1_0.dot +58 -0
  55. data/doc/dot/m_1_0.png +0 -0
  56. data/doc/dot/m_2_0.dot +39 -0
  57. data/doc/dot/m_2_0.png +0 -0
  58. data/doc/files/rupac_rb.html +119 -0
  59. data/doc/files/rupacremove_rb.html +117 -0
  60. data/doc/files/rupacsync_rb.html +123 -0
  61. data/doc/fr_class_index.html +32 -0
  62. data/doc/fr_file_index.html +29 -0
  63. data/doc/fr_method_index.html +56 -0
  64. data/doc/index.html +24 -0
  65. data/lib/rupac.rb +116 -0
  66. data/lib/rupacremove.rb +206 -0
  67. data/lib/rupacsync.rb +95 -0
  68. metadata +123 -0
@@ -0,0 +1,124 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: RuPac</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">RuPac</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/rupac_rb.html">
59
+ rupac.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+ <div id="diagram">
75
+ <map id="map" name="map">
76
+ <area shape="RECT" coords="27,50,99,98" href="RuPac/Pacman.html" alt="Pacman">
77
+ <area shape="RECT" coords="16,16,136,108" href="RuPac.html" alt="RuPac">
78
+ </map>
79
+ <img src="../dot/m_2_0.png" usemap="#map" border=0 alt="Module: RuPac">
80
+ </div>
81
+
82
+ <div id="description">
83
+ <p>
84
+ The main module
85
+ </p>
86
+
87
+ </div>
88
+
89
+
90
+ </div>
91
+
92
+
93
+ </div>
94
+
95
+
96
+ <!-- if includes -->
97
+
98
+ <div id="section">
99
+
100
+ <div id="class-list">
101
+ <h3 class="section-bar">Classes and Modules</h3>
102
+
103
+ Class <a href="RuPac/Pacman.html" class="link">RuPac::Pacman</a><br />
104
+
105
+ </div>
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+ <!-- if method_list -->
114
+
115
+
116
+ </div>
117
+
118
+
119
+ <div id="validator-badges">
120
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
121
+ </div>
122
+
123
+ </body>
124
+ </html>
@@ -0,0 +1,283 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: RuPac::Pacman</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">RuPac::Pacman</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/rupac_rb.html">
59
+ rupac.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+ <div id="diagram">
81
+ <map id="map" name="map">
82
+ <area shape="RECT" coords="27,50,99,98" href="Pacman.html" alt="Pacman">
83
+ <area shape="RECT" coords="16,16,136,108" href="../RuPac.html" alt="RuPac">
84
+ </map>
85
+ <img src="../../dot/m_2_0.png" usemap="#map" border=0 alt="Module: RuPac">
86
+ </div>
87
+
88
+ <div id="description">
89
+ <p>
90
+ Base class from which any class that calls pacman directly decends from
91
+ </p>
92
+
93
+ </div>
94
+
95
+
96
+ </div>
97
+
98
+ <div id="method-list">
99
+ <h3 class="section-bar">Methods</h3>
100
+
101
+ <div class="name-list">
102
+ <a href="#M000007">exec</a>&nbsp;&nbsp;
103
+ <a href="#M000004">force!</a>&nbsp;&nbsp;
104
+ <a href="#M000002">force?</a>&nbsp;&nbsp;
105
+ <a href="#M000001">new</a>&nbsp;&nbsp;
106
+ <a href="#M000006">to_s</a>&nbsp;&nbsp;
107
+ <a href="#M000005">verbose!</a>&nbsp;&nbsp;
108
+ <a href="#M000003">verbose?</a>&nbsp;&nbsp;
109
+ </div>
110
+ </div>
111
+
112
+ </div>
113
+
114
+
115
+ <!-- if includes -->
116
+
117
+ <div id="section">
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+ <!-- if method_list -->
127
+ <div id="methods">
128
+ <h3 class="section-bar">Public Class methods</h3>
129
+
130
+ <div id="method-M000001" class="method-detail">
131
+ <a name="M000001"></a>
132
+
133
+ <div class="method-heading">
134
+ <a href="Pacman.src/M000001.html" target="Code" class="method-signature"
135
+ onclick="popupCode('Pacman.src/M000001.html');return false;">
136
+ <span class="method-name">new</span><span class="method-args">( rootneeded )</span>
137
+ </a>
138
+ </div>
139
+
140
+ <div class="method-description">
141
+ <p>
142
+ Constructor. Needs rootneeded passed (yes or no)
143
+ </p>
144
+ </div>
145
+ </div>
146
+
147
+ <h3 class="section-bar">Public Instance methods</h3>
148
+
149
+ <div id="method-M000007" class="method-detail">
150
+ <a name="M000007"></a>
151
+
152
+ <div class="method-heading">
153
+ <a href="Pacman.src/M000007.html" target="Code" class="method-signature"
154
+ onclick="popupCode('Pacman.src/M000007.html');return false;">
155
+ <span class="method-name">exec</span><span class="method-args">( finalCommand )</span>
156
+ </a>
157
+ </div>
158
+
159
+ <div class="method-description">
160
+ <p>
161
+ exec Method
162
+ </p>
163
+ <pre>
164
+ Runs the final pacman command assembled by the subclasses
165
+ Returns True if it fired off successfully
166
+ Raises an exception if the command needed root and the UID
167
+ isn't root's
168
+ Raises SystemCallError if the command won't execute
169
+ Raises an exception if the command didn't exit cleanly
170
+ </pre>
171
+ </div>
172
+ </div>
173
+
174
+ <div id="method-M000004" class="method-detail">
175
+ <a name="M000004"></a>
176
+
177
+ <div class="method-heading">
178
+ <a href="Pacman.src/M000004.html" target="Code" class="method-signature"
179
+ onclick="popupCode('Pacman.src/M000004.html');return false;">
180
+ <span class="method-name">force!</span><span class="method-args">()</span>
181
+ </a>
182
+ </div>
183
+
184
+ <div class="method-description">
185
+ <p>
186
+ force! method
187
+ </p>
188
+ <pre>
189
+ Tacks on the -f option to the command
190
+ </pre>
191
+ </div>
192
+ </div>
193
+
194
+ <div id="method-M000002" class="method-detail">
195
+ <a name="M000002"></a>
196
+
197
+ <div class="method-heading">
198
+ <a href="Pacman.src/M000002.html" target="Code" class="method-signature"
199
+ onclick="popupCode('Pacman.src/M000002.html');return false;">
200
+ <span class="method-name">force?</span><span class="method-args">()</span>
201
+ </a>
202
+ </div>
203
+
204
+ <div class="method-description">
205
+ <p>
206
+ force? method
207
+ </p>
208
+ <pre>
209
+ Asks if the Force option is set
210
+ </pre>
211
+ </div>
212
+ </div>
213
+
214
+ <div id="method-M000006" class="method-detail">
215
+ <a name="M000006"></a>
216
+
217
+ <div class="method-heading">
218
+ <a href="Pacman.src/M000006.html" target="Code" class="method-signature"
219
+ onclick="popupCode('Pacman.src/M000006.html');return false;">
220
+ <span class="method-name">to_s</span><span class="method-args">()</span>
221
+ </a>
222
+ </div>
223
+
224
+ <div class="method-description">
225
+ <p>
226
+ Override the <a href="Pacman.html#M000006">to_s</a> method
227
+ </p>
228
+ </div>
229
+ </div>
230
+
231
+ <div id="method-M000005" class="method-detail">
232
+ <a name="M000005"></a>
233
+
234
+ <div class="method-heading">
235
+ <a href="Pacman.src/M000005.html" target="Code" class="method-signature"
236
+ onclick="popupCode('Pacman.src/M000005.html');return false;">
237
+ <span class="method-name">verbose!</span><span class="method-args">()</span>
238
+ </a>
239
+ </div>
240
+
241
+ <div class="method-description">
242
+ <p>
243
+ verbose! method
244
+ </p>
245
+ <pre>
246
+ Tacks on the -v option
247
+ </pre>
248
+ </div>
249
+ </div>
250
+
251
+ <div id="method-M000003" class="method-detail">
252
+ <a name="M000003"></a>
253
+
254
+ <div class="method-heading">
255
+ <a href="Pacman.src/M000003.html" target="Code" class="method-signature"
256
+ onclick="popupCode('Pacman.src/M000003.html');return false;">
257
+ <span class="method-name">verbose?</span><span class="method-args">()</span>
258
+ </a>
259
+ </div>
260
+
261
+ <div class="method-description">
262
+ <p>
263
+ verbose? method
264
+ </p>
265
+ <pre>
266
+ Asks if the Verbose option is set
267
+ </pre>
268
+ </div>
269
+ </div>
270
+
271
+
272
+ </div>
273
+
274
+
275
+ </div>
276
+
277
+
278
+ <div id="validator-badges">
279
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
280
+ </div>
281
+
282
+ </body>
283
+ </html>
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>new (RuPac::Pacman)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre> <span class="ruby-comment cmt"># File rupac.rb, line 24</span>
14
+ 24: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>( <span class="ruby-identifier">rootneeded</span> )
15
+ 25: <span class="ruby-ivar">@rootneeded</span> = <span class="ruby-identifier">rootneeded</span>
16
+ 26: <span class="ruby-ivar">@command</span> = <span class="ruby-value str">&quot;pacman -&quot;</span>
17
+ 27: <span class="ruby-keyword kw">end</span></pre>
18
+ </body>
19
+ </html>
@@ -0,0 +1,22 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>force? (RuPac::Pacman)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre> <span class="ruby-comment cmt"># File rupac.rb, line 31</span>
14
+ 31: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">force?</span>
15
+ 32: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@@force</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;yes&quot;</span>
16
+ 33: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
17
+ 34: <span class="ruby-keyword kw">else</span>
18
+ 35: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
19
+ 36: <span class="ruby-keyword kw">end</span>
20
+ 37: <span class="ruby-keyword kw">end</span></pre>
21
+ </body>
22
+ </html>