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.
- data/doc/classes/RuPacRemove.html +127 -0
- data/doc/classes/RuPacRemove/PacRemove.html +473 -0
- data/doc/classes/RuPacRemove/PacRemove.src/M000008.html +18 -0
- data/doc/classes/RuPacRemove/PacRemove.src/M000009.html +24 -0
- data/doc/classes/RuPacRemove/PacRemove.src/M000010.html +24 -0
- data/doc/classes/RuPacRemove/PacRemove.src/M000011.html +24 -0
- data/doc/classes/RuPacRemove/PacRemove.src/M000012.html +24 -0
- data/doc/classes/RuPacRemove/PacRemove.src/M000013.html +24 -0
- data/doc/classes/RuPacRemove/PacRemove.src/M000014.html +24 -0
- data/doc/classes/RuPacRemove/PacRemove.src/M000015.html +24 -0
- data/doc/classes/RuPacRemove/PacRemove.src/M000016.html +24 -0
- data/doc/classes/RuPacRemove/PacRemove.src/M000017.html +24 -0
- data/doc/classes/RuPacRemove/PacRemove.src/M000018.html +24 -0
- data/doc/classes/RuPacRemove/PacRemove.src/M000019.html +24 -0
- data/doc/classes/RuPacRemove/PacRemove.src/M000020.html +24 -0
- data/doc/classes/RuPacRemove/PacRemove.src/M000021.html +24 -0
- data/doc/classes/RuPacRemove/PacRemove.src/M000022.html +24 -0
- data/doc/classes/RuPacRemove/PacRemove.src/M000023.html +24 -0
- data/doc/classes/RuPacSync.html +119 -0
- data/doc/classes/RuPacSync/PacSync.html +280 -0
- data/doc/classes/RuPacSync/PacSync.src/M000024.html +19 -0
- data/doc/classes/RuPacSync/PacSync.src/M000025.html +24 -0
- data/doc/classes/RuPacSync/PacSync.src/M000026.html +24 -0
- data/doc/classes/RuPacSync/PacSync.src/M000027.html +24 -0
- data/doc/classes/RuPacSync/PacSync.src/M000028.html +24 -0
- data/doc/classes/RuPacSync/PacSync.src/M000029.html +24 -0
- data/doc/classes/RuPacSync/PacSync.src/M000030.html +24 -0
- data/doc/classes/Rupac.html +124 -0
- data/doc/classes/Rupac/Pacman.html +283 -0
- data/doc/classes/Rupac/Pacman.src/M000001.html +19 -0
- data/doc/classes/Rupac/Pacman.src/M000002.html +22 -0
- data/doc/classes/Rupac/Pacman.src/M000003.html +22 -0
- data/doc/classes/Rupac/Pacman.src/M000004.html +21 -0
- data/doc/classes/Rupac/Pacman.src/M000005.html +21 -0
- data/doc/classes/Rupac/Pacman.src/M000006.html +18 -0
- data/doc/classes/Rupac/Pacman.src/M000007.html +45 -0
- data/doc/classes/Rupac/Pacman/PacSync.html +254 -0
- data/doc/classes/Rupac/Pacman/PacSync.src/M000003.html +18 -0
- data/doc/classes/Rupac/Pacman/PacSync.src/M000004.html +25 -0
- data/doc/classes/Rupac/Pacman/PacSync.src/M000005.html +24 -0
- data/doc/classes/Rupac/Pacman/PacSync.src/M000006.html +25 -0
- data/doc/classes/Rupac/Pacman/PacSync.src/M000007.html +24 -0
- data/doc/classes/Rupac/Pacman/PacSync.src/M000008.html +24 -0
- data/doc/classes/Rupac/Pacman/PacSync.src/M000009.html +24 -0
- data/doc/created.rid +1 -0
- data/doc/dot/f_0.dot +48 -0
- data/doc/dot/f_0.png +0 -0
- data/doc/dot/f_1.dot +58 -0
- data/doc/dot/f_1.png +0 -0
- data/doc/dot/f_2.dot +39 -0
- data/doc/dot/f_2.png +0 -0
- data/doc/dot/m_0_0.dot +48 -0
- data/doc/dot/m_0_0.png +0 -0
- data/doc/dot/m_1_0.dot +58 -0
- data/doc/dot/m_1_0.png +0 -0
- data/doc/dot/m_2_0.dot +39 -0
- data/doc/dot/m_2_0.png +0 -0
- data/doc/files/rupac_rb.html +119 -0
- data/doc/files/rupacremove_rb.html +117 -0
- data/doc/files/rupacsync_rb.html +123 -0
- data/doc/fr_class_index.html +32 -0
- data/doc/fr_file_index.html +29 -0
- data/doc/fr_method_index.html +56 -0
- data/doc/index.html +24 -0
- data/lib/rupac.rb +116 -0
- data/lib/rupacremove.rb +206 -0
- data/lib/rupacsync.rb +95 -0
- metadata +123 -0
@@ -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>verbose? (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 42</span>
|
14
|
+
42: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">verbose?</span>
|
15
|
+
43: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@@verbose</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"yes"</span>
|
16
|
+
44: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
|
17
|
+
45: <span class="ruby-keyword kw">else</span>
|
18
|
+
46: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
|
19
|
+
47: <span class="ruby-keyword kw">end</span>
|
20
|
+
48: <span class="ruby-keyword kw">end</span></pre>
|
21
|
+
</body>
|
22
|
+
</html>
|
@@ -0,0 +1,21 @@
|
|
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 53</span>
|
14
|
+
53: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">force!</span>
|
15
|
+
54: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@@force</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"no"</span>
|
16
|
+
55: <span class="ruby-ivar">@@force</span> = <span class="ruby-value str">"yes"</span>
|
17
|
+
56: <span class="ruby-ivar">@command</span> = <span class="ruby-node">"#{@command}f"</span>
|
18
|
+
57: <span class="ruby-keyword kw">end</span>
|
19
|
+
58: <span class="ruby-keyword kw">end</span></pre>
|
20
|
+
</body>
|
21
|
+
</html>
|
@@ -0,0 +1,21 @@
|
|
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>verbose! (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 64</span>
|
14
|
+
64: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">verbose!</span>
|
15
|
+
65: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@@verbose</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"no"</span>
|
16
|
+
66: <span class="ruby-ivar">@command</span> = <span class="ruby-node">"#{@command}v"</span>
|
17
|
+
67: <span class="ruby-ivar">@@verbose</span> = <span class="ruby-value str">"yes"</span>
|
18
|
+
68: <span class="ruby-keyword kw">end</span>
|
19
|
+
69: <span class="ruby-keyword kw">end</span></pre>
|
20
|
+
</body>
|
21
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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>to_s (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 72</span>
|
14
|
+
72: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
15
|
+
73: <span class="ruby-value str">"Command: #@command, Lock: #@@lock, Verbose: #@@verbose, Nodeps #@@nodeps, RootNeeded #@rootneeded"</span>
|
16
|
+
74: <span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,45 @@
|
|
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>exec (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 83</span>
|
14
|
+
83: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exec</span>( <span class="ruby-identifier">finalCommand</span> )
|
15
|
+
84: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@rootneeded</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"yes"</span>
|
16
|
+
85: <span class="ruby-comment cmt">## Check for root's UID</span>
|
17
|
+
86: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">Process</span>.<span class="ruby-identifier">uid</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
18
|
+
87:
|
19
|
+
88: <span class="ruby-ivar">@output</span> = <span class="ruby-node">`#{finalCommand}`</span>
|
20
|
+
89:
|
21
|
+
90: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$?</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
22
|
+
91: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
|
23
|
+
92: <span class="ruby-keyword kw">else</span>
|
24
|
+
93: <span class="ruby-identifier">raise</span> <span class="ruby-node">"#{finalCommand} failed
|
25
|
+
94: with error code #{$?}"</span>
|
26
|
+
95: <span class="ruby-keyword kw">end</span>
|
27
|
+
96: <span class="ruby-keyword kw">else</span>
|
28
|
+
97: <span class="ruby-identifier">raise</span> <span class="ruby-value str">"Must be root!"</span>
|
29
|
+
98: <span class="ruby-keyword kw">end</span>
|
30
|
+
99: <span class="ruby-keyword kw">elsif</span> <span class="ruby-ivar">@rootneeded</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"no"</span>
|
31
|
+
100:
|
32
|
+
101: <span class="ruby-ivar">@output</span> = <span class="ruby-node">`#{finalCommand}`</span>
|
33
|
+
102:
|
34
|
+
103: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$?</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
|
35
|
+
104: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
|
36
|
+
105: <span class="ruby-keyword kw">else</span>
|
37
|
+
106: <span class="ruby-identifier">raise</span> <span class="ruby-node">"#{finalCommand} failed with error
|
38
|
+
107: code #{$?}"</span>
|
39
|
+
108: <span class="ruby-keyword kw">end</span>
|
40
|
+
109: <span class="ruby-keyword kw">end</span>
|
41
|
+
110:
|
42
|
+
111:
|
43
|
+
112: <span class="ruby-keyword kw">end</span></pre>
|
44
|
+
</body>
|
45
|
+
</html>
|
@@ -0,0 +1,254 @@
|
|
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::PacSync</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::PacSync</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
|
+
Pacman
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
<div id="description">
|
82
|
+
<p>
|
83
|
+
<a href="PacSync.html">PacSync</a> Class. Handles all -S options except
|
84
|
+
-Ss, -Sg, and -Si
|
85
|
+
</p>
|
86
|
+
|
87
|
+
</div>
|
88
|
+
|
89
|
+
|
90
|
+
</div>
|
91
|
+
|
92
|
+
<div id="method-list">
|
93
|
+
<h3 class="section-bar">Methods</h3>
|
94
|
+
|
95
|
+
<div class="name-list">
|
96
|
+
<a href="#M000008">allClean</a>
|
97
|
+
<a href="#M000009">downOnly</a>
|
98
|
+
<a href="#M000006">install</a>
|
99
|
+
<a href="#M000003">new</a>
|
100
|
+
<a href="#M000007">oldClean</a>
|
101
|
+
<a href="#M000004">sync</a>
|
102
|
+
<a href="#M000005">sysUpgrade</a>
|
103
|
+
</div>
|
104
|
+
</div>
|
105
|
+
|
106
|
+
</div>
|
107
|
+
|
108
|
+
|
109
|
+
<!-- if includes -->
|
110
|
+
|
111
|
+
<div id="section">
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
<!-- if method_list -->
|
121
|
+
<div id="methods">
|
122
|
+
<h3 class="section-bar">Public Class methods</h3>
|
123
|
+
|
124
|
+
<div id="method-M000003" class="method-detail">
|
125
|
+
<a name="M000003"></a>
|
126
|
+
|
127
|
+
<div class="method-heading">
|
128
|
+
<a href="PacSync.src/M000003.html" target="Code" class="method-signature"
|
129
|
+
onclick="popupCode('PacSync.src/M000003.html');return false;">
|
130
|
+
<span class="method-name">new</span><span class="method-args">()</span>
|
131
|
+
</a>
|
132
|
+
</div>
|
133
|
+
|
134
|
+
<div class="method-description">
|
135
|
+
</div>
|
136
|
+
</div>
|
137
|
+
|
138
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
139
|
+
|
140
|
+
<div id="method-M000008" class="method-detail">
|
141
|
+
<a name="M000008"></a>
|
142
|
+
|
143
|
+
<div class="method-heading">
|
144
|
+
<a href="PacSync.src/M000008.html" target="Code" class="method-signature"
|
145
|
+
onclick="popupCode('PacSync.src/M000008.html');return false;">
|
146
|
+
<span class="method-name">allClean</span><span class="method-args">()</span>
|
147
|
+
</a>
|
148
|
+
</div>
|
149
|
+
|
150
|
+
<div class="method-description">
|
151
|
+
<p>
|
152
|
+
Represents -Scc Raises an exception if @@lock is already yes
|
153
|
+
</p>
|
154
|
+
</div>
|
155
|
+
</div>
|
156
|
+
|
157
|
+
<div id="method-M000009" class="method-detail">
|
158
|
+
<a name="M000009"></a>
|
159
|
+
|
160
|
+
<div class="method-heading">
|
161
|
+
<a href="PacSync.src/M000009.html" target="Code" class="method-signature"
|
162
|
+
onclick="popupCode('PacSync.src/M000009.html');return false;">
|
163
|
+
<span class="method-name">downOnly</span><span class="method-args">( *packs )</span>
|
164
|
+
</a>
|
165
|
+
</div>
|
166
|
+
|
167
|
+
<div class="method-description">
|
168
|
+
<p>
|
169
|
+
Represents -Sw Raises an exception if @@lock is already yes
|
170
|
+
</p>
|
171
|
+
</div>
|
172
|
+
</div>
|
173
|
+
|
174
|
+
<div id="method-M000006" class="method-detail">
|
175
|
+
<a name="M000006"></a>
|
176
|
+
|
177
|
+
<div class="method-heading">
|
178
|
+
<a href="PacSync.src/M000006.html" target="Code" class="method-signature"
|
179
|
+
onclick="popupCode('PacSync.src/M000006.html');return false;">
|
180
|
+
<span class="method-name">install</span><span class="method-args">( *packs )</span>
|
181
|
+
</a>
|
182
|
+
</div>
|
183
|
+
|
184
|
+
<div class="method-description">
|
185
|
+
<p>
|
186
|
+
Represents -S foo bar etc Raises an exception if @@lock is already yes
|
187
|
+
</p>
|
188
|
+
</div>
|
189
|
+
</div>
|
190
|
+
|
191
|
+
<div id="method-M000007" class="method-detail">
|
192
|
+
<a name="M000007"></a>
|
193
|
+
|
194
|
+
<div class="method-heading">
|
195
|
+
<a href="PacSync.src/M000007.html" target="Code" class="method-signature"
|
196
|
+
onclick="popupCode('PacSync.src/M000007.html');return false;">
|
197
|
+
<span class="method-name">oldClean</span><span class="method-args">()</span>
|
198
|
+
</a>
|
199
|
+
</div>
|
200
|
+
|
201
|
+
<div class="method-description">
|
202
|
+
<p>
|
203
|
+
Represents -Sc Raises an exception if @@lock is already yes
|
204
|
+
</p>
|
205
|
+
</div>
|
206
|
+
</div>
|
207
|
+
|
208
|
+
<div id="method-M000004" class="method-detail">
|
209
|
+
<a name="M000004"></a>
|
210
|
+
|
211
|
+
<div class="method-heading">
|
212
|
+
<a href="PacSync.src/M000004.html" target="Code" class="method-signature"
|
213
|
+
onclick="popupCode('PacSync.src/M000004.html');return false;">
|
214
|
+
<span class="method-name">sync</span><span class="method-args">()</span>
|
215
|
+
</a>
|
216
|
+
</div>
|
217
|
+
|
218
|
+
<div class="method-description">
|
219
|
+
<p>
|
220
|
+
Represents -Sy Raises an exception if @@lock is already yes
|
221
|
+
</p>
|
222
|
+
</div>
|
223
|
+
</div>
|
224
|
+
|
225
|
+
<div id="method-M000005" class="method-detail">
|
226
|
+
<a name="M000005"></a>
|
227
|
+
|
228
|
+
<div class="method-heading">
|
229
|
+
<a href="PacSync.src/M000005.html" target="Code" class="method-signature"
|
230
|
+
onclick="popupCode('PacSync.src/M000005.html');return false;">
|
231
|
+
<span class="method-name">sysUpgrade</span><span class="method-args">()</span>
|
232
|
+
</a>
|
233
|
+
</div>
|
234
|
+
|
235
|
+
<div class="method-description">
|
236
|
+
<p>
|
237
|
+
Represents -Suy or -Syu Raises an exception if @@lock is already yes
|
238
|
+
</p>
|
239
|
+
</div>
|
240
|
+
</div>
|
241
|
+
|
242
|
+
|
243
|
+
</div>
|
244
|
+
|
245
|
+
|
246
|
+
</div>
|
247
|
+
|
248
|
+
|
249
|
+
<div id="validator-badges">
|
250
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
251
|
+
</div>
|
252
|
+
|
253
|
+
</body>
|
254
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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::PacSync)</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 59</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
15
|
+
<span class="ruby-keyword kw">super</span>( <span class="ruby-value str">"yes"</span> )
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
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>sync (Rupac::Pacman::PacSync)</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 65</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sync</span>
|
15
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@@lock</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"no"</span>
|
16
|
+
<span class="ruby-ivar">@@lock</span> = <span class="ruby-value str">"yes"</span>
|
17
|
+
<span class="ruby-identifier">exec</span>( <span class="ruby-node">"#{@command}y"</span> )
|
18
|
+
<span class="ruby-ivar">@@lock</span> = <span class="ruby-value str">"no"</span>
|
19
|
+
<span class="ruby-keyword kw">else</span>
|
20
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-value str">"Already another instance of pacman
|
21
|
+
going!"</span>
|
22
|
+
<span class="ruby-keyword kw">end</span>
|
23
|
+
<span class="ruby-keyword kw">end</span></pre>
|
24
|
+
</body>
|
25
|
+
</html>
|
@@ -0,0 +1,24 @@
|
|
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>sysUpgrade (Rupac::Pacman::PacSync)</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 78</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sysUpgrade</span>
|
15
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@@lock</span> <span class="ruby-operator">==</span> <span class="ruby-value str">"no"</span>
|
16
|
+
<span class="ruby-ivar">@@lock</span> = <span class="ruby-value str">"yes"</span>
|
17
|
+
<span class="ruby-identifier">exec</span>( <span class="ruby-node">"#{@command}yu"</span> )
|
18
|
+
<span class="ruby-ivar">@@lock</span> = <span class="ruby-value str">"no"</span>
|
19
|
+
<span class="ruby-keyword kw">else</span>
|
20
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-value str">"Already another instance of pacman going!"</span>
|
21
|
+
<span class="ruby-keyword kw">end</span>
|
22
|
+
<span class="ruby-keyword kw">end</span></pre>
|
23
|
+
</body>
|
24
|
+
</html>
|