job_boss 0.2 → 0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +25 -2
- data/Rakefile +21 -8
- data/bin/job_boss +1 -0
- data/doc/ActiveSupport/TestCase.html +584 -0
- data/doc/{Passenger.html → ActiveSupport.html} +10 -30
- data/doc/CreateJobs.html +31 -16
- data/doc/{Mongrel.html → DaemonTest.html} +23 -39
- data/doc/JobBoss/Boss.html +466 -68
- data/doc/JobBoss/Config.html +77 -39
- data/doc/JobBoss/Job.html +375 -97
- data/doc/JobBoss/Queuer.html +35 -21
- data/doc/JobBoss.html +14 -311
- data/doc/{ActiveRecord.html → MathJobs.html} +66 -36
- data/doc/Rakefile.html +43 -9
- data/doc/SleepJobs.html +251 -0
- data/doc/{PhusionPassenger.html → StringJobs.html} +66 -38
- data/doc/bin/job_boss.html +1 -1
- data/doc/created.rid +14 -8
- data/doc/index.html +63 -7
- data/doc/lib/job_boss/boss_rb.html +5 -1
- data/doc/lib/job_boss/{configuror_rb.html → config_rb.html} +2 -2
- data/doc/lib/job_boss/job_rb.html +3 -1
- data/doc/lib/job_boss/queuer_rb.html +1 -1
- data/doc/lib/migrate_rb.html +1 -1
- data/doc/{vendor/spawn/lib/spawn_rb.html → test/app_root/app/jobs/math_jobs_rb.html} +7 -7
- data/doc/{vendor/spawn/lib/patches_rb.html → test/app_root/app/jobs/sleep_jobs_rb.html} +8 -12
- data/doc/test/app_root/app/jobs/string_jobs_rb.html +52 -0
- data/doc/test/test_helper_rb.html +62 -0
- data/doc/{vendor/spawn/init_rb.html → test/unit/daemon_test_rb.html} +3 -3
- data/doc/test/unit/job_test_rb.html +60 -0
- data/job_boss.gemspec +3 -2
- data/lib/job_boss/boss.rb +29 -7
- data/lib/job_boss/config.rb +49 -0
- data/lib/job_boss/job.rb +57 -13
- data/lib/migrate.rb +3 -1
- data/test/app_root/app/jobs/math_jobs.rb +5 -0
- data/test/app_root/app/jobs/sleep_jobs.rb +9 -0
- data/test/app_root/app/jobs/string_jobs.rb +5 -0
- data/test/app_root/config/database.yml +22 -0
- data/test/test_helper.rb +113 -0
- data/test/unit/daemon_test.rb +29 -0
- data/test/unit/job_test.rb +73 -0
- metadata +46 -27
- data/doc/ActiveRecord/Base.html +0 -343
- data/doc/Mongrel/HttpServer.html +0 -275
- data/doc/Passenger/Railz/RequestHandler.html +0 -271
- data/doc/Passenger/Railz.html +0 -185
- data/doc/PhusionPassenger/Rack/RequestHandler.html +0 -271
- data/doc/PhusionPassenger/Rack.html +0 -185
- data/doc/PhusionPassenger/Railz/RequestHandler.html +0 -271
- data/doc/PhusionPassenger/Railz.html +0 -185
- data/doc/Spawn/SpawnId.html +0 -276
- data/doc/Spawn.html +0 -742
- data/doc/vendor/spawn/CHANGELOG.html +0 -275
- data/doc/vendor/spawn/LICENSE.html +0 -151
- data/lib/job_boss/configuror.rb +0 -40
data/doc/Rakefile.html
CHANGED
@@ -70,8 +70,20 @@
|
|
70
70
|
|
71
71
|
<li><a href="./JobBoss/Queuer.html">JobBoss::Queuer</a></li>
|
72
72
|
|
73
|
+
<li><a href="./ActiveSupport.html">ActiveSupport</a></li>
|
74
|
+
|
75
|
+
<li><a href="./ActiveSupport/TestCase.html">ActiveSupport::TestCase</a></li>
|
76
|
+
|
73
77
|
<li><a href="./CreateJobs.html">CreateJobs</a></li>
|
74
78
|
|
79
|
+
<li><a href="./DaemonTest.html">DaemonTest</a></li>
|
80
|
+
|
81
|
+
<li><a href="./MathJobs.html">MathJobs</a></li>
|
82
|
+
|
83
|
+
<li><a href="./SleepJobs.html">SleepJobs</a></li>
|
84
|
+
|
85
|
+
<li><a href="./StringJobs.html">StringJobs</a></li>
|
86
|
+
|
75
87
|
</ul>
|
76
88
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
77
89
|
</div>
|
@@ -82,20 +94,42 @@
|
|
82
94
|
|
83
95
|
<div id="documentation">
|
84
96
|
<p>
|
85
|
-
require &#
|
97
|
+
require “rake/testtask“ require “rake/rdoctask“
|
86
98
|
</p>
|
87
99
|
<p>
|
88
|
-
|
100
|
+
desc ‘Default: run unit tests.’ task :default => :test
|
101
|
+
</p>
|
102
|
+
<p>
|
103
|
+
desc ‘Test the job_boss gem.’ Rake::TestTask.new(:test) do |t|
|
89
104
|
</p>
|
90
105
|
<pre>
|
91
|
-
|
92
|
-
|
93
|
-
boss.start
|
94
|
-
end
|
95
|
-
|
96
|
-
task :stop do
|
97
|
-
end
|
106
|
+
t.libs << 'test'
|
107
|
+
t.libs << 'test/app_root/app/jobs'
|
98
108
|
|
109
|
+
t.pattern = 'test/**/*_test.rb'
|
110
|
+
t.verbose = true
|
111
|
+
</pre>
|
112
|
+
<p>
|
113
|
+
end
|
114
|
+
</p>
|
115
|
+
<p>
|
116
|
+
desc ‘Generate documentation for the job_boss gem.’
|
117
|
+
Rake::RDocTask.new(:rdoc) do |rdoc|
|
118
|
+
</p>
|
119
|
+
<pre>
|
120
|
+
rdoc.rdoc_dir = 'rdoc'
|
121
|
+
rdoc.title = 'job_boss'
|
122
|
+
rdoc.options << '--line-numbers' << '--inline-source'
|
123
|
+
rdoc.rdoc_files.include('README')
|
124
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
125
|
+
</pre>
|
126
|
+
<p>
|
127
|
+
end
|
128
|
+
</p>
|
129
|
+
<p>
|
130
|
+
namespace :job_boss do
|
131
|
+
</p>
|
132
|
+
<pre>
|
99
133
|
task :restart do
|
100
134
|
end
|
101
135
|
</pre>
|
data/doc/SleepJobs.html
ADDED
@@ -0,0 +1,251 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Class: SleepJobs</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="./js/jquery.js" type="text/javascript"
|
13
|
+
charset="utf-8"></script>
|
14
|
+
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
15
|
+
charset="utf-8"></script>
|
16
|
+
<script src="./js/quicksearch.js" type="text/javascript"
|
17
|
+
charset="utf-8"></script>
|
18
|
+
<script src="./js/darkfish.js" type="text/javascript"
|
19
|
+
charset="utf-8"></script>
|
20
|
+
|
21
|
+
</head>
|
22
|
+
<body class="class">
|
23
|
+
|
24
|
+
<div id="metadata">
|
25
|
+
<div id="home-metadata">
|
26
|
+
<div id="home-section" class="section">
|
27
|
+
<h3 class="section-header">
|
28
|
+
<a href="./index.html">Home</a>
|
29
|
+
<a href="./index.html#classes">Classes</a>
|
30
|
+
<a href="./index.html#methods">Methods</a>
|
31
|
+
</h3>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="file-metadata">
|
36
|
+
<div id="file-list-section" class="section">
|
37
|
+
<h3 class="section-header">In Files</h3>
|
38
|
+
<div class="section-body">
|
39
|
+
<ul>
|
40
|
+
|
41
|
+
<li><a href="./test/app_root/app/jobs/sleep_jobs_rb.html?TB_iframe=true&height=550&width=785"
|
42
|
+
class="thickbox" title="test/app_root/app/jobs/sleep_jobs.rb">test/app_root/app/jobs/sleep_jobs.rb</a></li>
|
43
|
+
|
44
|
+
</ul>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
|
49
|
+
</div>
|
50
|
+
|
51
|
+
<div id="class-metadata">
|
52
|
+
|
53
|
+
<!-- Parent Class -->
|
54
|
+
|
55
|
+
<div id="parent-class-section" class="section">
|
56
|
+
<h3 class="section-header">Parent</h3>
|
57
|
+
|
58
|
+
<p class="link">Object</p>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
|
62
|
+
|
63
|
+
<!-- Namespace Contents -->
|
64
|
+
|
65
|
+
|
66
|
+
<!-- Method Quickref -->
|
67
|
+
|
68
|
+
<div id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
70
|
+
<ul class="link-list">
|
71
|
+
|
72
|
+
<li><a href="#method-i-do_not_never_sleep">#do_not_never_sleep</a></li>
|
73
|
+
|
74
|
+
<li><a href="#method-i-sleep_for">#sleep_for</a></li>
|
75
|
+
|
76
|
+
</ul>
|
77
|
+
</div>
|
78
|
+
|
79
|
+
|
80
|
+
<!-- Included Modules -->
|
81
|
+
|
82
|
+
</div>
|
83
|
+
|
84
|
+
<div id="project-metadata">
|
85
|
+
|
86
|
+
|
87
|
+
<div id="fileindex-section" class="section project-section">
|
88
|
+
<h3 class="section-header">Files</h3>
|
89
|
+
<ul>
|
90
|
+
|
91
|
+
<li class="file"><a href="./Rakefile.html">Rakefile</a></li>
|
92
|
+
|
93
|
+
</ul>
|
94
|
+
</div>
|
95
|
+
|
96
|
+
|
97
|
+
<div id="classindex-section" class="section project-section">
|
98
|
+
<h3 class="section-header">Class Index
|
99
|
+
<span class="search-toggle"><img src="./images/find.png"
|
100
|
+
height="16" width="16" alt="[+]"
|
101
|
+
title="show/hide quicksearch" /></span></h3>
|
102
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
103
|
+
<fieldset>
|
104
|
+
<legend>Quicksearch</legend>
|
105
|
+
<input type="text" name="quicksearch" value=""
|
106
|
+
class="quicksearch-field" />
|
107
|
+
</fieldset>
|
108
|
+
</form>
|
109
|
+
|
110
|
+
<ul class="link-list">
|
111
|
+
|
112
|
+
<li><a href="./JobBoss.html">JobBoss</a></li>
|
113
|
+
|
114
|
+
<li><a href="./JobBoss/Boss.html">JobBoss::Boss</a></li>
|
115
|
+
|
116
|
+
<li><a href="./JobBoss/Config.html">JobBoss::Config</a></li>
|
117
|
+
|
118
|
+
<li><a href="./JobBoss/Job.html">JobBoss::Job</a></li>
|
119
|
+
|
120
|
+
<li><a href="./JobBoss/Queuer.html">JobBoss::Queuer</a></li>
|
121
|
+
|
122
|
+
<li><a href="./ActiveSupport.html">ActiveSupport</a></li>
|
123
|
+
|
124
|
+
<li><a href="./ActiveSupport/TestCase.html">ActiveSupport::TestCase</a></li>
|
125
|
+
|
126
|
+
<li><a href="./CreateJobs.html">CreateJobs</a></li>
|
127
|
+
|
128
|
+
<li><a href="./DaemonTest.html">DaemonTest</a></li>
|
129
|
+
|
130
|
+
<li><a href="./MathJobs.html">MathJobs</a></li>
|
131
|
+
|
132
|
+
<li><a href="./SleepJobs.html">SleepJobs</a></li>
|
133
|
+
|
134
|
+
<li><a href="./StringJobs.html">StringJobs</a></li>
|
135
|
+
|
136
|
+
</ul>
|
137
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
138
|
+
</div>
|
139
|
+
|
140
|
+
|
141
|
+
</div>
|
142
|
+
</div>
|
143
|
+
|
144
|
+
<div id="documentation">
|
145
|
+
<h1 class="class">SleepJobs</h1>
|
146
|
+
|
147
|
+
<div id="description">
|
148
|
+
|
149
|
+
</div>
|
150
|
+
|
151
|
+
<!-- Constants -->
|
152
|
+
|
153
|
+
|
154
|
+
<!-- Attributes -->
|
155
|
+
|
156
|
+
|
157
|
+
<!-- Methods -->
|
158
|
+
|
159
|
+
<div id="public-instance-method-details" class="method-section section">
|
160
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
161
|
+
|
162
|
+
|
163
|
+
<div id="do-not-never-sleep-method" class="method-detail ">
|
164
|
+
<a name="method-i-do_not_never_sleep"></a>
|
165
|
+
|
166
|
+
<div class="method-heading">
|
167
|
+
|
168
|
+
<span class="method-name">do_not_never_sleep</span><span
|
169
|
+
class="method-args">()</span>
|
170
|
+
<span class="method-click-advice">click to toggle source</span>
|
171
|
+
|
172
|
+
</div>
|
173
|
+
|
174
|
+
<div class="method-description">
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
<div class="method-source-code"
|
181
|
+
id="do-not-never-sleep-source">
|
182
|
+
<pre>
|
183
|
+
<span class="ruby-comment cmt"># File test/app_root/app/jobs/sleep_jobs.rb, line 6</span>
|
184
|
+
6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">do_not_never_sleep</span>
|
185
|
+
7: <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">"I can't not do that, Dave."</span>
|
186
|
+
8: <span class="ruby-keyword kw">end</span></pre>
|
187
|
+
</div>
|
188
|
+
|
189
|
+
</div>
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
</div>
|
195
|
+
|
196
|
+
|
197
|
+
<div id="sleep-for-method" class="method-detail ">
|
198
|
+
<a name="method-i-sleep_for"></a>
|
199
|
+
|
200
|
+
<div class="method-heading">
|
201
|
+
|
202
|
+
<span class="method-name">sleep_for</span><span
|
203
|
+
class="method-args">(time)</span>
|
204
|
+
<span class="method-click-advice">click to toggle source</span>
|
205
|
+
|
206
|
+
</div>
|
207
|
+
|
208
|
+
<div class="method-description">
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
<div class="method-source-code"
|
215
|
+
id="sleep-for-source">
|
216
|
+
<pre>
|
217
|
+
<span class="ruby-comment cmt"># File test/app_root/app/jobs/sleep_jobs.rb, line 2</span>
|
218
|
+
2: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sleep_for</span>(<span class="ruby-identifier">time</span>)
|
219
|
+
3: <span class="ruby-identifier">sleep</span>(<span class="ruby-identifier">time</span>)
|
220
|
+
4: <span class="ruby-keyword kw">end</span></pre>
|
221
|
+
</div>
|
222
|
+
|
223
|
+
</div>
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
</div>
|
229
|
+
|
230
|
+
|
231
|
+
</div>
|
232
|
+
|
233
|
+
|
234
|
+
</div>
|
235
|
+
|
236
|
+
|
237
|
+
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
238
|
+
|
239
|
+
<p>Disabled; run with --debug to generate this.</p>
|
240
|
+
|
241
|
+
</div>
|
242
|
+
|
243
|
+
<div id="validator-badges">
|
244
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
245
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
246
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
247
|
+
</div>
|
248
|
+
|
249
|
+
</body>
|
250
|
+
</html>
|
251
|
+
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<head>
|
6
6
|
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
7
7
|
|
8
|
-
<title>
|
8
|
+
<title>Class: StringJobs</title>
|
9
9
|
|
10
10
|
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
11
11
|
|
@@ -19,7 +19,7 @@
|
|
19
19
|
charset="utf-8"></script>
|
20
20
|
|
21
21
|
</head>
|
22
|
-
<body class="
|
22
|
+
<body class="class">
|
23
23
|
|
24
24
|
<div id="metadata">
|
25
25
|
<div id="home-metadata">
|
@@ -38,6 +38,9 @@
|
|
38
38
|
<div class="section-body">
|
39
39
|
<ul>
|
40
40
|
|
41
|
+
<li><a href="./test/app_root/app/jobs/string_jobs_rb.html?TB_iframe=true&height=550&width=785"
|
42
|
+
class="thickbox" title="test/app_root/app/jobs/string_jobs.rb">test/app_root/app/jobs/string_jobs.rb</a></li>
|
43
|
+
|
41
44
|
</ul>
|
42
45
|
</div>
|
43
46
|
</div>
|
@@ -49,24 +52,29 @@
|
|
49
52
|
|
50
53
|
<!-- Parent Class -->
|
51
54
|
|
55
|
+
<div id="parent-class-section" class="section">
|
56
|
+
<h3 class="section-header">Parent</h3>
|
57
|
+
|
58
|
+
<p class="link">Object</p>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
|
52
62
|
|
53
63
|
<!-- Namespace Contents -->
|
54
64
|
|
55
|
-
|
56
|
-
|
65
|
+
|
66
|
+
<!-- Method Quickref -->
|
67
|
+
|
68
|
+
<div id="method-list-section" class="section">
|
69
|
+
<h3 class="section-header">Methods</h3>
|
57
70
|
<ul class="link-list">
|
58
71
|
|
59
|
-
<li><
|
60
|
-
|
61
|
-
<li><span class="type">MODULE</span> <a href="PhusionPassenger/Railz.html">PhusionPassenger::Railz</a></li>
|
72
|
+
<li><a href="#method-i-concatenate">#concatenate</a></li>
|
62
73
|
|
63
74
|
</ul>
|
64
75
|
</div>
|
65
76
|
|
66
77
|
|
67
|
-
<!-- Method Quickref -->
|
68
|
-
|
69
|
-
|
70
78
|
<!-- Included Modules -->
|
71
79
|
|
72
80
|
</div>
|
@@ -80,10 +88,6 @@
|
|
80
88
|
|
81
89
|
<li class="file"><a href="./Rakefile.html">Rakefile</a></li>
|
82
90
|
|
83
|
-
<li class="file"><a href="./vendor/spawn/CHANGELOG.html">CHANGELOG</a></li>
|
84
|
-
|
85
|
-
<li class="file"><a href="./vendor/spawn/LICENSE.html">LICENSE</a></li>
|
86
|
-
|
87
91
|
</ul>
|
88
92
|
</div>
|
89
93
|
|
@@ -113,35 +117,19 @@
|
|
113
117
|
|
114
118
|
<li><a href="./JobBoss/Queuer.html">JobBoss::Queuer</a></li>
|
115
119
|
|
116
|
-
<li><a href="./
|
117
|
-
|
118
|
-
<li><a href="./PhusionPassenger/Rack.html">PhusionPassenger::Rack</a></li>
|
119
|
-
|
120
|
-
<li><a href="./PhusionPassenger/Rack/RequestHandler.html">PhusionPassenger::Rack::RequestHandler</a></li>
|
121
|
-
|
122
|
-
<li><a href="./PhusionPassenger/Railz.html">PhusionPassenger::Railz</a></li>
|
123
|
-
|
124
|
-
<li><a href="./PhusionPassenger/Railz/RequestHandler.html">PhusionPassenger::Railz::RequestHandler</a></li>
|
120
|
+
<li><a href="./ActiveSupport.html">ActiveSupport</a></li>
|
125
121
|
|
126
|
-
<li><a href="./
|
122
|
+
<li><a href="./ActiveSupport/TestCase.html">ActiveSupport::TestCase</a></li>
|
127
123
|
|
128
|
-
<li><a href="./
|
129
|
-
|
130
|
-
<li><a href="./Passenger/Railz/RequestHandler.html">Passenger::Railz::RequestHandler</a></li>
|
131
|
-
|
132
|
-
<li><a href="./ActiveRecord.html">ActiveRecord</a></li>
|
133
|
-
|
134
|
-
<li><a href="./ActiveRecord/Base.html">ActiveRecord::Base</a></li>
|
135
|
-
|
136
|
-
<li><a href="./Mongrel.html">Mongrel</a></li>
|
124
|
+
<li><a href="./CreateJobs.html">CreateJobs</a></li>
|
137
125
|
|
138
|
-
<li><a href="./
|
126
|
+
<li><a href="./DaemonTest.html">DaemonTest</a></li>
|
139
127
|
|
140
|
-
<li><a href="./
|
128
|
+
<li><a href="./MathJobs.html">MathJobs</a></li>
|
141
129
|
|
142
|
-
<li><a href="./
|
130
|
+
<li><a href="./SleepJobs.html">SleepJobs</a></li>
|
143
131
|
|
144
|
-
<li><a href="./
|
132
|
+
<li><a href="./StringJobs.html">StringJobs</a></li>
|
145
133
|
|
146
134
|
</ul>
|
147
135
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
@@ -152,7 +140,7 @@
|
|
152
140
|
</div>
|
153
141
|
|
154
142
|
<div id="documentation">
|
155
|
-
<h1 class="
|
143
|
+
<h1 class="class">StringJobs</h1>
|
156
144
|
|
157
145
|
<div id="description">
|
158
146
|
|
@@ -166,6 +154,46 @@
|
|
166
154
|
|
167
155
|
<!-- Methods -->
|
168
156
|
|
157
|
+
<div id="public-instance-method-details" class="method-section section">
|
158
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
159
|
+
|
160
|
+
|
161
|
+
<div id="concatenate-method" class="method-detail ">
|
162
|
+
<a name="method-i-concatenate"></a>
|
163
|
+
|
164
|
+
<div class="method-heading">
|
165
|
+
|
166
|
+
<span class="method-name">concatenate</span><span
|
167
|
+
class="method-args">(*args)</span>
|
168
|
+
<span class="method-click-advice">click to toggle source</span>
|
169
|
+
|
170
|
+
</div>
|
171
|
+
|
172
|
+
<div class="method-description">
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
<div class="method-source-code"
|
179
|
+
id="concatenate-source">
|
180
|
+
<pre>
|
181
|
+
<span class="ruby-comment cmt"># File test/app_root/app/jobs/string_jobs.rb, line 2</span>
|
182
|
+
2: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">concatenate</span>(*<span class="ruby-identifier">args</span>)
|
183
|
+
3: <span class="ruby-identifier">args</span>.<span class="ruby-identifier">join</span>
|
184
|
+
4: <span class="ruby-keyword kw">end</span></pre>
|
185
|
+
</div>
|
186
|
+
|
187
|
+
</div>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
</div>
|
193
|
+
|
194
|
+
|
195
|
+
</div>
|
196
|
+
|
169
197
|
|
170
198
|
</div>
|
171
199
|
|
data/doc/bin/job_boss.html
CHANGED
data/doc/created.rid
CHANGED
@@ -1,9 +1,15 @@
|
|
1
|
-
|
2
|
-
./bin/job_boss
|
3
|
-
./lib/job_boss/boss.rb
|
1
|
+
Sun, 28 Nov 2010 17:56:11 -0500
|
2
|
+
./bin/job_boss Sun, 28 Nov 2010 10:23:34 -0500
|
3
|
+
./lib/job_boss/boss.rb Sun, 28 Nov 2010 17:49:41 -0500
|
4
4
|
./lib/job_boss/capistrano.rb Wed, 24 Nov 2010 14:13:12 -0500
|
5
|
-
./lib/job_boss/
|
6
|
-
./lib/job_boss/job.rb
|
7
|
-
./lib/job_boss/queuer.rb Fri, 26 Nov 2010
|
8
|
-
./lib/migrate.rb
|
9
|
-
./Rakefile
|
5
|
+
./lib/job_boss/config.rb Sun, 28 Nov 2010 10:39:29 -0500
|
6
|
+
./lib/job_boss/job.rb Sun, 28 Nov 2010 17:56:05 -0500
|
7
|
+
./lib/job_boss/queuer.rb Fri, 26 Nov 2010 17:21:49 -0500
|
8
|
+
./lib/migrate.rb Sun, 28 Nov 2010 17:25:41 -0500
|
9
|
+
./Rakefile Sun, 28 Nov 2010 11:51:13 -0500
|
10
|
+
./test/app_root/app/jobs/math_jobs.rb Sun, 28 Nov 2010 10:56:16 -0500
|
11
|
+
./test/app_root/app/jobs/sleep_jobs.rb Sun, 28 Nov 2010 17:28:24 -0500
|
12
|
+
./test/app_root/app/jobs/string_jobs.rb Sun, 28 Nov 2010 14:49:29 -0500
|
13
|
+
./test/test_helper.rb Sun, 28 Nov 2010 17:50:45 -0500
|
14
|
+
./test/unit/daemon_test.rb Sun, 28 Nov 2010 17:42:32 -0500
|
15
|
+
./test/unit/job_test.rb Sun, 28 Nov 2010 17:55:00 -0500
|
data/doc/index.html
CHANGED
@@ -48,8 +48,20 @@
|
|
48
48
|
|
49
49
|
<li class="class"><a href="JobBoss/Queuer.html">JobBoss::Queuer</a></li>
|
50
50
|
|
51
|
+
<li class="module"><a href="ActiveSupport.html">ActiveSupport</a></li>
|
52
|
+
|
53
|
+
<li class="class"><a href="ActiveSupport/TestCase.html">ActiveSupport::TestCase</a></li>
|
54
|
+
|
51
55
|
<li class="class"><a href="CreateJobs.html">CreateJobs</a></li>
|
52
56
|
|
57
|
+
<li class="class"><a href="DaemonTest.html">DaemonTest</a></li>
|
58
|
+
|
59
|
+
<li class="class"><a href="MathJobs.html">MathJobs</a></li>
|
60
|
+
|
61
|
+
<li class="class"><a href="SleepJobs.html">SleepJobs</a></li>
|
62
|
+
|
63
|
+
<li class="class"><a href="StringJobs.html">StringJobs</a></li>
|
64
|
+
|
53
65
|
</ul>
|
54
66
|
|
55
67
|
<h2 id="methods">Methods</h2>
|
@@ -61,29 +73,55 @@
|
|
61
73
|
|
62
74
|
<li><a href="CreateJobs.html#method-c-down">::down — CreateJobs</a></li>
|
63
75
|
|
76
|
+
<li><a href="JobBoss/Boss.html#method-c-logger">::logger — JobBoss::Boss</a></li>
|
77
|
+
|
64
78
|
<li><a href="JobBoss/Boss.html#method-c-new">::new — JobBoss::Boss</a></li>
|
65
79
|
|
66
80
|
<li><a href="JobBoss/Job.html#method-c-pending_paths">::pending_paths — JobBoss::Job</a></li>
|
67
81
|
|
68
82
|
<li><a href="JobBoss/Boss.html#method-c-queue">::queue — JobBoss::Boss</a></li>
|
69
83
|
|
84
|
+
<li><a href="JobBoss/Boss.html#method-c-resolve_path">::resolve_path — JobBoss::Boss</a></li>
|
85
|
+
|
86
|
+
<li><a href="JobBoss/Job.html#method-c-result_hash">::result_hash — JobBoss::Job</a></li>
|
87
|
+
|
70
88
|
<li><a href="CreateJobs.html#method-c-up">::up — CreateJobs</a></li>
|
71
89
|
|
72
|
-
<li><a href="JobBoss.html#method-
|
90
|
+
<li><a href="JobBoss/Job.html#method-c-wait_for_jobs">::wait_for_jobs — JobBoss::Job</a></li>
|
91
|
+
|
92
|
+
<li><a href="ActiveSupport/TestCase.html#method-i-assert_pid_not_running">#assert_pid_not_running — ActiveSupport::TestCase</a></li>
|
93
|
+
|
94
|
+
<li><a href="ActiveSupport/TestCase.html#method-i-assert_pid_running">#assert_pid_running — ActiveSupport::TestCase</a></li>
|
95
|
+
|
96
|
+
<li><a href="JobBoss/Job.html#method-i-assigned%3F">#assigned? — JobBoss::Job</a></li>
|
97
|
+
|
98
|
+
<li><a href="JobBoss/Boss.html#method-i-available_employees">#available_employees — JobBoss::Boss</a></li>
|
73
99
|
|
74
100
|
<li><a href="JobBoss/Job.html#method-i-cancel">#cancel — JobBoss::Job</a></li>
|
75
101
|
|
76
102
|
<li><a href="JobBoss/Job.html#method-i-cancelled%3F">#cancelled? — JobBoss::Job</a></li>
|
77
103
|
|
78
|
-
<li><a href="
|
104
|
+
<li><a href="ActiveSupport/TestCase.html#method-i-clean_app_environment">#clean_app_environment — ActiveSupport::TestCase</a></li>
|
105
|
+
|
106
|
+
<li><a href="JobBoss/Boss.html#method-i-cleanup_running_jobs">#cleanup_running_jobs — JobBoss::Boss</a></li>
|
79
107
|
|
80
108
|
<li><a href="JobBoss/Job.html#method-i-completed%3F">#completed? — JobBoss::Job</a></li>
|
81
109
|
|
82
|
-
<li><a href="
|
110
|
+
<li><a href="StringJobs.html#method-i-concatenate">#concatenate — StringJobs</a></li>
|
83
111
|
|
84
112
|
<li><a href="JobBoss/Job.html#method-i-dispatch">#dispatch — JobBoss::Job</a></li>
|
85
113
|
|
86
|
-
<li><a href="
|
114
|
+
<li><a href="SleepJobs.html#method-i-do_not_never_sleep">#do_not_never_sleep — SleepJobs</a></li>
|
115
|
+
|
116
|
+
<li><a href="JobBoss/Job.html#method-i-error">#error — JobBoss::Job</a></li>
|
117
|
+
|
118
|
+
<li><a href="JobBoss/Boss.html#method-i-establish_active_record_connection">#establish_active_record_connection — JobBoss::Boss</a></li>
|
119
|
+
|
120
|
+
<li><a href="ActiveSupport/TestCase.html#method-i-get_pid_from_startup">#get_pid_from_startup — ActiveSupport::TestCase</a></li>
|
121
|
+
|
122
|
+
<li><a href="MathJobs.html#method-i-is_prime%3F">#is_prime? — MathJobs</a></li>
|
123
|
+
|
124
|
+
<li><a href="JobBoss/Boss.html#method-i-kill_job">#kill_job — JobBoss::Boss</a></li>
|
87
125
|
|
88
126
|
<li><a href="JobBoss/Job.html#method-i-mark_as_cancelled">#mark_as_cancelled — JobBoss::Job</a></li>
|
89
127
|
|
@@ -99,22 +137,40 @@
|
|
99
137
|
|
100
138
|
<li><a href="JobBoss/Queuer.html#method-i-method_missing">#method_missing — JobBoss::Queuer</a></li>
|
101
139
|
|
102
|
-
<li><a href="JobBoss.html#method-i-migrate">#migrate — JobBoss</a></li>
|
140
|
+
<li><a href="JobBoss/Boss.html#method-i-migrate">#migrate — JobBoss::Boss</a></li>
|
103
141
|
|
104
142
|
<li><a href="JobBoss/Config.html#method-i-parse_args">#parse_args — JobBoss::Config</a></li>
|
105
143
|
|
106
|
-
<li><a href="JobBoss.html#method-i-require_job_classes">#require_job_classes — JobBoss</a></li>
|
144
|
+
<li><a href="JobBoss/Boss.html#method-i-require_job_classes">#require_job_classes — JobBoss::Boss</a></li>
|
145
|
+
|
146
|
+
<li><a href="ActiveSupport/TestCase.html#method-i-restart_daemon">#restart_daemon — ActiveSupport::TestCase</a></li>
|
147
|
+
|
148
|
+
<li><a href="JobBoss/Job.html#method-i-result">#result — JobBoss::Job</a></li>
|
107
149
|
|
108
|
-
<li><a href="JobBoss.html#method-i-
|
150
|
+
<li><a href="JobBoss/Job.html#method-i-result%3D">#result= — JobBoss::Job</a></li>
|
151
|
+
|
152
|
+
<li><a href="ActiveSupport/TestCase.html#method-i-setup_paths">#setup_paths — ActiveSupport::TestCase</a></li>
|
153
|
+
|
154
|
+
<li><a href="JobBoss/Boss.html#method-i-shutdown_running_jobs">#shutdown_running_jobs — JobBoss::Boss</a></li>
|
155
|
+
|
156
|
+
<li><a href="SleepJobs.html#method-i-sleep_for">#sleep_for — SleepJobs</a></li>
|
109
157
|
|
110
158
|
<li><a href="JobBoss/Boss.html#method-i-start">#start — JobBoss::Boss</a></li>
|
111
159
|
|
160
|
+
<li><a href="ActiveSupport/TestCase.html#method-i-start_daemon">#start_daemon — ActiveSupport::TestCase</a></li>
|
161
|
+
|
112
162
|
<li><a href="JobBoss/Boss.html#method-i-stop">#stop — JobBoss::Boss</a></li>
|
113
163
|
|
164
|
+
<li><a href="ActiveSupport/TestCase.html#method-i-stop_daemon">#stop_daemon — ActiveSupport::TestCase</a></li>
|
165
|
+
|
114
166
|
<li><a href="JobBoss/Job.html#method-i-succeeded%3F">#succeeded? — JobBoss::Job</a></li>
|
115
167
|
|
116
168
|
<li><a href="JobBoss/Job.html#method-i-time_taken">#time_taken — JobBoss::Job</a></li>
|
117
169
|
|
170
|
+
<li><a href="ActiveSupport/TestCase.html#method-i-wait_for_file">#wait_for_file — ActiveSupport::TestCase</a></li>
|
171
|
+
|
172
|
+
<li><a href="ActiveSupport/TestCase.html#method-i-wait_until_job_assigned">#wait_until_job_assigned — ActiveSupport::TestCase</a></li>
|
173
|
+
|
118
174
|
</ul>
|
119
175
|
|
120
176
|
<div id="validator-badges">
|