rbatch 1.12.2 → 1.12.3
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/Rakefile +4 -1
- data/lib/rbatch/cmd.rb +6 -4
- data/lib/rbatch/common_config.rb +3 -1
- data/lib/rbatch/config.rb +4 -2
- data/lib/rbatch/log.rb +10 -10
- data/lib/rbatch/version.rb +2 -2
- data/rbatch.gemspec +1 -1
- data/rdocs/RBatch/Cmd.html +66 -81
- data/rdocs/RBatch/CmdException.html +0 -2
- data/rdocs/RBatch/CmdResult.html +31 -33
- data/rdocs/RBatch/CommonConfig/Exception.html +0 -2
- data/rdocs/RBatch/CommonConfig.html +22 -19
- data/rdocs/RBatch/Config/Exception.html +0 -2
- data/rdocs/RBatch/Config.html +24 -20
- data/rdocs/RBatch/Log.html +17 -18
- data/rdocs/RBatch.html +19 -6
- data/rdocs/RBatchException.html +0 -2
- data/rdocs/created.rid +6 -6
- data/rdocs/index.html +0 -2
- data/rdocs/lib/rbatch/cmd_rb.html +1 -1
- data/rdocs/lib/rbatch/common_config_rb.html +1 -1
- data/rdocs/lib/rbatch/config_rb.html +1 -1
- data/rdocs/lib/rbatch/log_rb.html +1 -1
- data/rdocs/lib/rbatch/version_rb.html +1 -1
- metadata +2 -3
- data/rdocs/Rbatch.html +0 -160
data/Rakefile
CHANGED
@@ -24,8 +24,8 @@ task :test do
|
|
24
24
|
puts "\nTest Success \n"
|
25
25
|
else
|
26
26
|
puts "\nTest Failed \n"
|
27
|
+
exit 1
|
27
28
|
end
|
28
|
-
exit result
|
29
29
|
end
|
30
30
|
|
31
31
|
Rake::RDocTask.new do |rd|
|
@@ -33,3 +33,6 @@ Rake::RDocTask.new do |rd|
|
|
33
33
|
rd.rdoc_files = FileList["lib/**/*.rb"]
|
34
34
|
rd.options << '-charset=UTF-8 '
|
35
35
|
end
|
36
|
+
|
37
|
+
desc "Test, Make RDoc, Release"
|
38
|
+
task :all => [:test, :rdoc, :release]
|
data/lib/rbatch/cmd.rb
CHANGED
@@ -4,12 +4,14 @@ require 'tempfile'
|
|
4
4
|
module RBatch
|
5
5
|
|
6
6
|
# External command runcher.
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
7
|
+
#
|
8
|
+
#This module is a wrapper of Kernel#spawn.
|
9
|
+
#
|
10
|
+
# * Arguments(cmd_params) are inputed to Kernel#spawn directly and run command.
|
11
|
+
# * Command's stdout and stderr is written to tmp file.
|
10
12
|
# * If Platform is "mswin" or "mingw" , then temp directory is ENV["TEMP"]
|
11
13
|
# * If Platform is "linux" or "cygwin" , then temp directory is "/tmp/"
|
12
|
-
# * Return
|
14
|
+
# * Return an object of RBatch::CmdResult which includes stdout, stderr, and exit status.
|
13
15
|
#
|
14
16
|
# ==== Sample 1
|
15
17
|
# require 'rbatch'
|
data/lib/rbatch/common_config.rb
CHANGED
@@ -8,7 +8,9 @@ module RBatch
|
|
8
8
|
# Alias of RBatch::CommonConfig.new
|
9
9
|
def common_config ; CommonConfig.new end
|
10
10
|
|
11
|
-
#
|
11
|
+
# Common-config Reader
|
12
|
+
#
|
13
|
+
# Read common config file and return hash opject. If the key does not exist in config file, raise RBatch::CommonConfig::Exception.
|
12
14
|
#
|
13
15
|
# Default common config file path is "../conf/common.yaml"
|
14
16
|
# ==== Sample
|
data/lib/rbatch/config.rb
CHANGED
@@ -8,9 +8,11 @@ module RBatch
|
|
8
8
|
# Alias of RBatch::Config.new
|
9
9
|
def config ; Config.new end
|
10
10
|
|
11
|
-
#
|
11
|
+
# Config Reader
|
12
|
+
#
|
13
|
+
# Read config file and return hash opject. If the key does not exist in config file, raise RBatch::Config::Exception.
|
12
14
|
#
|
13
|
-
# Default config file path is "../conf/(Program
|
15
|
+
# Default config file path is "../conf/(base-name of Program file).yaml"
|
14
16
|
# ==== Sample
|
15
17
|
# config : ./conf/sample2.yaml
|
16
18
|
# key: value
|
data/lib/rbatch/log.rb
CHANGED
@@ -6,11 +6,11 @@ require 'net/smtp'
|
|
6
6
|
module RBatch
|
7
7
|
#=== About RBatch::Log
|
8
8
|
#
|
9
|
-
#
|
9
|
+
#By using Logging block, RBatch writes to logfile automatically.
|
10
10
|
#
|
11
|
-
#
|
11
|
+
#The default location of log file is "../log/YYYYMMDD_HHMMSS_${PROG_NAME}.log" .
|
12
12
|
#
|
13
|
-
#If exception occuerd, then RBatch
|
13
|
+
#If an exception occuerd, then RBatch writes back trace to logfile.
|
14
14
|
#
|
15
15
|
#=== Sample
|
16
16
|
#
|
@@ -76,16 +76,16 @@ module RBatch
|
|
76
76
|
# Get Option
|
77
77
|
def opt; @opt ; end
|
78
78
|
|
79
|
-
#
|
79
|
+
# Logging Block.
|
80
80
|
#
|
81
81
|
# ==== Params
|
82
|
-
# +opt+ = Option hash object.
|
83
|
-
# - +:name+ (String) = log file
|
84
|
-
# - +:dir+ (String) = log direcotry
|
85
|
-
# - +:level+ (String) = log level. ["debug"|"info"|"warn"|"error"|"fatal"] .
|
82
|
+
# +opt+ = Option hash object.
|
83
|
+
# - +:name+ (String) = name of log file. Default is "<date>_<time>_<prog>.log". Reservation-words are "<date>","<time>","<prog>","<host>". "<date>" is replaced YYYYMMDD. "<time>" is replaced HHMMSS. "<prog>" is replaced a base-name of program file.
|
84
|
+
# - +:dir+ (String) = log direcotry. Default is "../log"
|
85
|
+
# - +:level+ (String) = log level. Default is "info". ["debug"|"info"|"warn"|"error"|"fatal"] .
|
86
86
|
# - +:append+ (Boolean) = appned to log or not(=overwrite). Default is ture.
|
87
|
-
# - +:stdout+ (Boolean) =
|
88
|
-
# - +:quiet+ (Boolean) =
|
87
|
+
# - +:stdout+ (Boolean) = output both the log file and STDOUT. Default is false.
|
88
|
+
# - +:quiet+ (Boolean) = output only logfile, don't output to STDOUT. Default is true.
|
89
89
|
# ==== Block params
|
90
90
|
# +log+ = Instance of +Logger+
|
91
91
|
# ==== Sample
|
data/lib/rbatch/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module
|
2
|
-
VERSION = "1.12.
|
1
|
+
module RBatch
|
2
|
+
VERSION = "1.12.3"
|
3
3
|
end
|
data/rbatch.gemspec
CHANGED
@@ -5,7 +5,7 @@ require 'rbatch/version'
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |gem|
|
7
7
|
gem.name = "rbatch"
|
8
|
-
gem.version =
|
8
|
+
gem.version = RBatch::VERSION
|
9
9
|
gem.authors = ["fetaro"]
|
10
10
|
gem.email = ["fetaro@gmail.com"]
|
11
11
|
gem.description = "RBatch has many fanctions to help with your making a batch script such as \"data backup script\" or \"proccess starting script\"."
|
data/rdocs/RBatch/Cmd.html
CHANGED
@@ -120,8 +120,6 @@
|
|
120
120
|
|
121
121
|
<li><a href="../RBatchException.html">RBatchException</a></li>
|
122
122
|
|
123
|
-
<li><a href="../Rbatch.html">Rbatch</a></li>
|
124
|
-
|
125
123
|
</ul>
|
126
124
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
127
125
|
</div>
|
@@ -134,48 +132,35 @@
|
|
134
132
|
<h1 class="class">RBatch::Cmd</h1>
|
135
133
|
|
136
134
|
<div id="description">
|
137
|
-
<
|
138
|
-
External command runcher.
|
139
|
-
</p>
|
140
|
-
<ul>
|
141
|
-
<li><p>
|
142
|
-
Input cmd_params into Kernel#spawn.
|
143
|
-
</p>
|
144
|
-
</li>
|
145
|
-
<li><p>
|
146
|
-
Write command’s stdout and stderr to tmp file.
|
147
|
-
</p>
|
148
|
-
</li>
|
149
|
-
</ul>
|
150
|
-
<pre>
|
151
|
-
* If Platform is "mswin" or "mingw" , then temp directory is ENV["TEMP"]
|
152
|
-
* If Platform is "linux" or "cygwin" , then temp directory is "/tmp/"
|
135
|
+
<pre>
|
136
|
+
External command runcher.
|
153
137
|
</pre>
|
154
|
-
<
|
155
|
-
|
156
|
-
Return hash object including stdout, stderr, and exit status.
|
138
|
+
<p>
|
139
|
+
This module is a wrapper of Kernel#spawn.
|
157
140
|
</p>
|
158
|
-
</li>
|
159
|
-
</ul>
|
160
|
-
<h4>Sample 1</h4>
|
161
|
-
<pre>
|
162
|
-
require 'rbatch'
|
163
|
-
cmd = RBatch::Cmd("ls")
|
164
|
-
r = cmd.run
|
165
|
-
p r.stdout
|
166
|
-
=> "fileA\nfileB\n"
|
167
|
-
</pre>
|
168
|
-
<h4>Sample 2 ( Use option)</h4>
|
169
|
-
<pre>
|
170
|
-
cmd = RBatch::Cmd("ls", {:verbose => true})
|
171
|
-
r = cmd.run
|
172
|
-
</pre>
|
173
|
-
<h4>Sample 3 ( Use alias)</h4>
|
174
141
|
<pre>
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
142
|
+
* Arguments(cmd_params) are inputed to Kernel#spawn directly and run command.
|
143
|
+
* Command's stdout and stderr is written to tmp file.
|
144
|
+
* If Platform is "mswin" or "mingw" , then temp directory is ENV["TEMP"]
|
145
|
+
* If Platform is "linux" or "cygwin" , then temp directory is "/tmp/"
|
146
|
+
* Return an object of RBatch::CmdResult which includes stdout, stderr, and exit status.
|
147
|
+
|
148
|
+
==== Sample 1
|
149
|
+
require 'rbatch'
|
150
|
+
cmd = RBatch::Cmd("ls")
|
151
|
+
r = cmd.run
|
152
|
+
p r.stdout
|
153
|
+
=> "fileA\nfileB\n"
|
154
|
+
|
155
|
+
==== Sample 2 ( Use option)
|
156
|
+
cmd = RBatch::Cmd("ls", {:verbose => true})
|
157
|
+
r = cmd.run
|
158
|
+
|
159
|
+
==== Sample 3 ( Use alias)
|
160
|
+
require 'rbatch'
|
161
|
+
r = RBatch::cmd("ls")
|
162
|
+
p r.stdout
|
163
|
+
=> "fileA\nfileB\n"</pre>
|
179
164
|
|
180
165
|
</div>
|
181
166
|
|
@@ -230,24 +215,24 @@ is 0 sec ( 0 means disable) .
|
|
230
215
|
<div class="method-source-code"
|
231
216
|
id="new-source">
|
232
217
|
<pre>
|
233
|
-
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
218
|
+
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line 48</span>
|
219
|
+
48: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">cmd_str</span>,<span class="ruby-identifier">opt</span> = <span class="ruby-keyword kw">nil</span>)
|
220
|
+
49: <span class="ruby-identifier">raise</span>(<span class="ruby-constant">CmdException</span>,<span class="ruby-value str">"Command string is nil"</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">cmd_str</span>.<span class="ruby-identifier">nil?</span>
|
221
|
+
50: <span class="ruby-ivar">@cmd_str</span> = <span class="ruby-identifier">cmd_str</span>
|
222
|
+
51: <span class="ruby-comment cmt"># parse option</span>
|
223
|
+
52: <span class="ruby-ivar">@opt</span> = <span class="ruby-identifier">@@def_opt</span>.<span class="ruby-identifier">clone</span>
|
224
|
+
53: <span class="ruby-identifier">@@def_opt</span>.<span class="ruby-identifier">each_key</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span><span class="ruby-operator">|</span>
|
225
|
+
54: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opt</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">opt</span>[<span class="ruby-identifier">key</span>] <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>
|
226
|
+
55: <span class="ruby-comment cmt"># use argument</span>
|
227
|
+
56: <span class="ruby-ivar">@opt</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">opt</span>[<span class="ruby-identifier">key</span>]
|
228
|
+
57: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">rbatch_config</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-operator">&&</span> <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">rbatch_config</span>[<span class="ruby-value str">"cmd_"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">key</span>.<span class="ruby-identifier">to_s</span>] <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>
|
229
|
+
58: <span class="ruby-comment cmt"># use config</span>
|
230
|
+
59: <span class="ruby-ivar">@opt</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">rbatch_config</span>[<span class="ruby-value str">"cmd_"</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">key</span>.<span class="ruby-identifier">to_s</span>]
|
231
|
+
60: <span class="ruby-keyword kw">else</span>
|
232
|
+
61: <span class="ruby-comment cmt"># use default</span>
|
233
|
+
62: <span class="ruby-keyword kw">end</span>
|
234
|
+
63: <span class="ruby-keyword kw">end</span>
|
235
|
+
64: <span class="ruby-keyword kw">end</span></pre>
|
251
236
|
</div>
|
252
237
|
|
253
238
|
</div>
|
@@ -290,28 +275,28 @@ instance of <a href="CmdResult.html">RBatch::CmdResult</a>
|
|
290
275
|
<div class="method-source-code"
|
291
276
|
id="run-source">
|
292
277
|
<pre>
|
293
|
-
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
278
|
+
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line 71</span>
|
279
|
+
71: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>()
|
280
|
+
72: <span class="ruby-identifier">stdout_file</span> = <span class="ruby-constant">Tempfile</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span>(<span class="ruby-value str">"rbatch_tmpout"</span>,<span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-identifier">tmp_dir</span>)
|
281
|
+
73: <span class="ruby-identifier">stderr_file</span> = <span class="ruby-constant">Tempfile</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span>(<span class="ruby-value str">"rbatch_tmperr"</span>,<span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-identifier">tmp_dir</span>)
|
282
|
+
74: <span class="ruby-identifier">pid</span> = <span class="ruby-identifier">spawn</span>(<span class="ruby-ivar">@cmd_str</span>,<span class="ruby-value">:out</span> =<span class="ruby-operator">></span> [<span class="ruby-identifier">stdout_file</span>,<span class="ruby-value str">"w"</span>],<span class="ruby-value">:err</span> =<span class="ruby-operator">></span> [<span class="ruby-identifier">stderr_file</span>,<span class="ruby-value str">"w"</span>])
|
283
|
+
75: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@opt</span>[<span class="ruby-value">:timeout</span>] <span class="ruby-operator">!=</span> <span class="ruby-value">0</span>
|
284
|
+
76: <span class="ruby-identifier">timeout</span>(<span class="ruby-ivar">@opt</span>[<span class="ruby-value">:timeout</span>]) <span class="ruby-keyword kw">do</span>
|
285
|
+
77: <span class="ruby-keyword kw">begin</span>
|
286
|
+
78: <span class="ruby-identifier">status</span> = <span class="ruby-constant">Process</span>.<span class="ruby-identifier">waitpid2</span>(<span class="ruby-identifier">pid</span>)[<span class="ruby-value">1</span>] <span class="ruby-operator">>></span> <span class="ruby-value">8</span>
|
287
|
+
79: <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Timeout</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
288
|
+
80: <span class="ruby-identifier">raise</span>(<span class="ruby-constant">CmdException</span>,<span class="ruby-value str">"Command timeout (over "</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@opt</span>[<span class="ruby-value">:timeout</span>] <span class="ruby-operator">+</span> <span class="ruby-value str">" sec)"</span> )
|
289
|
+
81: <span class="ruby-keyword kw">end</span>
|
290
|
+
82: <span class="ruby-keyword kw">end</span>
|
291
|
+
83: <span class="ruby-keyword kw">else</span>
|
292
|
+
84: <span class="ruby-identifier">status</span> = <span class="ruby-constant">Process</span>.<span class="ruby-identifier">waitpid2</span>(<span class="ruby-identifier">pid</span>)[<span class="ruby-value">1</span>] <span class="ruby-operator">>></span> <span class="ruby-value">8</span>
|
293
|
+
85: <span class="ruby-keyword kw">end</span>
|
294
|
+
86: <span class="ruby-identifier">result</span> = <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">CmdResult</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">stdout_file</span>,<span class="ruby-identifier">stderr_file</span>,<span class="ruby-identifier">status</span>,<span class="ruby-ivar">@cmd_str</span>)
|
295
|
+
87: <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@opt</span>[<span class="ruby-value">:raise</span>] <span class="ruby-operator">&&</span> <span class="ruby-identifier">status</span> <span class="ruby-operator">!=</span> <span class="ruby-value">0</span>
|
296
|
+
88: <span class="ruby-identifier">raise</span>(<span class="ruby-constant">CmdException</span>,<span class="ruby-value str">"Command exit status is not 0. result: "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">to_s</span>)
|
297
|
+
89: <span class="ruby-keyword kw">end</span>
|
298
|
+
90: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result</span>
|
299
|
+
91: <span class="ruby-keyword kw">end</span></pre>
|
315
300
|
</div>
|
316
301
|
|
317
302
|
</div>
|
data/rdocs/RBatch/CmdResult.html
CHANGED
@@ -134,8 +134,6 @@
|
|
134
134
|
|
135
135
|
<li><a href="../RBatchException.html">RBatchException</a></li>
|
136
136
|
|
137
|
-
<li><a href="../Rbatch.html">Rbatch</a></li>
|
138
|
-
|
139
137
|
</ul>
|
140
138
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
141
139
|
</div>
|
@@ -183,13 +181,13 @@
|
|
183
181
|
<div class="method-source-code"
|
184
182
|
id="new-source">
|
185
183
|
<pre>
|
186
|
-
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
184
|
+
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line 99</span>
|
185
|
+
99: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">stdout_file</span>, <span class="ruby-identifier">stderr_file</span>, <span class="ruby-identifier">status</span>, <span class="ruby-identifier">cmd_str</span>)
|
186
|
+
100: <span class="ruby-ivar">@stdout_file</span> = <span class="ruby-identifier">stdout_file</span>
|
187
|
+
101: <span class="ruby-ivar">@stderr_file</span> = <span class="ruby-identifier">stderr_file</span>
|
188
|
+
102: <span class="ruby-ivar">@status</span> = <span class="ruby-identifier">status</span>
|
189
|
+
103: <span class="ruby-ivar">@cmd_str</span> = <span class="ruby-identifier">cmd_str</span>
|
190
|
+
104: <span class="ruby-keyword kw">end</span></pre>
|
193
191
|
</div>
|
194
192
|
|
195
193
|
</div>
|
@@ -226,8 +224,8 @@
|
|
226
224
|
<div class="method-source-code"
|
227
225
|
id="cmd-str-source">
|
228
226
|
<pre>
|
229
|
-
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line
|
230
|
-
|
227
|
+
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line 108</span>
|
228
|
+
108: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cmd_str</span> ; <span class="ruby-ivar">@cmd_str</span> ; <span class="ruby-keyword kw">end</span></pre>
|
231
229
|
</div>
|
232
230
|
|
233
231
|
</div>
|
@@ -258,8 +256,8 @@
|
|
258
256
|
<div class="method-source-code"
|
259
257
|
id="status-source">
|
260
258
|
<pre>
|
261
|
-
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line
|
262
|
-
|
259
|
+
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line 107</span>
|
260
|
+
107: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">status</span> ; <span class="ruby-ivar">@status</span> ; <span class="ruby-keyword kw">end</span></pre>
|
263
261
|
</div>
|
264
262
|
|
265
263
|
</div>
|
@@ -290,10 +288,10 @@
|
|
290
288
|
<div class="method-source-code"
|
291
289
|
id="stderr-source">
|
292
290
|
<pre>
|
293
|
-
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line
|
294
|
-
|
295
|
-
|
296
|
-
|
291
|
+
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line 112</span>
|
292
|
+
112: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stderr</span>
|
293
|
+
113: <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-ivar">@stderr_file</span>)
|
294
|
+
114: <span class="ruby-keyword kw">end</span></pre>
|
297
295
|
</div>
|
298
296
|
|
299
297
|
</div>
|
@@ -324,8 +322,8 @@
|
|
324
322
|
<div class="method-source-code"
|
325
323
|
id="stderr-file-source">
|
326
324
|
<pre>
|
327
|
-
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line
|
328
|
-
|
325
|
+
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line 106</span>
|
326
|
+
106: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stderr_file</span> ; <span class="ruby-ivar">@stderr_file</span> ; <span class="ruby-keyword kw">end</span></pre>
|
329
327
|
</div>
|
330
328
|
|
331
329
|
</div>
|
@@ -356,10 +354,10 @@
|
|
356
354
|
<div class="method-source-code"
|
357
355
|
id="stdout-source">
|
358
356
|
<pre>
|
359
|
-
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line
|
360
|
-
|
361
|
-
|
362
|
-
|
357
|
+
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line 109</span>
|
358
|
+
109: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stdout</span>
|
359
|
+
110: <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-ivar">@stdout_file</span>)
|
360
|
+
111: <span class="ruby-keyword kw">end</span></pre>
|
363
361
|
</div>
|
364
362
|
|
365
363
|
</div>
|
@@ -390,8 +388,8 @@
|
|
390
388
|
<div class="method-source-code"
|
391
389
|
id="stdout-file-source">
|
392
390
|
<pre>
|
393
|
-
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line
|
394
|
-
|
391
|
+
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line 105</span>
|
392
|
+
105: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stdout_file</span> ; <span class="ruby-ivar">@stdout_file</span> ; <span class="ruby-keyword kw">end</span></pre>
|
395
393
|
</div>
|
396
394
|
|
397
395
|
</div>
|
@@ -422,10 +420,10 @@
|
|
422
420
|
<div class="method-source-code"
|
423
421
|
id="to-h-source">
|
424
422
|
<pre>
|
425
|
-
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line
|
426
|
-
|
427
|
-
|
428
|
-
|
423
|
+
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line 115</span>
|
424
|
+
115: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_h</span>
|
425
|
+
116: {<span class="ruby-value">:cmd_str</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@cmd_str</span>,<span class="ruby-value">:stdout</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">stdout</span>, <span class="ruby-value">:stderr</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">stderr</span>, <span class="ruby-value">:status</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">status</span>}
|
426
|
+
117: <span class="ruby-keyword kw">end</span></pre>
|
429
427
|
</div>
|
430
428
|
|
431
429
|
</div>
|
@@ -456,10 +454,10 @@
|
|
456
454
|
<div class="method-source-code"
|
457
455
|
id="to-s-source">
|
458
456
|
<pre>
|
459
|
-
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line
|
460
|
-
|
461
|
-
|
462
|
-
|
457
|
+
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line 118</span>
|
458
|
+
118: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
459
|
+
119: <span class="ruby-identifier">to_h</span>.<span class="ruby-identifier">to_s</span>
|
460
|
+
120: <span class="ruby-keyword kw">end</span></pre>
|
463
461
|
</div>
|
464
462
|
|
465
463
|
</div>
|
@@ -133,8 +133,6 @@
|
|
133
133
|
|
134
134
|
<li><a href="../RBatchException.html">RBatchException</a></li>
|
135
135
|
|
136
|
-
<li><a href="../Rbatch.html">Rbatch</a></li>
|
137
|
-
|
138
136
|
</ul>
|
139
137
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
140
138
|
</div>
|
@@ -148,7 +146,12 @@
|
|
148
146
|
|
149
147
|
<div id="description">
|
150
148
|
<p>
|
151
|
-
|
149
|
+
Common-config Reader
|
150
|
+
</p>
|
151
|
+
<p>
|
152
|
+
Read common config file and return hash opject. If the key does not exist
|
153
|
+
in config file, raise <a
|
154
|
+
href="CommonConfig/Exception.html">RBatch::CommonConfig::Exception</a>.
|
152
155
|
</p>
|
153
156
|
<p>
|
154
157
|
Default common config file path is “../conf/common.yaml“
|
@@ -206,13 +209,13 @@ script : ./bin/sample.rb
|
|
206
209
|
<div class="method-source-code"
|
207
210
|
id="new-source">
|
208
211
|
<pre>
|
209
|
-
<span class="ruby-comment cmt"># File lib/rbatch/common_config.rb, line
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
212
|
+
<span class="ruby-comment cmt"># File lib/rbatch/common_config.rb, line 30</span>
|
213
|
+
30: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
214
|
+
31: <span class="ruby-identifier">file</span> = <span class="ruby-value str">"common.yaml"</span>
|
215
|
+
32: <span class="ruby-identifier">dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<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>)
|
216
|
+
33: <span class="ruby-ivar">@path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">dir</span>,<span class="ruby-identifier">file</span>)
|
217
|
+
34: <span class="ruby-ivar">@config</span> = <span class="ruby-constant">YAML</span><span class="ruby-operator">::</span><span class="ruby-identifier">load_file</span>(<span class="ruby-ivar">@path</span>)
|
218
|
+
35: <span class="ruby-keyword kw">end</span></pre>
|
216
219
|
</div>
|
217
220
|
|
218
221
|
</div>
|
@@ -249,11 +252,11 @@ script : ./bin/sample.rb
|
|
249
252
|
<div class="method-source-code"
|
250
253
|
id="--source">
|
251
254
|
<pre>
|
252
|
-
<span class="ruby-comment cmt"># File lib/rbatch/common_config.rb, line
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
255
|
+
<span class="ruby-comment cmt"># File lib/rbatch/common_config.rb, line 36</span>
|
256
|
+
36: <span class="ruby-keyword kw">def</span><span class="ruby-operator">[]</span>(<span class="ruby-identifier">key</span>)
|
257
|
+
37: <span class="ruby-identifier">raise</span> <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">CommonConfig</span><span class="ruby-operator">::</span><span class="ruby-constant">Exception</span>, <span class="ruby-node">"Value of key=\"#{key}\" is nil"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">key</span>].<span class="ruby-identifier">nil?</span>
|
258
|
+
38: <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">key</span>]
|
259
|
+
39: <span class="ruby-keyword kw">end</span></pre>
|
257
260
|
</div>
|
258
261
|
|
259
262
|
</div>
|
@@ -284,8 +287,8 @@ script : ./bin/sample.rb
|
|
284
287
|
<div class="method-source-code"
|
285
288
|
id="path-source">
|
286
289
|
<pre>
|
287
|
-
<span class="ruby-comment cmt"># File lib/rbatch/common_config.rb, line
|
288
|
-
|
290
|
+
<span class="ruby-comment cmt"># File lib/rbatch/common_config.rb, line 40</span>
|
291
|
+
40: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">path</span> ; <span class="ruby-ivar">@path</span> ; <span class="ruby-keyword kw">end</span></pre>
|
289
292
|
</div>
|
290
293
|
|
291
294
|
</div>
|
@@ -316,8 +319,8 @@ script : ./bin/sample.rb
|
|
316
319
|
<div class="method-source-code"
|
317
320
|
id="to-s-source">
|
318
321
|
<pre>
|
319
|
-
<span class="ruby-comment cmt"># File lib/rbatch/common_config.rb, line
|
320
|
-
|
322
|
+
<span class="ruby-comment cmt"># File lib/rbatch/common_config.rb, line 41</span>
|
323
|
+
41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> ; <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">to_s</span> ;<span class="ruby-keyword kw">end</span></pre>
|
321
324
|
</div>
|
322
325
|
|
323
326
|
</div>
|
data/rdocs/RBatch/Config.html
CHANGED
@@ -133,8 +133,6 @@
|
|
133
133
|
|
134
134
|
<li><a href="../RBatchException.html">RBatchException</a></li>
|
135
135
|
|
136
|
-
<li><a href="../Rbatch.html">Rbatch</a></li>
|
137
|
-
|
138
136
|
</ul>
|
139
137
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
140
138
|
</div>
|
@@ -148,10 +146,16 @@
|
|
148
146
|
|
149
147
|
<div id="description">
|
150
148
|
<p>
|
151
|
-
|
149
|
+
<a href="Config.html">Config</a> Reader
|
150
|
+
</p>
|
151
|
+
<p>
|
152
|
+
Read config file and return hash opject. If the key does not exist in
|
153
|
+
config file, raise <a
|
154
|
+
href="Config/Exception.html">RBatch::Config::Exception</a>.
|
152
155
|
</p>
|
153
156
|
<p>
|
154
|
-
Default config file path is “../conf/(
|
157
|
+
Default config file path is “../conf/(base-name of Program
|
158
|
+
file).yaml“
|
155
159
|
</p>
|
156
160
|
<h4>Sample</h4>
|
157
161
|
<p>
|
@@ -207,13 +211,13 @@ script : ./bin/sample2.rb
|
|
207
211
|
<div class="method-source-code"
|
208
212
|
id="new-source">
|
209
213
|
<pre>
|
210
|
-
<span class="ruby-comment cmt"># File lib/rbatch/config.rb, line
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
214
|
+
<span class="ruby-comment cmt"># File lib/rbatch/config.rb, line 31</span>
|
215
|
+
31: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
216
|
+
32: <span class="ruby-identifier">file</span> = <span class="ruby-constant">Pathname</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-constant">RBatch</span>.<span class="ruby-identifier">program_name</span>)).<span class="ruby-identifier">sub_ext</span>(<span class="ruby-value str">".yaml"</span>).<span class="ruby-identifier">to_s</span>
|
217
|
+
33: <span class="ruby-identifier">dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<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>)
|
218
|
+
34: <span class="ruby-ivar">@path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">dir</span>,<span class="ruby-identifier">file</span>)
|
219
|
+
35: <span class="ruby-ivar">@config</span> = <span class="ruby-constant">YAML</span><span class="ruby-operator">::</span><span class="ruby-identifier">load_file</span>(<span class="ruby-ivar">@path</span>)
|
220
|
+
36: <span class="ruby-keyword kw">end</span></pre>
|
217
221
|
</div>
|
218
222
|
|
219
223
|
</div>
|
@@ -250,11 +254,11 @@ script : ./bin/sample2.rb
|
|
250
254
|
<div class="method-source-code"
|
251
255
|
id="--source">
|
252
256
|
<pre>
|
253
|
-
<span class="ruby-comment cmt"># File lib/rbatch/config.rb, line
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
257
|
+
<span class="ruby-comment cmt"># File lib/rbatch/config.rb, line 37</span>
|
258
|
+
37: <span class="ruby-keyword kw">def</span><span class="ruby-operator">[]</span>(<span class="ruby-identifier">key</span>)
|
259
|
+
38: <span class="ruby-identifier">raise</span> <span class="ruby-constant">RBatch</span><span class="ruby-operator">::</span><span class="ruby-constant">Config</span><span class="ruby-operator">::</span><span class="ruby-constant">Exception</span>, <span class="ruby-node">"Value of key=\"#{key}\" is nil"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">key</span>].<span class="ruby-identifier">nil?</span>
|
260
|
+
39: <span class="ruby-ivar">@config</span>[<span class="ruby-identifier">key</span>]
|
261
|
+
40: <span class="ruby-keyword kw">end</span></pre>
|
258
262
|
</div>
|
259
263
|
|
260
264
|
</div>
|
@@ -285,8 +289,8 @@ script : ./bin/sample2.rb
|
|
285
289
|
<div class="method-source-code"
|
286
290
|
id="path-source">
|
287
291
|
<pre>
|
288
|
-
<span class="ruby-comment cmt"># File lib/rbatch/config.rb, line
|
289
|
-
|
292
|
+
<span class="ruby-comment cmt"># File lib/rbatch/config.rb, line 41</span>
|
293
|
+
41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">path</span> ; <span class="ruby-ivar">@path</span> ; <span class="ruby-keyword kw">end</span></pre>
|
290
294
|
</div>
|
291
295
|
|
292
296
|
</div>
|
@@ -317,8 +321,8 @@ script : ./bin/sample2.rb
|
|
317
321
|
<div class="method-source-code"
|
318
322
|
id="to-s-source">
|
319
323
|
<pre>
|
320
|
-
<span class="ruby-comment cmt"># File lib/rbatch/config.rb, line
|
321
|
-
|
324
|
+
<span class="ruby-comment cmt"># File lib/rbatch/config.rb, line 42</span>
|
325
|
+
42: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> ; <span class="ruby-ivar">@config</span>.<span class="ruby-identifier">to_s</span> ;<span class="ruby-keyword kw">end</span></pre>
|
322
326
|
</div>
|
323
327
|
|
324
328
|
</div>
|
data/rdocs/RBatch/Log.html
CHANGED
@@ -140,8 +140,6 @@
|
|
140
140
|
|
141
141
|
<li><a href="../RBatchException.html">RBatchException</a></li>
|
142
142
|
|
143
|
-
<li><a href="../Rbatch.html">Rbatch</a></li>
|
144
|
-
|
145
143
|
</ul>
|
146
144
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
147
145
|
</div>
|
@@ -156,16 +154,16 @@
|
|
156
154
|
<div id="description">
|
157
155
|
<h3>About <a href="Log.html">RBatch::Log</a></h3>
|
158
156
|
<p>
|
159
|
-
|
160
|
-
|
157
|
+
By using Logging block, <a href="../RBatch.html">RBatch</a> writes to
|
158
|
+
logfile automatically.
|
161
159
|
</p>
|
162
160
|
<p>
|
163
|
-
|
161
|
+
The default location of log file is
|
164
162
|
“../log/YYYYMMDD_HHMMSS_${PROG_NAME}.log” .
|
165
163
|
</p>
|
166
164
|
<p>
|
167
|
-
If exception occuerd, then <a href="../RBatch.html">RBatch</a>
|
168
|
-
trace to logfile.
|
165
|
+
If an exception occuerd, then <a href="../RBatch.html">RBatch</a> writes
|
166
|
+
back trace to logfile.
|
169
167
|
</p>
|
170
168
|
<h3>Sample</h3>
|
171
169
|
<p>
|
@@ -221,28 +219,29 @@ logfile : ./log/20121020_005953_sample1.log
|
|
221
219
|
<div class="method-description">
|
222
220
|
|
223
221
|
<p>
|
224
|
-
|
222
|
+
Logging Block.
|
225
223
|
</p>
|
226
224
|
<h4>Params</h4>
|
227
225
|
<p>
|
228
|
-
<tt>opt</tt> = Option hash object.
|
226
|
+
<tt>opt</tt> = Option hash object.
|
229
227
|
</p>
|
230
228
|
<ul>
|
231
229
|
<li><p>
|
232
|
-
<tt>:name</tt> (String) = log file
|
233
|
-
“<date>_<time>_<prog>.log”.Reservation
|
230
|
+
<tt>:name</tt> (String) = name of log file. Default is
|
231
|
+
“<date>_<time>_<prog>.log”. Reservation-words are
|
234
232
|
“<date>”,”<time>”,”<prog>”,”<host>”.
|
233
|
+
“<date>” is replaced YYYYMMDD. “<time>” is replaced
|
234
|
+
HHMMSS. “<prog>” is replaced a base-name of program file.
|
235
235
|
</p>
|
236
236
|
</li>
|
237
237
|
<li><p>
|
238
|
-
<tt>:dir</tt> (String) = log direcotry
|
239
|
-
“../log“
|
238
|
+
<tt>:dir</tt> (String) = log direcotry. Default is “../log“
|
240
239
|
</p>
|
241
240
|
</li>
|
242
241
|
<li><p>
|
243
|
-
<tt>:level</tt> (String) = log level.
|
242
|
+
<tt>:level</tt> (String) = log level. Default is “info”.
|
244
243
|
[“debug”|“info”|“warn”|“error”|“fatal”]
|
245
|
-
.
|
244
|
+
.
|
246
245
|
</p>
|
247
246
|
</li>
|
248
247
|
<li><p>
|
@@ -251,13 +250,13 @@ ture.
|
|
251
250
|
</p>
|
252
251
|
</li>
|
253
252
|
<li><p>
|
254
|
-
<tt>:stdout</tt> (Boolean) =
|
253
|
+
<tt>:stdout</tt> (Boolean) = output both the log file and STDOUT. Default
|
255
254
|
is false.
|
256
255
|
</p>
|
257
256
|
</li>
|
258
257
|
<li><p>
|
259
|
-
<tt>:quiet</tt> (Boolean) =
|
260
|
-
is true.
|
258
|
+
<tt>:quiet</tt> (Boolean) = output only logfile, don’t output to
|
259
|
+
STDOUT. Default is true.
|
261
260
|
</p>
|
262
261
|
</li>
|
263
262
|
</ul>
|
data/rdocs/RBatch.html
CHANGED
@@ -41,6 +41,9 @@
|
|
41
41
|
<li><a href="./lib/rbatch/config_rb.html?TB_iframe=true&height=550&width=785"
|
42
42
|
class="thickbox" title="lib/rbatch/config.rb">lib/rbatch/config.rb</a></li>
|
43
43
|
|
44
|
+
<li><a href="./lib/rbatch/version_rb.html?TB_iframe=true&height=550&width=785"
|
45
|
+
class="thickbox" title="lib/rbatch/version.rb">lib/rbatch/version.rb</a></li>
|
46
|
+
|
44
47
|
<li><a href="./lib/rbatch/cmd_rb.html?TB_iframe=true&height=550&width=785"
|
45
48
|
class="thickbox" title="lib/rbatch/cmd.rb">lib/rbatch/cmd.rb</a></li>
|
46
49
|
|
@@ -162,8 +165,6 @@
|
|
162
165
|
|
163
166
|
<li><a href="./RBatchException.html">RBatchException</a></li>
|
164
167
|
|
165
|
-
<li><a href="./Rbatch.html">Rbatch</a></li>
|
166
|
-
|
167
168
|
</ul>
|
168
169
|
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
169
170
|
</div>
|
@@ -181,6 +182,18 @@
|
|
181
182
|
|
182
183
|
<!-- Constants -->
|
183
184
|
|
185
|
+
<div id="constants-list" class="section">
|
186
|
+
<h3 class="section-header">Constants</h3>
|
187
|
+
<dl>
|
188
|
+
|
189
|
+
<dt><a name="VERSION">VERSION</a></dt>
|
190
|
+
|
191
|
+
<dd class="description"></dd>
|
192
|
+
|
193
|
+
|
194
|
+
</dl>
|
195
|
+
</div>
|
196
|
+
|
184
197
|
|
185
198
|
<!-- Attributes -->
|
186
199
|
|
@@ -213,10 +226,10 @@ shortcut of <a href="RBatch/Cmd.html">RBatch::Cmd</a>
|
|
213
226
|
<div class="method-source-code"
|
214
227
|
id="cmd-source">
|
215
228
|
<pre>
|
216
|
-
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line
|
217
|
-
|
218
|
-
|
219
|
-
|
229
|
+
<span class="ruby-comment cmt"># File lib/rbatch/cmd.rb, line 128</span>
|
230
|
+
128: <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>)
|
231
|
+
129: <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>
|
232
|
+
130: <span class="ruby-keyword kw">end</span></pre>
|
220
233
|
</div>
|
221
234
|
|
222
235
|
</div>
|
data/rdocs/RBatchException.html
CHANGED
data/rdocs/created.rid
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
|
2
|
-
lib/rbatch/config.rb
|
3
|
-
lib/rbatch/version.rb
|
4
|
-
lib/rbatch/cmd.rb
|
5
|
-
lib/rbatch/common_config.rb
|
6
|
-
lib/rbatch/log.rb
|
1
|
+
Sun, 01 Dec 2013 17:38:02 +0900
|
2
|
+
lib/rbatch/config.rb Sun, 01 Dec 2013 17:31:01 +0900
|
3
|
+
lib/rbatch/version.rb Sun, 01 Dec 2013 17:31:01 +0900
|
4
|
+
lib/rbatch/cmd.rb Sun, 01 Dec 2013 17:31:01 +0900
|
5
|
+
lib/rbatch/common_config.rb Sun, 01 Dec 2013 17:31:01 +0900
|
6
|
+
lib/rbatch/log.rb Sun, 01 Dec 2013 17:31:01 +0900
|
7
7
|
lib/rbatch.rb Fri, 15 Nov 2013 15:13:43 +0900
|
data/rdocs/index.html
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: rbatch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.12.
|
5
|
+
version: 1.12.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- fetaro
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-12-01 00:00:00 Z
|
14
14
|
dependencies: []
|
15
15
|
|
16
16
|
description: RBatch has many fanctions to help with your making a batch script such as "data backup script" or "proccess starting script".
|
@@ -48,7 +48,6 @@ files:
|
|
48
48
|
- rdocs/RBatch/Config/Exception.html
|
49
49
|
- rdocs/RBatch/Log.html
|
50
50
|
- rdocs/RBatchException.html
|
51
|
-
- rdocs/Rbatch.html
|
52
51
|
- rdocs/created.rid
|
53
52
|
- rdocs/images/brick.png
|
54
53
|
- rdocs/images/brick_link.png
|
data/rdocs/Rbatch.html
DELETED
@@ -1,160 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="harset=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=harset=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/version_rb.html?TB_iframe=true&height=550&width=785"
|
42
|
-
class="thickbox" title="lib/rbatch/version.rb">lib/rbatch/version.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
|
-
|
56
|
-
<!-- Namespace Contents -->
|
57
|
-
|
58
|
-
|
59
|
-
<!-- Method Quickref -->
|
60
|
-
|
61
|
-
|
62
|
-
<!-- Included Modules -->
|
63
|
-
|
64
|
-
</div>
|
65
|
-
|
66
|
-
<div id="project-metadata">
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
<div id="classindex-section" class="section project-section">
|
71
|
-
<h3 class="section-header">Class Index
|
72
|
-
<span class="search-toggle"><img src="./images/find.png"
|
73
|
-
height="16" width="16" alt="[+]"
|
74
|
-
title="show/hide quicksearch" /></span></h3>
|
75
|
-
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
76
|
-
<fieldset>
|
77
|
-
<legend>Quicksearch</legend>
|
78
|
-
<input type="text" name="quicksearch" value=""
|
79
|
-
class="quicksearch-field" />
|
80
|
-
</fieldset>
|
81
|
-
</form>
|
82
|
-
|
83
|
-
<ul class="link-list">
|
84
|
-
|
85
|
-
<li><a href="./RBatch.html">RBatch</a></li>
|
86
|
-
|
87
|
-
<li><a href="./RBatch/Cmd.html">RBatch::Cmd</a></li>
|
88
|
-
|
89
|
-
<li><a href="./RBatch/CmdException.html">RBatch::CmdException</a></li>
|
90
|
-
|
91
|
-
<li><a href="./RBatch/CmdResult.html">RBatch::CmdResult</a></li>
|
92
|
-
|
93
|
-
<li><a href="./RBatch/CommonConfig.html">RBatch::CommonConfig</a></li>
|
94
|
-
|
95
|
-
<li><a href="./RBatch/CommonConfig/Exception.html">RBatch::CommonConfig::Exception</a></li>
|
96
|
-
|
97
|
-
<li><a href="./RBatch/Config.html">RBatch::Config</a></li>
|
98
|
-
|
99
|
-
<li><a href="./RBatch/Config/Exception.html">RBatch::Config::Exception</a></li>
|
100
|
-
|
101
|
-
<li><a href="./RBatch/Log.html">RBatch::Log</a></li>
|
102
|
-
|
103
|
-
<li><a href="./RBatchException.html">RBatchException</a></li>
|
104
|
-
|
105
|
-
<li><a href="./Rbatch.html">Rbatch</a></li>
|
106
|
-
|
107
|
-
</ul>
|
108
|
-
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
109
|
-
</div>
|
110
|
-
|
111
|
-
|
112
|
-
</div>
|
113
|
-
</div>
|
114
|
-
|
115
|
-
<div id="documentation">
|
116
|
-
<h1 class="module">Rbatch</h1>
|
117
|
-
|
118
|
-
<div id="description">
|
119
|
-
|
120
|
-
</div>
|
121
|
-
|
122
|
-
<!-- Constants -->
|
123
|
-
|
124
|
-
<div id="constants-list" class="section">
|
125
|
-
<h3 class="section-header">Constants</h3>
|
126
|
-
<dl>
|
127
|
-
|
128
|
-
<dt><a name="VERSION">VERSION</a></dt>
|
129
|
-
|
130
|
-
<dd class="description"></dd>
|
131
|
-
|
132
|
-
|
133
|
-
</dl>
|
134
|
-
</div>
|
135
|
-
|
136
|
-
|
137
|
-
<!-- Attributes -->
|
138
|
-
|
139
|
-
|
140
|
-
<!-- Methods -->
|
141
|
-
|
142
|
-
|
143
|
-
</div>
|
144
|
-
|
145
|
-
|
146
|
-
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
147
|
-
|
148
|
-
<p>Disabled; run with --debug to generate this.</p>
|
149
|
-
|
150
|
-
</div>
|
151
|
-
|
152
|
-
<div id="validator-badges">
|
153
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
154
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
155
|
-
Rdoc Generator</a> 1.1.6</small>.</p>
|
156
|
-
</div>
|
157
|
-
|
158
|
-
</body>
|
159
|
-
</html>
|
160
|
-
|