reap 0.6.1 → 3.01
Sign up to get free protection for your applications and to get access to all the features.
- data/{ANN-0.6.1 → ANN} +0 -0
- data/ChangeLog +19 -8
- data/ProjectInfo +25 -0
- data/README +76 -11
- data/Rakefile +139 -17
- data/bin/reap +159 -0
- data/lib/reap/{announce-task.rb → announce_task.rb} +43 -41
- data/lib/reap/{chmod-task.rb → filemod_task.rb} +24 -20
- data/lib/reap/info_task.rb +29 -0
- data/lib/reap/noop_task.rb +35 -0
- data/lib/reap/{package-task.rb → package_task.rb} +63 -43
- data/lib/reap/projectinfo.rb +40 -0
- data/lib/reap/{publish-task.rb → publish_task.rb} +21 -17
- data/lib/reap/{rdoc-task.rb → rdoc_task.rb} +24 -19
- data/lib/reap/ready_made.rb +12 -0
- data/lib/reap/task.rb +89 -162
- data/lib/reap/tasks.rb +9 -0
- data/lib/reap/{test-task.rb → test_task.rb} +35 -15
- data/lib/reap/web_publish_task.rb +49 -0
- data/pub/grape.jpg +0 -0
- data/pub/www/index.html +61 -21
- data/pub/www/rdoc/classes/ProjectInfo.html +207 -0
- data/pub/www/rdoc/classes/ProjectInfo.src/M000055.html +18 -0
- data/pub/www/rdoc/classes/ProjectInfo.src/M000056.html +23 -0
- data/pub/www/rdoc/classes/ProjectInfo.src/M000057.html +18 -0
- data/pub/www/rdoc/classes/ProjectInfo.src/M000058.html +21 -0
- data/pub/www/rdoc/classes/ProjectInfo.src/M000059.html +18 -0
- data/pub/www/rdoc/classes/RakeTask.html +182 -0
- data/pub/www/rdoc/classes/RakeTask.src/M000051.html +18 -0
- data/pub/www/rdoc/classes/RakeTask.src/M000052.html +18 -0
- data/pub/www/rdoc/classes/RakeTask.src/M000053.html +18 -0
- data/pub/www/rdoc/classes/RakeTask.src/M000054.html +18 -0
- data/pub/www/rdoc/classes/Reap.html +57 -4
- data/pub/www/rdoc/classes/Reap/AnnounceTask.html +140 -14
- data/pub/www/rdoc/classes/Reap/AnnounceTask.src/M000039.html +16 -0
- data/pub/www/rdoc/classes/Reap/{TemplateTask.src/M000021.html → AnnounceTask.src/M000040.html} +4 -4
- data/pub/www/rdoc/classes/Reap/AnnounceTask.src/{M000031.html → M000041.html} +34 -34
- data/pub/www/rdoc/classes/Reap/AnnounceTask.src/{M000032.html → M000042.html} +1 -1
- data/pub/www/rdoc/classes/Reap/FilemodTask.html +254 -0
- data/pub/www/rdoc/classes/Reap/FilemodTask.src/M000027.html +16 -0
- data/pub/www/rdoc/classes/Reap/FilemodTask.src/M000028.html +18 -0
- data/pub/www/rdoc/classes/Reap/FilemodTask.src/M000029.html +21 -0
- data/pub/www/rdoc/classes/Reap/{ChmodTask.src/M000017.html → FilemodTask.src/M000030.html} +3 -3
- data/pub/www/rdoc/classes/Reap/{ChmodTask.src/M000018.html → FilemodTask.src/M000031.html} +2 -2
- data/pub/www/rdoc/classes/Reap/FilemodTask.src/M000032.html +18 -0
- data/pub/www/rdoc/classes/Reap/{TemplateTask.html → InfoTask.html} +46 -34
- data/pub/www/rdoc/classes/Reap/InfoTask.src/M000047.html +16 -0
- data/pub/www/rdoc/classes/Reap/{Task.src/M000026.html → InfoTask.src/M000048.html} +4 -4
- data/pub/www/rdoc/classes/Reap/{Task.src/M000025.html → InfoTask.src/M000049.html} +2 -3
- data/pub/www/rdoc/classes/Reap/InfoTask.src/M000050.html +18 -0
- data/pub/www/rdoc/classes/Reap/NoopTask.html +210 -0
- data/pub/www/rdoc/classes/Reap/NoopTask.src/M000043.html +16 -0
- data/pub/www/rdoc/classes/Reap/NoopTask.src/M000044.html +18 -0
- data/pub/www/rdoc/classes/Reap/{Task.src/M000028.html → NoopTask.src/M000045.html} +4 -3
- data/pub/www/rdoc/classes/Reap/NoopTask.src/M000046.html +18 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.html +179 -22
- data/pub/www/rdoc/classes/Reap/PackageTask.src/M000005.html +16 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.src/M000006.html +24 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.src/M000007.html +53 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.src/{M000002.html → M000008.html} +3 -4
- data/pub/www/rdoc/classes/Reap/PackageTask.src/{M000003.html → M000009.html} +1 -1
- data/pub/www/rdoc/classes/Reap/PublishTask.html +85 -14
- data/pub/www/rdoc/classes/Reap/PublishTask.src/M000023.html +16 -0
- data/pub/www/rdoc/classes/Reap/PublishTask.src/M000024.html +18 -0
- data/pub/www/rdoc/classes/Reap/PublishTask.src/M000025.html +22 -0
- data/pub/www/rdoc/classes/Reap/PublishTask.src/{M000020.html → M000026.html} +2 -2
- data/pub/www/rdoc/classes/Reap/RDocTask.html +37 -21
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000001.html +16 -0
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000002.html +18 -0
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000003.html +25 -0
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000004.html +39 -10
- data/pub/www/rdoc/classes/Reap/Task.html +44 -124
- data/pub/www/rdoc/classes/Reap/Task.src/M000033.html +21 -0
- data/pub/www/rdoc/classes/Reap/Task.src/{M000030.html → M000034.html} +4 -5
- data/pub/www/rdoc/classes/Reap/Task.src/M000035.html +41 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000036.html +16 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000037.html +18 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000038.html +19 -0
- data/pub/www/rdoc/classes/Reap/TestTask.html +66 -32
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000014.html +16 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000015.html +18 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000016.html +25 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/{M000009.html → M000017.html} +5 -5
- data/pub/www/rdoc/classes/Reap/TestTask.src/{M000010.html → M000018.html} +3 -3
- data/pub/www/rdoc/classes/Reap/TestTask.src/{M000011.html → M000019.html} +1 -1
- data/pub/www/rdoc/classes/Reap/TestTask/TestResults.html +17 -17
- data/pub/www/rdoc/classes/Reap/TestTask/TestResults.src/{M000012.html → M000020.html} +1 -1
- data/pub/www/rdoc/classes/Reap/TestTask/TestResults.src/{M000013.html → M000021.html} +1 -1
- data/pub/www/rdoc/classes/Reap/TestTask/TestResults.src/{M000014.html → M000022.html} +1 -1
- data/pub/www/rdoc/classes/Reap/{ChmodTask.html → WebPublishTask.html} +46 -35
- data/pub/www/rdoc/classes/Reap/WebPublishTask.src/M000010.html +16 -0
- data/pub/www/rdoc/classes/Reap/WebPublishTask.src/M000011.html +18 -0
- data/pub/www/rdoc/classes/Reap/WebPublishTask.src/M000012.html +21 -0
- data/pub/www/rdoc/classes/Reap/WebPublishTask.src/M000013.html +32 -0
- data/pub/www/rdoc/classes/ReapTask.html +287 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000060.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000061.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000062.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000063.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000064.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000065.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000066.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000067.html +18 -0
- data/pub/www/rdoc/classes/ReapTask.src/M000068.html +18 -0
- data/pub/www/rdoc/created.rid +1 -1
- data/pub/www/rdoc/files/{lib/reap2/publish-task_rb.html → LICENSE.html} +19 -7
- data/pub/www/rdoc/files/README.html +271 -0
- data/pub/www/rdoc/files/lib/{reap2/announce-task_rb.html → reap/announce_task_rb.html} +5 -4
- data/pub/www/rdoc/files/lib/{reap2/template-task_rb.html → reap/filemod_task_rb.html} +5 -5
- data/pub/www/rdoc/files/lib/{reap2/rdoc-task_rb.html → reap/info_task_rb.html} +5 -5
- data/pub/www/rdoc/files/lib/{reap2/chmod-task_rb.html → reap/noop_task_rb.html} +5 -5
- data/pub/www/rdoc/files/lib/{reap2/package-task_rb.html → reap/package_task_rb.html} +5 -4
- data/pub/www/rdoc/files/lib/reap/projectinfo_rb.html +111 -0
- data/pub/www/rdoc/files/lib/reap/publish_task_rb.html +108 -0
- data/pub/www/rdoc/files/lib/reap/rdoc_task_rb.html +108 -0
- data/pub/www/rdoc/files/lib/reap/ready_made_rb.html +115 -0
- data/pub/www/rdoc/files/lib/{reap2 → reap}/task_rb.html +5 -6
- data/pub/www/rdoc/files/lib/reap/tasks_rb.html +115 -0
- data/pub/www/rdoc/files/lib/{reap2/test-task_rb.html → reap/test_task_rb.html} +5 -10
- data/pub/www/rdoc/files/lib/reap/web_publish_task_rb.html +108 -0
- data/pub/www/rdoc/fr_class_index.html +7 -2
- data/pub/www/rdoc/fr_file_index.html +15 -9
- data/pub/www/rdoc/fr_method_index.html +68 -32
- data/pub/www/rdoc/index.html +1 -1
- data/test/tc_reap.rb +1 -1
- metadata +126 -58
- data/Reapfile +0 -99
- data/lib/reap/reap-all.rb +0 -15
- data/lib/reap/template-task.rb +0 -40
- data/pub/www/rdoc/classes/Reap/ChmodTask.src/M000015.html +0 -21
- data/pub/www/rdoc/classes/Reap/ChmodTask.src/M000016.html +0 -21
- data/pub/www/rdoc/classes/Reap/PackageTask.src/M000001.html +0 -49
- data/pub/www/rdoc/classes/Reap/PublishTask.src/M000019.html +0 -24
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000005.html +0 -21
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000006.html +0 -53
- data/pub/www/rdoc/classes/Reap/Task.src/M000024.html +0 -21
- data/pub/www/rdoc/classes/Reap/Task.src/M000027.html +0 -28
- data/pub/www/rdoc/classes/Reap/Task.src/M000029.html +0 -18
- data/pub/www/rdoc/classes/Reap/TemplateTask.src/M000022.html +0 -21
- data/pub/www/rdoc/classes/Reap/TemplateTask.src/M000023.html +0 -34
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000007.html +0 -25
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000008.html +0 -21
- data/pub/www/rdoc/files/lib/reap2/reap-all_rb.html +0 -110
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'reap/task'
|
2
|
+
|
3
|
+
module ReapTask
|
4
|
+
def webpublish_task(*args,&blk)
|
5
|
+
::Reap::WebPublishTask.new(*args,&blk)
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
#
|
10
|
+
# Web Publish Task
|
11
|
+
#
|
12
|
+
class Reap::WebPublishTask < Reap::Task
|
13
|
+
|
14
|
+
#register 'webpublish'
|
15
|
+
|
16
|
+
def default_name ; 'webpublish' ; end
|
17
|
+
def default_desc
|
18
|
+
"publish project website to your internet host [reap]"
|
19
|
+
end
|
20
|
+
|
21
|
+
attr_accessor :host, :type, :dir, :project, :username
|
22
|
+
attr_accessor :exclude # not using yet
|
23
|
+
|
24
|
+
def init
|
25
|
+
@host ||= 'rubyforge.org'
|
26
|
+
@project ||= master['rubyforge']['project'] || master['name']
|
27
|
+
@username ||= master['rubyforge']['username']
|
28
|
+
@exclude ||= []
|
29
|
+
end
|
30
|
+
|
31
|
+
def run
|
32
|
+
cmd = ''; skip = false
|
33
|
+
|
34
|
+
case @host
|
35
|
+
when 'rubyforge'
|
36
|
+
cmd = %{scp -r #{@dir}/* #{@username}@rubyforge.org:/var/www/gforge-projects/#{@project}/}
|
37
|
+
else
|
38
|
+
puts %{Unrecognized publishing host '#{@host}'. Skipped.}
|
39
|
+
skip = true
|
40
|
+
end
|
41
|
+
|
42
|
+
unless skip
|
43
|
+
puts "Reap is shelling out publishing work..."
|
44
|
+
puts cmd
|
45
|
+
sh(cmd) unless $PRETEND
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
data/pub/grape.jpg
ADDED
Binary file
|
data/pub/www/index.html
CHANGED
@@ -4,47 +4,87 @@
|
|
4
4
|
<title>Reap, a Rake-based Ruby Project Assistant</title>
|
5
5
|
<style>
|
6
6
|
|
7
|
-
body { margin: 0; padding: 0;
|
7
|
+
body { margin: 0; padding: 0; }
|
8
8
|
p { font-family: sans-serif; text-align: justify; }
|
9
9
|
img { }
|
10
|
-
iframe { width: 520px; height: 320px; border: solid 1px purple; margin-left: 40px; margin-top: 10px; margin-bottom: 10px; }
|
11
10
|
table { margin: 0; padding: 0; border: 0; }
|
12
11
|
td { margin: 0; padding: 0; vertical-align: top; }
|
13
|
-
|
14
|
-
|
15
|
-
|
12
|
+
tr#title { background: violet; }
|
13
|
+
td#leftside { text-align: center; font-family: sans-serif; font-size: 10pt;
|
14
|
+
width: 70px; background: purple; border-right: 1px solid lightgrey; }
|
15
|
+
td#leftside a { color: white; text-decoration: none; font-weight: bold; font-family: monospace; }
|
16
|
+
td#title { padding-left: 20px; padding-right: 20px; vertical-align: top; width: 250px; }
|
17
|
+
span#title { font-size: 64pt; font-weight: bold; color: purple; font-family: sans-serif; }
|
18
|
+
div#rake { position: relative; font-size: 8pt; font-family: monospace; top: -15px; left: 114px; }
|
19
|
+
td#slogon { vertical-align: middle; text-align: center; font-family: monospace; }
|
20
|
+
td#main { padding: 20px; vertical-align: top; line-height: 20pt; }
|
21
|
+
b#p { color: purple; }
|
22
|
+
b#b { color: black; }
|
23
|
+
b#r { color: red; }
|
24
|
+
span#copy { font-size: 8pt; font-family: sans-serif; }
|
25
|
+
|
26
|
+
div#eg { float: right; margin-left: 30px; border: solid 1px purple; text-align: center;
|
27
|
+
font-family: monospace; padding-top: 7px; }
|
28
|
+
iframe { width: 450px; height: 400px; border: solid 1px purple; margin: 10px; }
|
16
29
|
|
17
30
|
</style>
|
18
31
|
</head>
|
19
32
|
|
20
33
|
<body>
|
21
34
|
|
22
|
-
<table width="100%">
|
23
|
-
<tr>
|
24
|
-
|
25
|
-
|
26
|
-
<
|
35
|
+
<table id="prime" width="100%">
|
36
|
+
<tr id="title">
|
37
|
+
<td id="leftside" rowspan="2">
|
38
|
+
<br/><br/>
|
39
|
+
<a href="doc/index.html">R<br/>D<br/>O<br/>C<br/>S</a>
|
40
|
+
<br/><br/>
|
41
|
+
<a href="http://rubyforge.org/projects/reap/">D<br/>E<br/>V<br/>S<br/>I<br/>T<br/>E</a>
|
27
42
|
<br/><br/>
|
28
|
-
Why's the Appleboy so happy?
|
29
43
|
</td>
|
44
|
+
<td id="title">
|
45
|
+
<span id="title">REAP</span>
|
46
|
+
<div id="rake">Rake Project</div>
|
47
|
+
</td>
|
48
|
+
<td id="slogon">
|
49
|
+
<b id="p">f o r</b>
|
50
|
+
<b id="p">w h e n</b>
|
51
|
+
<b id="p">y o u r</b>
|
52
|
+
<b id="r">r u b y</b>
|
53
|
+
<b id="p">r u n n e t h</b>
|
54
|
+
<b id="p">o v e r</b>
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
<tr>
|
58
|
+
<td id="main" colspan="2">
|
30
59
|
|
31
|
-
|
60
|
+
<p>Reap is a set of Rake extensions designed to simplify the life of
|
61
|
+
Ruby application developers and project managers. The extensions
|
62
|
+
comprise a set of commonly useful tasks, from setting up a a standard
|
63
|
+
project structure, thru creating gems, to issuing announcements.
|
64
|
+
Because of the commonality between these tasks Reap utilizes a
|
65
|
+
central YAML-formatted configuration file to harvest project
|
66
|
+
information, significantly simplifying Rake usage. In fact, when
|
67
|
+
using Reap, it will not be uncommon to see a Rakefile containing
|
68
|
+
nothing but require 'reap/reap-all'.</p>
|
32
69
|
|
33
|
-
<
|
70
|
+
<div id="eg">
|
71
|
+
Have a look at this example Reapfile<br/>
|
72
|
+
<iframe src="Reapfile">Sorry, there are no iframes in your web world.</iframe>
|
73
|
+
</div>
|
34
74
|
|
35
|
-
<p>
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
editing a single straight-forward YAML configuration file.</p>
|
75
|
+
<p>This is still an early release of Reap, so quite a bit is still subject
|
76
|
+
to change and improvement. And I look foward to extending its capabilites.
|
77
|
+
Nonetheless it is quite useful already. I use it to help manage all my current
|
78
|
+
Ruby projects.</p>
|
40
79
|
|
41
|
-
|
80
|
+
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
|
42
81
|
|
43
|
-
|
82
|
+
<hr>
|
83
|
+
<span id="copy">Copyright (c) 2005 Thomas Sawyer, All Rights Reserved.</span>
|
44
84
|
|
45
85
|
</td>
|
46
86
|
</tr>
|
47
87
|
</table>
|
48
88
|
|
49
89
|
</body>
|
50
|
-
</html>
|
90
|
+
</html>
|
@@ -0,0 +1,207 @@
|
|
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: ProjectInfo</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">ProjectInfo</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../files/lib/reap/projectinfo_rb.html">
|
59
|
+
lib/reap/projectinfo.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
|
+
|
75
|
+
|
76
|
+
|
77
|
+
</div>
|
78
|
+
|
79
|
+
<div id="method-list">
|
80
|
+
<h3 class="section-bar">Methods</h3>
|
81
|
+
|
82
|
+
<div class="name-list">
|
83
|
+
<a href="#M000059">[]</a>
|
84
|
+
<a href="#M000057">info</a>
|
85
|
+
<a href="#M000055">info_file</a>
|
86
|
+
<a href="#M000056">info_stream</a>
|
87
|
+
<a href="#M000058">validate</a>
|
88
|
+
</div>
|
89
|
+
</div>
|
90
|
+
|
91
|
+
</div>
|
92
|
+
|
93
|
+
|
94
|
+
<!-- if includes -->
|
95
|
+
|
96
|
+
<div id="section">
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
<div id="attribute-list">
|
103
|
+
<h3 class="section-bar">Attributes</h3>
|
104
|
+
|
105
|
+
<div class="name-list">
|
106
|
+
<table>
|
107
|
+
<tr class="top-aligned-row context-row">
|
108
|
+
<td class="context-item-name">info_file</td>
|
109
|
+
<td class="context-item-value"> [W] </td>
|
110
|
+
<td class="context-item-desc"></td>
|
111
|
+
</tr>
|
112
|
+
</table>
|
113
|
+
</div>
|
114
|
+
</div>
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
<!-- if method_list -->
|
119
|
+
<div id="methods">
|
120
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
121
|
+
|
122
|
+
<div id="method-M000059" class="method-detail">
|
123
|
+
<a name="M000059"></a>
|
124
|
+
|
125
|
+
<div class="method-heading">
|
126
|
+
<a href="ProjectInfo.src/M000059.html" target="Code" class="method-signature"
|
127
|
+
onclick="popupCode('ProjectInfo.src/M000059.html');return false;">
|
128
|
+
<span class="method-name">[]</span><span class="method-args">(name)</span>
|
129
|
+
</a>
|
130
|
+
</div>
|
131
|
+
|
132
|
+
<div class="method-description">
|
133
|
+
</div>
|
134
|
+
</div>
|
135
|
+
|
136
|
+
<div id="method-M000057" class="method-detail">
|
137
|
+
<a name="M000057"></a>
|
138
|
+
|
139
|
+
<div class="method-heading">
|
140
|
+
<a href="ProjectInfo.src/M000057.html" target="Code" class="method-signature"
|
141
|
+
onclick="popupCode('ProjectInfo.src/M000057.html');return false;">
|
142
|
+
<span class="method-name">info</span><span class="method-args">()</span>
|
143
|
+
</a>
|
144
|
+
</div>
|
145
|
+
|
146
|
+
<div class="method-description">
|
147
|
+
</div>
|
148
|
+
</div>
|
149
|
+
|
150
|
+
<div id="method-M000055" class="method-detail">
|
151
|
+
<a name="M000055"></a>
|
152
|
+
|
153
|
+
<div class="method-heading">
|
154
|
+
<a href="ProjectInfo.src/M000055.html" target="Code" class="method-signature"
|
155
|
+
onclick="popupCode('ProjectInfo.src/M000055.html');return false;">
|
156
|
+
<span class="method-name">info_file</span><span class="method-args">()</span>
|
157
|
+
</a>
|
158
|
+
</div>
|
159
|
+
|
160
|
+
<div class="method-description">
|
161
|
+
</div>
|
162
|
+
</div>
|
163
|
+
|
164
|
+
<div id="method-M000056" class="method-detail">
|
165
|
+
<a name="M000056"></a>
|
166
|
+
|
167
|
+
<div class="method-heading">
|
168
|
+
<a href="ProjectInfo.src/M000056.html" target="Code" class="method-signature"
|
169
|
+
onclick="popupCode('ProjectInfo.src/M000056.html');return false;">
|
170
|
+
<span class="method-name">info_stream</span><span class="method-args">()</span>
|
171
|
+
</a>
|
172
|
+
</div>
|
173
|
+
|
174
|
+
<div class="method-description">
|
175
|
+
</div>
|
176
|
+
</div>
|
177
|
+
|
178
|
+
<div id="method-M000058" class="method-detail">
|
179
|
+
<a name="M000058"></a>
|
180
|
+
|
181
|
+
<div class="method-heading">
|
182
|
+
<a href="ProjectInfo.src/M000058.html" target="Code" class="method-signature"
|
183
|
+
onclick="popupCode('ProjectInfo.src/M000058.html');return false;">
|
184
|
+
<span class="method-name">validate</span><span class="method-args">()</span>
|
185
|
+
</a>
|
186
|
+
</div>
|
187
|
+
|
188
|
+
<div class="method-description">
|
189
|
+
<p>
|
190
|
+
not using at the moment
|
191
|
+
</p>
|
192
|
+
</div>
|
193
|
+
</div>
|
194
|
+
|
195
|
+
|
196
|
+
</div>
|
197
|
+
|
198
|
+
|
199
|
+
</div>
|
200
|
+
|
201
|
+
|
202
|
+
<div id="validator-badges">
|
203
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
204
|
+
</div>
|
205
|
+
|
206
|
+
</body>
|
207
|
+
</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>info_file (ProjectInfo)</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/reap/projectinfo.rb, line 12</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">info_file</span>
|
15
|
+
<span class="ruby-ivar">@info_file</span> <span class="ruby-operator">||=</span> <span class="ruby-value str">'ProjectInfo'</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,23 @@
|
|
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>info_stream (ProjectInfo)</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/reap/projectinfo.rb, line 16</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">info_stream</span>
|
15
|
+
<span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@info_stream</span>
|
16
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">file?</span>( <span class="ruby-identifier">info_file</span> ) <span class="ruby-keyword kw">and</span> <span class="ruby-operator">!</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>( <span class="ruby-identifier">info_file</span> )
|
17
|
+
<span class="ruby-ivar">@info_stream</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>( <span class="ruby-identifier">info_file</span> )
|
18
|
+
<span class="ruby-keyword kw">end</span>
|
19
|
+
<span class="ruby-keyword kw">end</span>
|
20
|
+
<span class="ruby-ivar">@info_stream</span>
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</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>info (ProjectInfo)</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/reap/projectinfo.rb, line 25</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">info</span>
|
15
|
+
<span class="ruby-ivar">@info</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">YAML</span><span class="ruby-operator">::</span><span class="ruby-identifier">load</span>(<span class="ruby-identifier">info_stream</span>).<span class="ruby-identifier">traverse</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> [<span class="ruby-identifier">k</span>.<span class="ruby-identifier">downcase</span>, <span class="ruby-identifier">v</span>] }
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</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>validate (ProjectInfo)</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/reap/projectinfo.rb, line 30</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validate</span>
|
15
|
+
<span class="ruby-comment cmt"># required main parameters</span>
|
16
|
+
<span class="ruby-comment cmt">#raise "TITLE is a required configuration field" unless info['title']</span>
|
17
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-value str">"NAME is a required piece of information"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">info</span>[<span class="ruby-value str">'name'</span>]
|
18
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-value str">"VERSION is a required piece of informatiomn"</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">info</span>[<span class="ruby-value str">'version'</span>]
|
19
|
+
<span class="ruby-keyword kw">end</span></pre>
|
20
|
+
</body>
|
21
|
+
</html>
|