reap 0.5.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ANN-0.6.1 +3 -0
- data/Rakefile +19 -0
- data/Reapfile +46 -33
- data/data/site_ruby/reap/template.yaml +94 -0
- data/lib/reap/announce-task.rb +159 -0
- data/lib/reap/chmod-task.rb +82 -0
- data/lib/reap/package-task.rb +165 -0
- data/lib/reap/publish-task.rb +53 -0
- data/lib/reap/rdoc-task.rb +70 -0
- data/lib/reap/reap-all.rb +15 -0
- data/lib/reap/task.rb +177 -118
- data/lib/reap/template-task.rb +40 -0
- data/lib/reap/test-task.rb +159 -0
- data/pub/www/Reapfile +99 -0
- data/pub/www/images/appleboy.jpg +0 -0
- data/pub/www/index.html +49 -5
- data/{doc/files/LICENSE.html → pub/www/rdoc/classes/Reap.html} +32 -33
- data/pub/www/rdoc/classes/Reap/AnnounceTask.html +154 -0
- data/pub/www/rdoc/classes/Reap/AnnounceTask.src/M000031.html +111 -0
- data/pub/www/rdoc/classes/Reap/AnnounceTask.src/M000032.html +46 -0
- data/pub/www/rdoc/classes/Reap/ChmodTask.html +220 -0
- data/pub/www/rdoc/classes/Reap/ChmodTask.src/M000015.html +21 -0
- data/pub/www/rdoc/classes/Reap/ChmodTask.src/M000016.html +21 -0
- data/pub/www/rdoc/classes/Reap/ChmodTask.src/M000017.html +42 -0
- data/pub/www/rdoc/classes/Reap/ChmodTask.src/M000018.html +26 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.html +181 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.src/M000001.html +49 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.src/M000002.html +74 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.src/M000003.html +51 -0
- data/pub/www/rdoc/classes/Reap/PublishTask.html +160 -0
- data/pub/www/rdoc/classes/Reap/PublishTask.src/M000019.html +24 -0
- data/pub/www/rdoc/classes/Reap/PublishTask.src/M000020.html +38 -0
- data/pub/www/rdoc/classes/Reap/RDocTask.html +220 -0
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000004.html +24 -0
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000005.html +21 -0
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000006.html +53 -0
- data/pub/www/rdoc/classes/Reap/Task.html +319 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000024.html +21 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000025.html +18 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000026.html +18 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000027.html +28 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000028.html +16 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000029.html +18 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000030.html +19 -0
- data/pub/www/rdoc/classes/Reap/TemplateTask.html +182 -0
- data/pub/www/rdoc/classes/Reap/TemplateTask.src/M000021.html +18 -0
- data/pub/www/rdoc/classes/Reap/TemplateTask.src/M000022.html +21 -0
- data/pub/www/rdoc/classes/Reap/TemplateTask.src/M000023.html +34 -0
- data/pub/www/rdoc/classes/Reap/TestTask.html +228 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000007.html +25 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000008.html +21 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000009.html +77 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000010.html +27 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000011.html +36 -0
- data/{doc → pub/www/rdoc}/classes/Reap/TestTask/TestResults.html +23 -55
- data/pub/www/rdoc/classes/Reap/TestTask/TestResults.src/M000012.html +21 -0
- data/pub/www/rdoc/classes/Reap/TestTask/TestResults.src/M000013.html +21 -0
- data/pub/www/rdoc/classes/Reap/TestTask/TestResults.src/M000014.html +23 -0
- data/pub/www/rdoc/created.rid +1 -0
- data/{doc/files/lib/reap/tasks → pub/www/rdoc/files/lib/reap2}/announce-task_rb.html +3 -3
- data/{doc/files/lib/reap/task_rb.html → pub/www/rdoc/files/lib/reap2/chmod-task_rb.html} +5 -5
- data/pub/www/{doc/files/lib/reap/tasks → rdoc/files/lib/reap2}/package-task_rb.html +3 -3
- data/pub/www/{doc/files/lib/reap/template_rb.html → rdoc/files/lib/reap2/publish-task_rb.html} +10 -4
- data/pub/www/{doc/files/lib/reap/task_rb.html → rdoc/files/lib/reap2/rdoc-task_rb.html} +5 -5
- data/pub/www/{doc/files/lib/reap/reap_rb.html → rdoc/files/lib/reap2/reap-all_rb.html} +7 -7
- data/{doc/files/lib/reap/runner_rb.html → pub/www/rdoc/files/lib/reap2/task_rb.html} +7 -8
- data/pub/www/{doc/files/lib/reap/tasks → rdoc/files/lib/reap2}/template-task_rb.html +4 -4
- data/{doc/files/lib/reap/tasks → pub/www/rdoc/files/lib/reap2}/test-task_rb.html +10 -4
- data/{doc → pub/www/rdoc}/fr_class_index.html +0 -1
- data/pub/www/rdoc/fr_file_index.html +35 -0
- data/pub/www/rdoc/fr_method_index.html +58 -0
- data/{doc → pub/www/rdoc}/index.html +1 -1
- data/{doc → pub/www/rdoc}/rdoc-style.css +0 -0
- data/test/tc_reap.rb +11 -0
- metadata +98 -112
- data/bin/reap +0 -103
- data/doc/classes/Reap.html +0 -184
- data/doc/classes/Reap/AnnounceTask.html +0 -339
- data/doc/classes/Reap/ChmodTask.html +0 -277
- data/doc/classes/Reap/PackageTask.html +0 -374
- data/doc/classes/Reap/PublishTask.html +0 -237
- data/doc/classes/Reap/RDocTask.html +0 -254
- data/doc/classes/Reap/Runner.html +0 -299
- data/doc/classes/Reap/Task.html +0 -438
- data/doc/classes/Reap/TemplateTask.html +0 -226
- data/doc/classes/Reap/TestTask.html +0 -354
- data/doc/created.rid +0 -1
- data/doc/files/README.html +0 -194
- data/doc/files/lib/reap/reap_rb.html +0 -111
- data/doc/files/lib/reap/tasks/chmod-task_rb.html +0 -101
- data/doc/files/lib/reap/tasks/package-task_rb.html +0 -108
- data/doc/files/lib/reap/tasks/publish-task_rb.html +0 -101
- data/doc/files/lib/reap/tasks/rdoc-task_rb.html +0 -101
- data/doc/files/lib/reap/tasks/template-task_rb.html +0 -109
- data/doc/fr_file_index.html +0 -38
- data/doc/fr_method_index.html +0 -73
- data/lib/reap/reap.rb +0 -13
- data/lib/reap/runner.rb +0 -90
- data/lib/reap/tasks/announce-task.rb +0 -149
- data/lib/reap/tasks/chmod-task.rb +0 -69
- data/lib/reap/tasks/package-task.rb +0 -157
- data/lib/reap/tasks/publish-task.rb +0 -39
- data/lib/reap/tasks/rdoc-task.rb +0 -55
- data/lib/reap/tasks/template-task.rb +0 -39
- data/lib/reap/tasks/test-task.rb +0 -140
- data/pub/www/doc/classes/Reap.html +0 -184
- data/pub/www/doc/classes/Reap/AnnounceTask.html +0 -331
- data/pub/www/doc/classes/Reap/ChmodTask.html +0 -278
- data/pub/www/doc/classes/Reap/PackageTask.html +0 -372
- data/pub/www/doc/classes/Reap/PublishTask.html +0 -231
- data/pub/www/doc/classes/Reap/RDocTask.html +0 -254
- data/pub/www/doc/classes/Reap/Runner.html +0 -307
- data/pub/www/doc/classes/Reap/Task.html +0 -390
- data/pub/www/doc/classes/Reap/TemplateTask.html +0 -233
- data/pub/www/doc/classes/Reap/TestTask.html +0 -242
- data/pub/www/doc/created.rid +0 -1
- data/pub/www/doc/files/LICENSE.html +0 -119
- data/pub/www/doc/files/README.html +0 -194
- data/pub/www/doc/files/lib/reap/runner_rb.html +0 -113
- data/pub/www/doc/files/lib/reap/tasks/announce-task_rb.html +0 -113
- data/pub/www/doc/files/lib/reap/tasks/chmod-task_rb.html +0 -101
- data/pub/www/doc/files/lib/reap/tasks/publish-task_rb.html +0 -101
- data/pub/www/doc/files/lib/reap/tasks/rdoc-task_rb.html +0 -101
- data/pub/www/doc/files/lib/reap/tasks/test-task_rb.html +0 -101
- data/pub/www/doc/fr_class_index.html +0 -36
- data/pub/www/doc/fr_file_index.html +0 -39
- data/pub/www/doc/fr_method_index.html +0 -69
- data/pub/www/doc/index.html +0 -24
- data/pub/www/doc/rdoc-style.css +0 -208
- data/test/tc_require.rb +0 -11
@@ -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>init (Reap::ChmodTask)</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 lib/reap2/chmod-task.rb, line 13</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init</span>
|
15
|
+
<span class="ruby-ivar">@user</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'user'</span>]
|
16
|
+
<span class="ruby-ivar">@group</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'group'</span>]
|
17
|
+
<span class="ruby-ivar">@filemod</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'filemod'</span>]
|
18
|
+
<span class="ruby-ivar">@dirmod</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'dirmod'</span>]
|
19
|
+
<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>define (Reap::ChmodTask)</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 lib/reap2/chmod-task.rb, line 20</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">define</span>
|
15
|
+
<span class="ruby-identifier">desc</span> <span class="ruby-value str">"Normalize permissions of package files."</span>
|
16
|
+
<span class="ruby-identifier">task</span> <span class="ruby-identifier">:chmod</span> <span class="ruby-keyword kw">do</span>
|
17
|
+
<span class="ruby-identifier">run_chmod</span>
|
18
|
+
<span class="ruby-keyword kw">end</span>
|
19
|
+
<span class="ruby-keyword kw">end</span></pre>
|
20
|
+
</body>
|
21
|
+
</html>
|
@@ -0,0 +1,42 @@
|
|
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>run_chmod (Reap::ChmodTask)</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 lib/reap2/chmod-task.rb, line 29</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_chmod</span>
|
15
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-value str">"Reap is shelling out work to chmod..."</span>
|
16
|
+
|
17
|
+
<span class="ruby-comment cmt"># misc</span>
|
18
|
+
<span class="ruby-identifier">misc</span> = <span class="ruby-constant">FileList</span>.<span class="ruby-identifier">new</span>
|
19
|
+
<span class="ruby-identifier">misc</span>.<span class="ruby-identifier">include</span>(<span class="ruby-value str">'[A-Z]*'</span>)
|
20
|
+
<span class="ruby-identifier">misc</span>.<span class="ruby-identifier">exclude</span>(<span class="ruby-value str">'InstalledFiles'</span>)
|
21
|
+
<span class="ruby-identifier">chmod</span>( <span class="ruby-identifier">misc</span> ) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">misc</span>.<span class="ruby-identifier">empty?</span>
|
22
|
+
|
23
|
+
<span class="ruby-comment cmt"># lib</span>
|
24
|
+
<span class="ruby-identifier">libs</span> = <span class="ruby-constant">FileList</span>.<span class="ruby-identifier">new</span>
|
25
|
+
<span class="ruby-identifier">libs</span>.<span class="ruby-identifier">include</span>(<span class="ruby-value str">'lib/**/*'</span>)
|
26
|
+
<span class="ruby-identifier">libs</span>.<span class="ruby-identifier">exclude</span>(<span class="ruby-value str">'lib/CVS/**/*'</span>)
|
27
|
+
<span class="ruby-identifier">libs</span>.<span class="ruby-identifier">include</span>(<span class="ruby-value str">'packages/*/lib/**/*'</span>)
|
28
|
+
<span class="ruby-identifier">libs</span>.<span class="ruby-identifier">exclude</span>(<span class="ruby-value str">'packages/*/lib/CVS/**/*'</span>)
|
29
|
+
<span class="ruby-identifier">libs</span>.<span class="ruby-identifier">exclude</span>(<span class="ruby-value str">'packages/CVS/**/*'</span>)
|
30
|
+
<span class="ruby-identifier">chmod</span>( <span class="ruby-identifier">libs</span> ) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">libs</span>.<span class="ruby-identifier">empty?</span>
|
31
|
+
|
32
|
+
<span class="ruby-comment cmt"># bin</span>
|
33
|
+
<span class="ruby-identifier">bins</span> = <span class="ruby-constant">FileList</span>.<span class="ruby-identifier">new</span>
|
34
|
+
<span class="ruby-identifier">bins</span>.<span class="ruby-identifier">include</span>(<span class="ruby-value str">'bin/**/*'</span>)
|
35
|
+
<span class="ruby-identifier">bins</span>.<span class="ruby-identifier">exclude</span>(<span class="ruby-value str">'bin/CVS/**/*'</span>)
|
36
|
+
<span class="ruby-identifier">bins</span>.<span class="ruby-identifier">include</span>(<span class="ruby-value str">'packages/*/bin/**/*'</span>)
|
37
|
+
<span class="ruby-identifier">bins</span>.<span class="ruby-identifier">exclude</span>(<span class="ruby-value str">'packages/*/bin/CVS/**/*'</span>)
|
38
|
+
<span class="ruby-identifier">bins</span>.<span class="ruby-identifier">exclude</span>(<span class="ruby-value str">'packages/CVS/**/*'</span>)
|
39
|
+
<span class="ruby-identifier">chmod</span>( <span class="ruby-identifier">bins</span>, <span class="ruby-value">755</span> ) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">bins</span>.<span class="ruby-identifier">empty?</span>
|
40
|
+
<span class="ruby-keyword kw">end</span></pre>
|
41
|
+
</body>
|
42
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
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>chmod (Reap::ChmodTask)</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 lib/reap2/chmod-task.rb, line 59</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chmod</span>( <span class="ruby-identifier">file_list</span>, <span class="ruby-identifier">file_mode</span>=<span class="ruby-value">644</span>, <span class="ruby-identifier">dir_mode</span>=<span class="ruby-value">755</span> )
|
15
|
+
<span class="ruby-identifier">dirs</span>, <span class="ruby-identifier">files</span> = <span class="ruby-identifier">file_list</span>.<span class="ruby-identifier">partition</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">l</span><span class="ruby-operator">|</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-identifier">l</span>) }
|
16
|
+
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">files</span>.<span class="ruby-identifier">empty?</span>
|
17
|
+
<span class="ruby-identifier">fstr</span> = <span class="ruby-value str">'"'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">files</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">'" "'</span>) <span class="ruby-operator">+</span> <span class="ruby-value str">'"'</span>
|
18
|
+
<span class="ruby-identifier">sh</span> <span class="ruby-node">%{chmod #{file_mode} #{fstr}}</span>
|
19
|
+
<span class="ruby-keyword kw">end</span>
|
20
|
+
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">dirs</span>.<span class="ruby-identifier">empty?</span>
|
21
|
+
<span class="ruby-identifier">fstr</span> = <span class="ruby-value str">'"'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">dirs</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">'" "'</span>) <span class="ruby-operator">+</span> <span class="ruby-value str">'"'</span>
|
22
|
+
<span class="ruby-identifier">sh</span> <span class="ruby-node">%{chmod #{dir_mode} #{fstr}}</span>
|
23
|
+
<span class="ruby-keyword kw">end</span>
|
24
|
+
<span class="ruby-keyword kw">end</span></pre>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,181 @@
|
|
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: Reap::PackageTask</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">Reap::PackageTask</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/lib/reap2/package-task_rb.html">
|
59
|
+
lib/reap2/package-task.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
|
+
<a href="Task.html">
|
69
|
+
Reap::Task
|
70
|
+
</a>
|
71
|
+
</td>
|
72
|
+
</tr>
|
73
|
+
</table>
|
74
|
+
</div>
|
75
|
+
<!-- banner header -->
|
76
|
+
|
77
|
+
<div id="bodyContent">
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<div id="contextContent">
|
82
|
+
|
83
|
+
<div id="description">
|
84
|
+
<p>
|
85
|
+
Package <a href="Task.html">Task</a>
|
86
|
+
</p>
|
87
|
+
<p>
|
88
|
+
This task allows on to create standard .zip, .tgz, or .tbz packages, plus
|
89
|
+
create gem distributions.
|
90
|
+
</p>
|
91
|
+
|
92
|
+
</div>
|
93
|
+
|
94
|
+
|
95
|
+
</div>
|
96
|
+
|
97
|
+
<div id="method-list">
|
98
|
+
<h3 class="section-bar">Methods</h3>
|
99
|
+
|
100
|
+
<div class="name-list">
|
101
|
+
<a href="#M000002">run</a>
|
102
|
+
<a href="#M000003">run_gem</a>
|
103
|
+
<a href="#M000001">setup</a>
|
104
|
+
</div>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
</div>
|
108
|
+
|
109
|
+
|
110
|
+
<!-- if includes -->
|
111
|
+
|
112
|
+
<div id="section">
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
<!-- if method_list -->
|
122
|
+
<div id="methods">
|
123
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
124
|
+
|
125
|
+
<div id="method-M000002" class="method-detail">
|
126
|
+
<a name="M000002"></a>
|
127
|
+
|
128
|
+
<div class="method-heading">
|
129
|
+
<a href="PackageTask.src/M000002.html" target="Code" class="method-signature"
|
130
|
+
onclick="popupCode('PackageTask.src/M000002.html');return false;">
|
131
|
+
<span class="method-name">run</span><span class="method-args">()</span>
|
132
|
+
</a>
|
133
|
+
</div>
|
134
|
+
|
135
|
+
<div class="method-description">
|
136
|
+
</div>
|
137
|
+
</div>
|
138
|
+
|
139
|
+
<div id="method-M000001" class="method-detail">
|
140
|
+
<a name="M000001"></a>
|
141
|
+
|
142
|
+
<div class="method-heading">
|
143
|
+
<a href="PackageTask.src/M000001.html" target="Code" class="method-signature"
|
144
|
+
onclick="popupCode('PackageTask.src/M000001.html');return false;">
|
145
|
+
<span class="method-name">setup</span><span class="method-args">()</span>
|
146
|
+
</a>
|
147
|
+
</div>
|
148
|
+
|
149
|
+
<div class="method-description">
|
150
|
+
</div>
|
151
|
+
</div>
|
152
|
+
|
153
|
+
<h3 class="section-bar">Private Instance methods</h3>
|
154
|
+
|
155
|
+
<div id="method-M000003" class="method-detail">
|
156
|
+
<a name="M000003"></a>
|
157
|
+
|
158
|
+
<div class="method-heading">
|
159
|
+
<a href="PackageTask.src/M000003.html" target="Code" class="method-signature"
|
160
|
+
onclick="popupCode('PackageTask.src/M000003.html');return false;">
|
161
|
+
<span class="method-name">run_gem</span><span class="method-args">()</span>
|
162
|
+
</a>
|
163
|
+
</div>
|
164
|
+
|
165
|
+
<div class="method-description">
|
166
|
+
</div>
|
167
|
+
</div>
|
168
|
+
|
169
|
+
|
170
|
+
</div>
|
171
|
+
|
172
|
+
|
173
|
+
</div>
|
174
|
+
|
175
|
+
|
176
|
+
<div id="validator-badges">
|
177
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
178
|
+
</div>
|
179
|
+
|
180
|
+
</body>
|
181
|
+
</html>
|
@@ -0,0 +1,49 @@
|
|
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>setup (Reap::PackageTask)</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 lib/reap2/package-task.rb, line 19</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span>
|
15
|
+
<span class="ruby-ivar">@dir</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'dir'</span>] <span class="ruby-operator">||</span> <span class="ruby-value str">'pkg'</span>
|
16
|
+
|
17
|
+
<span class="ruby-ivar">@name</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'name'</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">master</span>[<span class="ruby-value str">'name'</span>]
|
18
|
+
<span class="ruby-ivar">@version</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'version'</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">master</span>[<span class="ruby-value str">'version'</span>] <span class="ruby-operator">||</span> <span class="ruby-value str">'0.0.1'</span>
|
19
|
+
<span class="ruby-ivar">@package_name</span> = <span class="ruby-ivar">@name</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'-'</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@version</span>
|
20
|
+
|
21
|
+
<span class="ruby-ivar">@author</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'author'</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">master</span>[<span class="ruby-value str">'author'</span>]
|
22
|
+
<span class="ruby-ivar">@email</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'email'</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">master</span>[<span class="ruby-value str">'email'</span>]
|
23
|
+
<span class="ruby-ivar">@summary</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'summary'</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">master</span>[<span class="ruby-value str">'summary'</span>]
|
24
|
+
<span class="ruby-ivar">@project</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'project'</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">master</span>[<span class="ruby-value str">'rubyforge'</span>][<span class="ruby-value str">'project'</span>]
|
25
|
+
<span class="ruby-ivar">@homepage</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'homepage'</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">master</span>[<span class="ruby-value str">'homepage'</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">master</span>[<span class="ruby-value str">'rubyforge'</span>][<span class="ruby-value str">'homepage'</span>]
|
26
|
+
|
27
|
+
<span class="ruby-ivar">@include</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'include'</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">DEFAULT_INCLUDE</span>
|
28
|
+
<span class="ruby-ivar">@exclude</span> = <span class="ruby-constant">MUST_EXCLUDE</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">section</span>[<span class="ruby-value str">'exclude'</span>]
|
29
|
+
|
30
|
+
<span class="ruby-ivar">@zip</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'zip'</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-value">? </span><span class="ruby-keyword kw">true</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">section</span>[<span class="ruby-value str">'zip'</span>]
|
31
|
+
<span class="ruby-ivar">@gzip</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'gzip'</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-value">? </span><span class="ruby-keyword kw">true</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">section</span>[<span class="ruby-value str">'zip'</span>]
|
32
|
+
<span class="ruby-ivar">@bzip2</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'bzip2'</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-value">? </span><span class="ruby-keyword kw">true</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">section</span>[<span class="ruby-value str">'zip'</span>]
|
33
|
+
<span class="ruby-ivar">@gem</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'gem'</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-value">? </span><span class="ruby-keyword kw">true</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">section</span>[<span class="ruby-value str">'gem'</span>]
|
34
|
+
|
35
|
+
<span class="ruby-comment cmt"># gem specific</span>
|
36
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">defined?</span>(<span class="ruby-constant">Gem</span>)
|
37
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>[<span class="ruby-value str">'platform'</span>]
|
38
|
+
<span class="ruby-ivar">@platform</span> = <span class="ruby-operator">::</span><span class="ruby-constant">Gem</span>.<span class="ruby-identifier">const_get</span>(<span class="ruby-identifier">section</span>[<span class="ruby-value str">'platform'</span>])
|
39
|
+
<span class="ruby-keyword kw">else</span>
|
40
|
+
<span class="ruby-ivar">@platform</span> = <span class="ruby-operator">::</span><span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Platform</span><span class="ruby-operator">::</span><span class="ruby-constant">RUBY</span>
|
41
|
+
<span class="ruby-keyword kw">end</span>
|
42
|
+
<span class="ruby-ivar">@autorequire</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'autorequire'</span>]
|
43
|
+
<span class="ruby-ivar">@requirements</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'requirements'</span>] <span class="ruby-operator">||</span> []
|
44
|
+
<span class="ruby-ivar">@dependencies</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'dependencies'</span>] <span class="ruby-operator">||</span> []
|
45
|
+
<span class="ruby-ivar">@executables</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'executables'</span>] <span class="ruby-operator">||</span> []
|
46
|
+
<span class="ruby-keyword kw">end</span>
|
47
|
+
<span class="ruby-keyword kw">end</span></pre>
|
48
|
+
</body>
|
49
|
+
</html>
|
@@ -0,0 +1,74 @@
|
|
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>run (Reap::PackageTask)</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 lib/reap2/package-task.rb, line 54</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>
|
15
|
+
<span class="ruby-comment cmt"># create package image</span>
|
16
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">FileTest</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-ivar">@dir</span>)
|
17
|
+
<span class="ruby-identifier">print</span> <span class="ruby-node">"Directory '#{@dir}' already exists. Clobber? [y/N] "</span>
|
18
|
+
<span class="ruby-keyword kw">until</span> <span class="ruby-identifier">inp</span> = <span class="ruby-identifier">$stdin</span>.<span class="ruby-identifier">gets</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>] ; <span class="ruby-identifier">sleep</span> <span class="ruby-value">1</span> ; <span class="ruby-keyword kw">end</span>
|
19
|
+
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">inp</span> <span class="ruby-operator">||</span> <span class="ruby-value str">'y'</span>).<span class="ruby-identifier">downcase</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'y'</span>
|
20
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-node">"Removing old directory '#{File.expand_path(@dir)}'..."</span>
|
21
|
+
<span class="ruby-identifier">trash_dir</span> = <span class="ruby-node">".trash/#{File.basename(@dir)}"</span>
|
22
|
+
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>(<span class="ruby-value str">".trash"</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">FileTest</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-value str">".trash"</span>)
|
23
|
+
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm_r</span>(<span class="ruby-identifier">trash_dir</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">FileTest</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">trash_dir</span>)
|
24
|
+
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mv</span>(<span class="ruby-ivar">@dir</span>, <span class="ruby-identifier">trash_dir</span>)
|
25
|
+
<span class="ruby-keyword kw">else</span>
|
26
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-value str">"Reap package task canceled."</span>
|
27
|
+
<span class="ruby-identifier">exit</span> <span class="ruby-value">0</span>
|
28
|
+
<span class="ruby-keyword kw">end</span>
|
29
|
+
<span class="ruby-keyword kw">end</span>
|
30
|
+
<span class="ruby-identifier">package_dir_path</span> = <span class="ruby-node">"#{@dir}/#{@package_name}"</span>
|
31
|
+
<span class="ruby-identifier">package_files</span> = <span class="ruby-constant">FileList</span>.<span class="ruby-identifier">new</span>
|
32
|
+
<span class="ruby-identifier">package_files</span>.<span class="ruby-identifier">include</span>(<span class="ruby-operator">*</span><span class="ruby-ivar">@include</span>)
|
33
|
+
<span class="ruby-identifier">package_files</span>.<span class="ruby-identifier">exclude</span>(<span class="ruby-operator">*</span><span class="ruby-ivar">@exclude</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@exclude</span> <span class="ruby-keyword kw">and</span> <span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@exclude</span>.<span class="ruby-identifier">empty?</span>
|
34
|
+
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span> <span class="ruby-ivar">@dir</span> <span class="ruby-comment cmt">#rescue nil</span>
|
35
|
+
<span class="ruby-identifier">package_files</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">fn</span><span class="ruby-operator">|</span>
|
36
|
+
<span class="ruby-identifier">f</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">package_dir_path</span>, <span class="ruby-identifier">fn</span>)
|
37
|
+
<span class="ruby-identifier">fdir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">f</span>)
|
38
|
+
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>(<span class="ruby-identifier">fdir</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">fdir</span>)
|
39
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-identifier">fn</span>)
|
40
|
+
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>(<span class="ruby-identifier">f</span>)
|
41
|
+
<span class="ruby-keyword kw">else</span>
|
42
|
+
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">rm_f</span>(<span class="ruby-identifier">f</span>)
|
43
|
+
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">safe_ln</span>(<span class="ruby-identifier">fn</span>, <span class="ruby-identifier">f</span>)
|
44
|
+
<span class="ruby-keyword kw">end</span>
|
45
|
+
<span class="ruby-keyword kw">end</span>
|
46
|
+
|
47
|
+
<span class="ruby-comment cmt"># create standard package files</span>
|
48
|
+
<span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">chdir</span>(<span class="ruby-ivar">@dir</span>) <span class="ruby-keyword kw">do</span>
|
49
|
+
<span class="ruby-comment cmt"># tar bzip2 for unix</span>
|
50
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@bzip2</span>
|
51
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-value str">"\nReap is shelling out work to tar and bzip2..."</span>
|
52
|
+
<span class="ruby-identifier">sh</span> <span class="ruby-node">%{tar --bzip2 -cvf #{@package_name}.tbz #{@package_name}}</span>
|
53
|
+
<span class="ruby-keyword kw">end</span>
|
54
|
+
<span class="ruby-comment cmt"># tar gzip for unix</span>
|
55
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@gzip</span>
|
56
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-value str">"\nReap is shelling out work to tar and gzip..."</span>
|
57
|
+
<span class="ruby-identifier">sh</span> <span class="ruby-node">%{tar --gzip -cvf #{@package_name}.tgz #{@package_name}}</span>
|
58
|
+
<span class="ruby-keyword kw">end</span>
|
59
|
+
<span class="ruby-comment cmt"># zip for windows</span>
|
60
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@zip</span>
|
61
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-value str">"\nReap is shelling out work to zip..."</span>
|
62
|
+
<span class="ruby-identifier">sh</span> <span class="ruby-node">%{zip -r #{@package_name}.zip #{@package_name}}</span>
|
63
|
+
<span class="ruby-keyword kw">end</span>
|
64
|
+
<span class="ruby-identifier">puts</span>
|
65
|
+
<span class="ruby-keyword kw">end</span>
|
66
|
+
|
67
|
+
<span class="ruby-comment cmt"># create gem package</span>
|
68
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">defined?</span>(<span class="ruby-constant">Gem</span>) <span class="ruby-keyword kw">and</span> <span class="ruby-ivar">@gem</span>
|
69
|
+
<span class="ruby-identifier">run_gem</span>
|
70
|
+
<span class="ruby-keyword kw">end</span>
|
71
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
|
72
|
+
<span class="ruby-keyword kw">end</span></pre>
|
73
|
+
</body>
|
74
|
+
</html>
|
@@ -0,0 +1,51 @@
|
|
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>run_gem (Reap::PackageTask)</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 lib/reap2/package-task.rb, line 116</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_gem</span>
|
15
|
+
<span class="ruby-identifier">spec</span> = <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Specification</span>.<span class="ruby-identifier">new</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span>
|
16
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">name</span> = <span class="ruby-ivar">@name</span>
|
17
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">version</span> = <span class="ruby-ivar">@version</span>
|
18
|
+
<span class="ruby-ivar">@dependencies</span>.<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">d</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
|
19
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">v</span>
|
20
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">add_dependency</span>(<span class="ruby-identifier">d</span>, <span class="ruby-identifier">v</span>)
|
21
|
+
<span class="ruby-keyword kw">else</span>
|
22
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">add_dependency</span>(<span class="ruby-identifier">d</span>)
|
23
|
+
<span class="ruby-keyword kw">end</span>
|
24
|
+
}
|
25
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">platform</span> = <span class="ruby-ivar">@platform</span>
|
26
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">summary</span> = <span class="ruby-ivar">@summary</span>
|
27
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">requirements</span> = <span class="ruby-ivar">@requirements</span>
|
28
|
+
|
29
|
+
<span class="ruby-comment cmt"># s.files = Dir.glob("lib/**/*").delete_if {|item| item.include?("CVS")}</span>
|
30
|
+
<span class="ruby-comment cmt"># s.files.concat Dir.glob("bin/**/*").delete_if {|item| item.include?("CVS")}</span>
|
31
|
+
<span class="ruby-identifier">package_files</span> = <span class="ruby-constant">FileList</span>.<span class="ruby-identifier">new</span>
|
32
|
+
<span class="ruby-identifier">package_files</span>.<span class="ruby-identifier">include</span>(<span class="ruby-operator">*</span><span class="ruby-ivar">@include</span>)
|
33
|
+
<span class="ruby-identifier">package_files</span>.<span class="ruby-identifier">exclude</span>(<span class="ruby-operator">*</span><span class="ruby-ivar">@exclude</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@exclude</span> <span class="ruby-keyword kw">and</span> <span class="ruby-keyword kw">not</span> <span class="ruby-ivar">@exclude</span>.<span class="ruby-identifier">empty?</span>
|
34
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">files</span> = <span class="ruby-identifier">package_files</span>.<span class="ruby-identifier">to_a</span>
|
35
|
+
|
36
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">require_path</span> = <span class="ruby-value str">'lib'</span>
|
37
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">autorequire</span> = <span class="ruby-ivar">@autorequire</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@autorequire</span>
|
38
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">author</span> = <span class="ruby-ivar">@author</span>
|
39
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">email</span> = <span class="ruby-ivar">@email</span>
|
40
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">rubyforge_project</span> = <span class="ruby-ivar">@project</span>
|
41
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">homepage</span> = <span class="ruby-ivar">@homepage</span>
|
42
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">executables</span> = <span class="ruby-ivar">@executables</span>
|
43
|
+
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">bindir</span> = <span class="ruby-value str">"bin"</span>
|
44
|
+
}
|
45
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-value str">"Reap is shelling out work to the Gem Package Manager..."</span>
|
46
|
+
<span class="ruby-constant">Gem</span>.<span class="ruby-identifier">manage_gems</span>
|
47
|
+
<span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Builder</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">spec</span>).<span class="ruby-identifier">build</span>
|
48
|
+
<span class="ruby-identifier">sh</span> <span class="ruby-node">%{mv ./*.gem #{@dir}/}</span>
|
49
|
+
<span class="ruby-keyword kw">end</span></pre>
|
50
|
+
</body>
|
51
|
+
</html>
|