rbatch 1.6.3 → 1.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -5
- data/doc/rdoc/CHANGELOG.html +182 -0
- data/doc/rdoc/LICENSE.html +98 -0
- data/doc/rdoc/RBatch/Cmd.html +333 -0
- data/doc/rdoc/RBatch/CmdException.html +158 -0
- data/doc/rdoc/RBatch/CmdResult.html +496 -0
- data/doc/rdoc/RBatch/Config/Exception.html +158 -0
- data/doc/rdoc/RBatch/Config.html +355 -0
- data/doc/rdoc/RBatch/Log.html +743 -0
- data/doc/rdoc/RBatch.html +457 -0
- data/doc/rdoc/created.rid +8 -0
- data/doc/rdoc/images/brick.png +0 -0
- data/doc/rdoc/images/brick_link.png +0 -0
- data/doc/rdoc/images/bug.png +0 -0
- data/doc/rdoc/images/bullet_black.png +0 -0
- data/doc/rdoc/images/bullet_toggle_minus.png +0 -0
- data/doc/rdoc/images/bullet_toggle_plus.png +0 -0
- data/doc/rdoc/images/date.png +0 -0
- data/doc/rdoc/images/find.png +0 -0
- data/doc/rdoc/images/loadingAnimation.gif +0 -0
- data/doc/rdoc/images/macFFBgHack.png +0 -0
- data/doc/rdoc/images/package.png +0 -0
- data/doc/rdoc/images/page_green.png +0 -0
- data/doc/rdoc/images/page_white_text.png +0 -0
- data/doc/rdoc/images/page_white_width.png +0 -0
- data/doc/rdoc/images/plugin.png +0 -0
- data/doc/rdoc/images/ruby.png +0 -0
- data/doc/rdoc/images/tag_green.png +0 -0
- data/doc/rdoc/images/wrench.png +0 -0
- data/doc/rdoc/images/wrench_orange.png +0 -0
- data/doc/rdoc/images/zoom.png +0 -0
- data/doc/rdoc/index.html +136 -0
- data/doc/rdoc/js/darkfish.js +116 -0
- data/doc/rdoc/js/jquery.js +32 -0
- data/doc/rdoc/js/quicksearch.js +114 -0
- data/doc/rdoc/js/thickbox-compressed.js +10 -0
- data/doc/rdoc/lib/rbatch/cmd_rb.html +56 -0
- data/doc/rdoc/lib/rbatch/config_rb.html +56 -0
- data/doc/rdoc/lib/rbatch/log_rb.html +58 -0
- data/doc/rdoc/lib/rbatch_rb.html +58 -0
- data/doc/rdoc/rdoc.css +706 -0
- data/sample/bin/apache_log_insert.rb +108 -0
- data/sample/bin/file_batch_copy.rb +13 -0
- data/sample/bin/mysql_data_backup.rb +42 -0
- data/sample/bin/openam_log_insert.rb +105 -0
- data/sample/bin/openldap_backup.rb +7 -0
- data/sample/bin/webagent_log_insert.rb +108 -0
- data/sample/conf/apache_log_insert.yaml +8 -0
- data/sample/conf/file_batch_copy.yaml +5 -0
- data/sample/conf/mysql_data_backup.yaml +5 -0
- data/sample/conf/openam_log_insert.yaml +35 -0
- data/sample/conf/openldap_backup.yaml +2 -0
- data/sample/conf/rbatch.yaml +68 -0
- data/sample/conf/test.yaml +5 -0
- data/sample/conf/webagent_log_insert.yaml +16 -0
- data/sample/data/access_log.1 +50 -0
- data/sample/data/access_log.2012-07-10 +50 -0
- data/sample/data/amAgent_localhost_80.log.1 +39 -0
- data/sample/data/amAgent_localhost_80.log.2012-07-10 +40 -0
- data/sample/data/amAuthentication.access.1 +30 -0
- data/sample/data/amAuthentication.access.2012-07-10 +30 -0
- data/sample/data/amAuthentication.error.1 +10 -0
- data/sample/data/amAuthentication.error.2012-07-10 +6 -0
- data/sample/log/20130120_apache_log_insert.log +171 -0
- data/sample/log/20130120_openam_log_insert.log +143 -0
- data/sample/log/20130121_apache_log_insert.log +103 -0
- data/sample/log/20130121_file_batch_copy.log +15 -0
- data/sample/log/20130121_openam_log_insert.log +39 -0
- data/sample/log/20130121_webagent_log_insert.log +432 -0
- data/sample/log/empty +0 -0
- data/sample/moto/README +16 -0
- data/sample/moto/auditlog.src.zip +0 -0
- data/sample/moto/build.gradle +106 -0
- data/sample/moto/gradle/wrapper/gradle-wrapper.jar +0 -0
- data/sample/moto/gradle/wrapper/gradle-wrapper.properties +7 -0
- data/sample/moto/gradle.properties +12 -0
- data/sample/moto/gradlew +164 -0
- data/sample/moto/gradlew.bat +90 -0
- data/sample/moto/settings.gradle +1 -0
- data/sample/moto/src/main/bin/delete_auditlog.sh +176 -0
- data/sample/moto/src/main/bin/delete_workflowinstances.sh +315 -0
- data/sample/moto/src/main/bin/import_auth_log.sh +23 -0
- data/sample/moto/src/main/etc/delete_auditlog.param +39 -0
- data/sample/moto/src/main/etc/delete_workflowinstances.param +30 -0
- data/sample/moto/src/main/etc/log4j.xml +28 -0
- data/sample/moto/src/main/etc/status.properties +27 -0
- data/sample/moto/src/main/etc/sysparam.properties +54 -0
- data/sample/moto/src/main/java/jp/ossc/imortAuditlog/DateUtil.java +48 -0
- data/sample/moto/src/main/java/jp/ossc/imortAuditlog/ImportAuthLogMain.java +36 -0
- data/sample/moto/src/main/java/jp/ossc/imortAuditlog/LogReader.java +521 -0
- data/sample/moto/src/main/java/jp/ossc/imortAuditlog/MysqlController.java +315 -0
- data/sample/moto/src/main/logrotate/delete_auditlog +6 -0
- data/sample/moto/src/main/logrotate/delete_workflowinstanceslog +6 -0
- data/sample/moto/src/main/sql/tables.sql +36 -0
- data/test/cases/test_cmd.rb +120 -0
- data/test/cases/test_config.rb +41 -0
- data/test/cases/test_log.rb +599 -0
- data/test/conf/rbatch.yaml +0 -0
- data/test/mocks/PrintArgs.exe +0 -0
- data/test/mocks/win_cmd.exe +0 -0
- metadata +100 -1
@@ -0,0 +1,457 @@
|
|
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>Module: RBatch</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="module">
|
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="./lib/rbatch/config_rb.html?TB_iframe=true&height=550&width=785"
|
42
|
+
class="thickbox" title="lib/rbatch/config.rb">lib/rbatch/config.rb</a></li>
|
43
|
+
|
44
|
+
<li><a href="./lib/rbatch/cmd_rb.html?TB_iframe=true&height=550&width=785"
|
45
|
+
class="thickbox" title="lib/rbatch/cmd.rb">lib/rbatch/cmd.rb</a></li>
|
46
|
+
|
47
|
+
<li><a href="./lib/rbatch/log_rb.html?TB_iframe=true&height=550&width=785"
|
48
|
+
class="thickbox" title="lib/rbatch/log.rb">lib/rbatch/log.rb</a></li>
|
49
|
+
|
50
|
+
<li><a href="./lib/rbatch_rb.html?TB_iframe=true&height=550&width=785"
|
51
|
+
class="thickbox" title="lib/rbatch.rb">lib/rbatch.rb</a></li>
|
52
|
+
|
53
|
+
</ul>
|
54
|
+
</div>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
|
58
|
+
</div>
|
59
|
+
|
60
|
+
<div id="class-metadata">
|
61
|
+
|
62
|
+
<!-- Parent Class -->
|
63
|
+
|
64
|
+
|
65
|
+
<!-- Namespace Contents -->
|
66
|
+
|
67
|
+
<div id="namespace-list-section" class="section">
|
68
|
+
<h3 class="section-header">Namespace</h3>
|
69
|
+
<ul class="link-list">
|
70
|
+
|
71
|
+
<li><span class="type">CLASS</span> <a href="RBatch/Cmd.html">RBatch::Cmd</a></li>
|
72
|
+
|
73
|
+
<li><span class="type">CLASS</span> <a href="RBatch/CmdException.html">RBatch::CmdException</a></li>
|
74
|
+
|
75
|
+
<li><span class="type">CLASS</span> <a href="RBatch/CmdResult.html">RBatch::CmdResult</a></li>
|
76
|
+
|
77
|
+
<li><span class="type">CLASS</span> <a href="RBatch/Config.html">RBatch::Config</a></li>
|
78
|
+
|
79
|
+
<li><span class="type">CLASS</span> <a href="RBatch/Log.html">RBatch::Log</a></li>
|
80
|
+
|
81
|
+
</ul>
|
82
|
+
</div>
|
83
|
+
|
84
|
+
|
85
|
+
<!-- Method Quickref -->
|
86
|
+
|
87
|
+
<div id="method-list-section" class="section">
|
88
|
+
<h3 class="section-header">Methods</h3>
|
89
|
+
<ul class="link-list">
|
90
|
+
|
91
|
+
<li><a href="#method-i-cmd">#cmd</a></li>
|
92
|
+
|
93
|
+
<li><a href="#method-i-common_config">#common_config</a></li>
|
94
|
+
|
95
|
+
<li><a href="#method-i-common_config_path">#common_config_path</a></li>
|
96
|
+
|
97
|
+
<li><a href="#method-i-config">#config</a></li>
|
98
|
+
|
99
|
+
<li><a href="#method-i-program_name">#program_name</a></li>
|
100
|
+
|
101
|
+
<li><a href="#method-i-program_name%3D">#program_name=</a></li>
|
102
|
+
|
103
|
+
<li><a href="#method-i-tmp_dir">#tmp_dir</a></li>
|
104
|
+
|
105
|
+
</ul>
|
106
|
+
</div>
|
107
|
+
|
108
|
+
|
109
|
+
<!-- Included Modules -->
|
110
|
+
|
111
|
+
</div>
|
112
|
+
|
113
|
+
<div id="project-metadata">
|
114
|
+
|
115
|
+
|
116
|
+
<div id="fileindex-section" class="section project-section">
|
117
|
+
<h3 class="section-header">Files</h3>
|
118
|
+
<ul>
|
119
|
+
|
120
|
+
<li class="file"><a href="./CHANGELOG.html">CHANGELOG</a></li>
|
121
|
+
|
122
|
+
<li class="file"><a href="./LICENSE.html">LICENSE</a></li>
|
123
|
+
|
124
|
+
</ul>
|
125
|
+
</div>
|
126
|
+
|
127
|
+
|
128
|
+
<div id="classindex-section" class="section project-section">
|
129
|
+
<h3 class="section-header">Class Index
|
130
|
+
<span class="search-toggle"><img src="./images/find.png"
|
131
|
+
height="16" width="16" alt="[+]"
|
132
|
+
title="show/hide quicksearch" /></span></h3>
|
133
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
134
|
+
<fieldset>
|
135
|
+
<legend>Quicksearch</legend>
|
136
|
+
<input type="text" name="quicksearch" value=""
|
137
|
+
class="quicksearch-field" />
|
138
|
+
</fieldset>
|
139
|
+
</form>
|
140
|
+
|
141
|
+
<ul class="link-list">
|
142
|
+
|
143
|
+
<li><a href="./RBatch.html">RBatch</a></li>
|
144
|
+
|
145
|
+
<li><a href="./RBatch/Cmd.html">RBatch::Cmd</a></li>
|
146
|
+
|
147
|
+
<li><a href="./RBatch/CmdException.html">RBatch::CmdException</a></li>
|
148
|
+
|
149
|
+
<li><a href="./RBatch/CmdResult.html">RBatch::CmdResult</a></li>
|
150
|
+
|
151
|
+
<li><a href="./RBatch/Config.html">RBatch::Config</a></li>
|
152
|
+
|
153
|
+
<li><a href="./RBatch/Config/Exception.html">RBatch::Config::Exception</a></li>
|
154
|
+
|
155
|
+
<li><a href="./RBatch/Log.html">RBatch::Log</a></li>
|
156
|
+
|
157
|
+
</ul>
|
158
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
159
|
+
</div>
|
160
|
+
|
161
|
+
|
162
|
+
</div>
|
163
|
+
</div>
|
164
|
+
|
165
|
+
<div id="documentation">
|
166
|
+
<h1 class="module">RBatch</h1>
|
167
|
+
|
168
|
+
<div id="description">
|
169
|
+
|
170
|
+
</div>
|
171
|
+
|
172
|
+
<!-- Constants -->
|
173
|
+
|
174
|
+
|
175
|
+
<!-- Attributes -->
|
176
|
+
|
177
|
+
|
178
|
+
<!-- Methods -->
|
179
|
+
|
180
|
+
<div id="public-instance-method-details" class="method-section section">
|
181
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
182
|
+
|
183
|
+
|
184
|
+
<div id="cmd-method" class="method-detail ">
|
185
|
+
<a name="method-i-cmd"></a>
|
186
|
+
|
187
|
+
<div class="method-heading">
|
188
|
+
|
189
|
+
<span class="method-name">cmd</span><span
|
190
|
+
class="method-args">(cmd_str,opt = nil)</span>
|
191
|
+
<span class="method-click-advice">click to toggle source</span>
|
192
|
+
|
193
|
+
</div>
|
194
|
+
|
195
|
+
<div class="method-description">
|
196
|
+
|
197
|
+
<p>
|
198
|
+
shortcut of <a href="RBatch/Cmd.html">RBatch::Cmd</a>
|
199
|
+
</p>
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
<div class="method-source-code"
|
204
|
+
id="cmd-source">
|
205
|
+
<pre>
|
206
|
+
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line 114</span>
|
207
|
+
114: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd</span>(<span class="ruby-identifier">cmd_str</span>,<span class="ruby-identifier">opt</span> = <span class="ruby-keyword kw">nil</span>)
|
208
|
+
115: <span class="ruby-constant">Cmd</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">cmd_str</span>,<span class="ruby-identifier">opt</span>).<span class="ruby-identifier">run</span>
|
209
|
+
116: <span class="ruby-keyword kw">end</span></pre>
|
210
|
+
</div>
|
211
|
+
|
212
|
+
</div>
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
</div>
|
218
|
+
|
219
|
+
|
220
|
+
<div id="common-config-method" class="method-detail ">
|
221
|
+
<a name="method-i-common_config"></a>
|
222
|
+
|
223
|
+
<div class="method-heading">
|
224
|
+
|
225
|
+
<span class="method-name">common_config</span><span
|
226
|
+
class="method-args">()</span>
|
227
|
+
<span class="method-click-advice">click to toggle source</span>
|
228
|
+
|
229
|
+
</div>
|
230
|
+
|
231
|
+
<div class="method-description">
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
<div class="method-source-code"
|
238
|
+
id="common-config-source">
|
239
|
+
<pre>
|
240
|
+
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 21</span>
|
241
|
+
21: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">common_config</span>
|
242
|
+
22: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">common_config_path</span>)
|
243
|
+
23: <span class="ruby-identifier">yaml</span> = <span class="ruby-constant">YAML</span><span class="ruby-operator">::</span><span class="ruby-identifier">load_file</span>(<span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">common_config_path</span>)
|
244
|
+
24: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">yaml</span>
|
245
|
+
25: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">yaml</span>
|
246
|
+
26: <span class="ruby-keyword kw">else</span>
|
247
|
+
27: <span class="ruby-comment cmt"># If file is emply , YAML::load_file is false</span>
|
248
|
+
28: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
249
|
+
29: <span class="ruby-keyword kw">end</span>
|
250
|
+
30: <span class="ruby-keyword kw">else</span>
|
251
|
+
31: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
252
|
+
32: <span class="ruby-keyword kw">end</span>
|
253
|
+
33: <span class="ruby-keyword kw">end</span></pre>
|
254
|
+
</div>
|
255
|
+
|
256
|
+
</div>
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
</div>
|
262
|
+
|
263
|
+
|
264
|
+
<div id="common-config-path-method" class="method-detail ">
|
265
|
+
<a name="method-i-common_config_path"></a>
|
266
|
+
|
267
|
+
<div class="method-heading">
|
268
|
+
|
269
|
+
<span class="method-name">common_config_path</span><span
|
270
|
+
class="method-args">()</span>
|
271
|
+
<span class="method-click-advice">click to toggle source</span>
|
272
|
+
|
273
|
+
</div>
|
274
|
+
|
275
|
+
<div class="method-description">
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
<div class="method-source-code"
|
282
|
+
id="common-config-path-source">
|
283
|
+
<pre>
|
284
|
+
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 18</span>
|
285
|
+
18: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">common_config_path</span>
|
286
|
+
19: <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">program_name</span>),<span class="ruby-value str">".."</span>,<span class="ruby-value str">"conf"</span>,<span class="ruby-value str">"rbatch.yaml"</span>)
|
287
|
+
20: <span class="ruby-keyword kw">end</span></pre>
|
288
|
+
</div>
|
289
|
+
|
290
|
+
</div>
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
</div>
|
296
|
+
|
297
|
+
|
298
|
+
<div id="config-method" class="method-detail ">
|
299
|
+
<a name="method-i-config"></a>
|
300
|
+
|
301
|
+
<div class="method-heading">
|
302
|
+
|
303
|
+
<span class="method-name">config</span><span
|
304
|
+
class="method-args">()</span>
|
305
|
+
<span class="method-click-advice">click to toggle source</span>
|
306
|
+
|
307
|
+
</div>
|
308
|
+
|
309
|
+
<div class="method-description">
|
310
|
+
|
311
|
+
<p>
|
312
|
+
Alias of RBatch::Config.new
|
313
|
+
</p>
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
<div class="method-source-code"
|
318
|
+
id="config-source">
|
319
|
+
<pre>
|
320
|
+
<span class="ruby-comment cmt"># File lib/rbatch/config.rb, line 9</span>
|
321
|
+
9: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">config</span> ; <span class="ruby-constant">Config</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">end</span></pre>
|
322
|
+
</div>
|
323
|
+
|
324
|
+
</div>
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
</div>
|
330
|
+
|
331
|
+
|
332
|
+
<div id="program-name-method" class="method-detail ">
|
333
|
+
<a name="method-i-program_name"></a>
|
334
|
+
|
335
|
+
<div class="method-heading">
|
336
|
+
|
337
|
+
<span class="method-name">program_name</span><span
|
338
|
+
class="method-args">()</span>
|
339
|
+
<span class="method-click-advice">click to toggle source</span>
|
340
|
+
|
341
|
+
</div>
|
342
|
+
|
343
|
+
<div class="method-description">
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
<div class="method-source-code"
|
350
|
+
id="program-name-source">
|
351
|
+
<pre>
|
352
|
+
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 7</span>
|
353
|
+
7: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">program_name</span> ; <span class="ruby-identifier">@@program_name</span> ; <span class="ruby-keyword kw">end</span></pre>
|
354
|
+
</div>
|
355
|
+
|
356
|
+
</div>
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
</div>
|
362
|
+
|
363
|
+
|
364
|
+
<div id="program-name--method" class="method-detail ">
|
365
|
+
<a name="method-i-program_name%3D"></a>
|
366
|
+
|
367
|
+
<div class="method-heading">
|
368
|
+
|
369
|
+
<span class="method-name">program_name=</span><span
|
370
|
+
class="method-args">(f)</span>
|
371
|
+
<span class="method-click-advice">click to toggle source</span>
|
372
|
+
|
373
|
+
</div>
|
374
|
+
|
375
|
+
<div class="method-description">
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
<div class="method-source-code"
|
382
|
+
id="program-name--source">
|
383
|
+
<pre>
|
384
|
+
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 6</span>
|
385
|
+
6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">program_name=</span>(<span class="ruby-identifier">f</span>) ; <span class="ruby-identifier">@@program_name</span> = <span class="ruby-identifier">f</span> ; <span class="ruby-keyword kw">end</span></pre>
|
386
|
+
</div>
|
387
|
+
|
388
|
+
</div>
|
389
|
+
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
</div>
|
394
|
+
|
395
|
+
|
396
|
+
<div id="tmp-dir-method" class="method-detail ">
|
397
|
+
<a name="method-i-tmp_dir"></a>
|
398
|
+
|
399
|
+
<div class="method-heading">
|
400
|
+
|
401
|
+
<span class="method-name">tmp_dir</span><span
|
402
|
+
class="method-args">()</span>
|
403
|
+
<span class="method-click-advice">click to toggle source</span>
|
404
|
+
|
405
|
+
</div>
|
406
|
+
|
407
|
+
<div class="method-description">
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
<div class="method-source-code"
|
414
|
+
id="tmp-dir-source">
|
415
|
+
<pre>
|
416
|
+
<span class="ruby-comment cmt"># File lib/rbatch.rb, line 8</span>
|
417
|
+
8: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tmp_dir</span>
|
418
|
+
9: <span class="ruby-keyword kw">case</span> <span class="ruby-constant">RUBY_PLATFORM</span>
|
419
|
+
10: <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/mswin|mingw/</span>
|
420
|
+
11: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">ENV</span>[<span class="ruby-value str">"TEMP"</span>]
|
421
|
+
12: <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/cygwin|linux/</span>
|
422
|
+
13: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">"/tmp/"</span>
|
423
|
+
14: <span class="ruby-keyword kw">else</span>
|
424
|
+
15: <span class="ruby-identifier">raise</span> <span class="ruby-value str">"Unknown RUBY_PRATFORM : "</span> <span class="ruby-operator">+</span> <span class="ruby-constant">RUBY_PLATFORM</span>
|
425
|
+
16: <span class="ruby-keyword kw">end</span>
|
426
|
+
17: <span class="ruby-keyword kw">end</span></pre>
|
427
|
+
</div>
|
428
|
+
|
429
|
+
</div>
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
|
434
|
+
</div>
|
435
|
+
|
436
|
+
|
437
|
+
</div>
|
438
|
+
|
439
|
+
|
440
|
+
</div>
|
441
|
+
|
442
|
+
|
443
|
+
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
444
|
+
|
445
|
+
<p>Disabled; run with --debug to generate this.</p>
|
446
|
+
|
447
|
+
</div>
|
448
|
+
|
449
|
+
<div id="validator-badges">
|
450
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
451
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
452
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
453
|
+
</div>
|
454
|
+
|
455
|
+
</body>
|
456
|
+
</html>
|
457
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
Mon, 21 Jan 2013 21:48:41 +0900
|
2
|
+
README.md Mon, 14 Jan 2013 11:19:28 +0900
|
3
|
+
LICENSE Sun, 06 Jan 2013 13:26:21 +0900
|
4
|
+
CHANGELOG Mon, 14 Jan 2013 11:11:10 +0900
|
5
|
+
lib/rbatch/config.rb Mon, 14 Jan 2013 11:07:19 +0900
|
6
|
+
lib/rbatch/cmd.rb Sun, 06 Jan 2013 13:26:21 +0900
|
7
|
+
lib/rbatch/log.rb Mon, 14 Jan 2013 11:46:14 +0900
|
8
|
+
lib/rbatch.rb Fri, 11 Jan 2013 19:30:56 +0900
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/doc/rdoc/index.html
ADDED
@@ -0,0 +1,136 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
4
|
+
|
5
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
6
|
+
<head>
|
7
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
|
8
|
+
|
9
|
+
<title>RBatch Docs</title>
|
10
|
+
|
11
|
+
<link type="text/css" media="screen" href="rdoc.css" rel="stylesheet" />
|
12
|
+
|
13
|
+
<script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script src="js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
<script src="js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
16
|
+
<script src="js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
17
|
+
|
18
|
+
</head>
|
19
|
+
<body class="indexpage">
|
20
|
+
|
21
|
+
|
22
|
+
<h1>RBatch Docs</h1>
|
23
|
+
|
24
|
+
|
25
|
+
<p>This is the API documentation for 'RBatch Docs'.</p>
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
<h2>Files</h2>
|
31
|
+
<ul>
|
32
|
+
|
33
|
+
<li class="file"><a href="CHANGELOG.html">CHANGELOG</a></li>
|
34
|
+
|
35
|
+
<li class="file"><a href="LICENSE.html">LICENSE</a></li>
|
36
|
+
|
37
|
+
</ul>
|
38
|
+
|
39
|
+
|
40
|
+
<h2 id="classes">Classes/Modules</h2>
|
41
|
+
<ul>
|
42
|
+
|
43
|
+
<li class="module"><a href="RBatch.html">RBatch</a></li>
|
44
|
+
|
45
|
+
<li class="class"><a href="RBatch/Cmd.html">RBatch::Cmd</a></li>
|
46
|
+
|
47
|
+
<li class="class"><a href="RBatch/CmdException.html">RBatch::CmdException</a></li>
|
48
|
+
|
49
|
+
<li class="class"><a href="RBatch/CmdResult.html">RBatch::CmdResult</a></li>
|
50
|
+
|
51
|
+
<li class="class"><a href="RBatch/Config.html">RBatch::Config</a></li>
|
52
|
+
|
53
|
+
<li class="class"><a href="RBatch/Config/Exception.html">RBatch::Config::Exception</a></li>
|
54
|
+
|
55
|
+
<li class="class"><a href="RBatch/Log.html">RBatch::Log</a></li>
|
56
|
+
|
57
|
+
</ul>
|
58
|
+
|
59
|
+
<h2 id="methods">Methods</h2>
|
60
|
+
<ul>
|
61
|
+
|
62
|
+
<li><a href="RBatch/Config.html#method-c-new">::new — RBatch::Config</a></li>
|
63
|
+
|
64
|
+
<li><a href="RBatch/Log.html#method-c-new">::new — RBatch::Log</a></li>
|
65
|
+
|
66
|
+
<li><a href="RBatch/Cmd.html#method-c-new">::new — RBatch::Cmd</a></li>
|
67
|
+
|
68
|
+
<li><a href="RBatch/CmdResult.html#method-c-new">::new — RBatch::CmdResult</a></li>
|
69
|
+
|
70
|
+
<li><a href="RBatch/Log.html#method-c-verbose">::verbose — RBatch::Log</a></li>
|
71
|
+
|
72
|
+
<li><a href="RBatch/Log.html#method-c-verbose%3D">::verbose= — RBatch::Log</a></li>
|
73
|
+
|
74
|
+
<li><a href="RBatch/Config.html#method-i-%5B%5D">#[] — RBatch::Config</a></li>
|
75
|
+
|
76
|
+
<li><a href="RBatch/Log.html#method-i-close">#close — RBatch::Log</a></li>
|
77
|
+
|
78
|
+
<li><a href="RBatch.html#method-i-cmd">#cmd — RBatch</a></li>
|
79
|
+
|
80
|
+
<li><a href="RBatch/CmdResult.html#method-i-cmd_str">#cmd_str — RBatch::CmdResult</a></li>
|
81
|
+
|
82
|
+
<li><a href="RBatch.html#method-i-common_config">#common_config — RBatch</a></li>
|
83
|
+
|
84
|
+
<li><a href="RBatch.html#method-i-common_config_path">#common_config_path — RBatch</a></li>
|
85
|
+
|
86
|
+
<li><a href="RBatch.html#method-i-config">#config — RBatch</a></li>
|
87
|
+
|
88
|
+
<li><a href="RBatch/Log.html#method-i-debug">#debug — RBatch::Log</a></li>
|
89
|
+
|
90
|
+
<li><a href="RBatch/Log.html#method-i-delete_old_log">#delete_old_log — RBatch::Log</a></li>
|
91
|
+
|
92
|
+
<li><a href="RBatch/Log.html#method-i-error">#error — RBatch::Log</a></li>
|
93
|
+
|
94
|
+
<li><a href="RBatch/Log.html#method-i-fatal">#fatal — RBatch::Log</a></li>
|
95
|
+
|
96
|
+
<li><a href="RBatch/Log.html#method-i-info">#info — RBatch::Log</a></li>
|
97
|
+
|
98
|
+
<li><a href="RBatch/Log.html#method-i-opt">#opt — RBatch::Log</a></li>
|
99
|
+
|
100
|
+
<li><a href="RBatch/Config.html#method-i-path">#path — RBatch::Config</a></li>
|
101
|
+
|
102
|
+
<li><a href="RBatch.html#method-i-program_name">#program_name — RBatch</a></li>
|
103
|
+
|
104
|
+
<li><a href="RBatch.html#method-i-program_name%3D">#program_name= — RBatch</a></li>
|
105
|
+
|
106
|
+
<li><a href="RBatch/Cmd.html#method-i-run">#run — RBatch::Cmd</a></li>
|
107
|
+
|
108
|
+
<li><a href="RBatch/CmdResult.html#method-i-status">#status — RBatch::CmdResult</a></li>
|
109
|
+
|
110
|
+
<li><a href="RBatch/CmdResult.html#method-i-stderr">#stderr — RBatch::CmdResult</a></li>
|
111
|
+
|
112
|
+
<li><a href="RBatch/CmdResult.html#method-i-stderr_file">#stderr_file — RBatch::CmdResult</a></li>
|
113
|
+
|
114
|
+
<li><a href="RBatch/CmdResult.html#method-i-stdout">#stdout — RBatch::CmdResult</a></li>
|
115
|
+
|
116
|
+
<li><a href="RBatch/CmdResult.html#method-i-stdout_file">#stdout_file — RBatch::CmdResult</a></li>
|
117
|
+
|
118
|
+
<li><a href="RBatch.html#method-i-tmp_dir">#tmp_dir — RBatch</a></li>
|
119
|
+
|
120
|
+
<li><a href="RBatch/CmdResult.html#method-i-to_h">#to_h — RBatch::CmdResult</a></li>
|
121
|
+
|
122
|
+
<li><a href="RBatch/Config.html#method-i-to_s">#to_s — RBatch::Config</a></li>
|
123
|
+
|
124
|
+
<li><a href="RBatch/CmdResult.html#method-i-to_s">#to_s — RBatch::CmdResult</a></li>
|
125
|
+
|
126
|
+
<li><a href="RBatch/Log.html#method-i-warn">#warn — RBatch::Log</a></li>
|
127
|
+
|
128
|
+
</ul>
|
129
|
+
|
130
|
+
<div id="validator-badges">
|
131
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
132
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
133
|
+
Rdoc Generator</a> 1.1.6</small>.</p>
|
134
|
+
</div>
|
135
|
+
</body>
|
136
|
+
</html>
|