triglav-agent 1.0.0.rc3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/docs/Triglav.html +1 -1
- data/docs/Triglav/Agent.html +2 -2
- data/docs/Triglav/Agent/ApiClient.html +1 -1
- data/docs/Triglav/Agent/ApiClient/AuthenticationError.html +1 -1
- data/docs/Triglav/Agent/ApiClient/ConnectionError.html +1 -1
- data/docs/Triglav/Agent/ApiClient/Error.html +1 -1
- data/docs/Triglav/Agent/Base.html +1 -1
- data/docs/Triglav/Agent/Base/CLI.html +1 -1
- data/docs/Triglav/Agent/Base/Connection.html +1 -1
- data/docs/Triglav/Agent/Base/Monitor.html +1 -1
- data/docs/Triglav/Agent/Base/Processor.html +1 -1
- data/docs/Triglav/Agent/Base/Setting.html +1 -1
- data/docs/Triglav/Agent/Base/Worker.html +16 -18
- data/docs/Triglav/Agent/Configuration.html +1 -1
- data/docs/Triglav/Agent/Error.html +1 -1
- data/docs/Triglav/Agent/HashUtil.html +1 -1
- data/docs/Triglav/Agent/LogFormatter.html +1 -1
- data/docs/Triglav/Agent/Logger.html +1 -1
- data/docs/Triglav/Agent/Status.html +98 -26
- data/docs/Triglav/Agent/StorageFile.html +330 -88
- data/docs/Triglav/Agent/Timer.html +1 -1
- data/docs/Triglav/Agent/TooManyError.html +1 -1
- data/docs/_index.html +1 -1
- data/docs/file.LICENSE.html +1 -1
- data/docs/file.README.html +1 -1
- data/docs/index.html +1 -1
- data/docs/method_list.html +96 -72
- data/docs/top-level-namespace.html +1 -1
- data/lib/triglav/agent/base/worker.rb +5 -6
- data/lib/triglav/agent/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86da8c698aa68fee5a6659b51eb9b2effe3b935c
|
4
|
+
data.tar.gz: aecfebef4d66fa4204e1eee157697cd72ce212d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ce2de4ef5f895fd8d59dc6f7dc06cb7b7dcc590ca0c783fe704476014c9daba8558b8e00d882306f62d144a850ef55cc9108f6d2fc444f0e0ff4407748ed724
|
7
|
+
data.tar.gz: 9b194c0934a08775f63217679444a86744ebb83f2fb0e42652237224eb8fbee2f902c400f5aac2aea71b756616d2983ba0b5a7441f7e79ca67f6da26c26dcb60
|
data/CHANGELOG.md
CHANGED
data/docs/Triglav.html
CHANGED
@@ -109,7 +109,7 @@
|
|
109
109
|
</div>
|
110
110
|
|
111
111
|
<div id="footer">
|
112
|
-
Generated on
|
112
|
+
Generated on Fri Mar 24 11:36:53 2017 by
|
113
113
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
114
114
|
0.9.5 (ruby-2.3.2).
|
115
115
|
</div>
|
data/docs/Triglav/Agent.html
CHANGED
@@ -106,7 +106,7 @@
|
|
106
106
|
<dt id="VERSION-constant" class="">VERSION =
|
107
107
|
|
108
108
|
</dt>
|
109
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>1.0.0.
|
109
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>1.0.0.rc3</span><span class='tstring_end'>"</span></span></pre></dd>
|
110
110
|
|
111
111
|
</dl>
|
112
112
|
|
@@ -121,7 +121,7 @@
|
|
121
121
|
</div>
|
122
122
|
|
123
123
|
<div id="footer">
|
124
|
-
Generated on
|
124
|
+
Generated on Fri Mar 24 11:36:53 2017 by
|
125
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
126
126
|
0.9.5 (ruby-2.3.2).
|
127
127
|
</div>
|
@@ -597,7 +597,7 @@ $setting.token_file.</p>
|
|
597
597
|
</div>
|
598
598
|
|
599
599
|
<div id="footer">
|
600
|
-
Generated on
|
600
|
+
Generated on Fri Mar 24 11:36:54 2017 by
|
601
601
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
602
602
|
0.9.5 (ruby-2.3.2).
|
603
603
|
</div>
|
@@ -140,7 +140,7 @@
|
|
140
140
|
</div>
|
141
141
|
|
142
142
|
<div id="footer">
|
143
|
-
Generated on
|
143
|
+
Generated on Fri Mar 24 11:36:54 2017 by
|
144
144
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
145
145
|
0.9.5 (ruby-2.3.2).
|
146
146
|
</div>
|
@@ -140,7 +140,7 @@
|
|
140
140
|
</div>
|
141
141
|
|
142
142
|
<div id="footer">
|
143
|
-
Generated on
|
143
|
+
Generated on Fri Mar 24 11:36:54 2017 by
|
144
144
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
145
145
|
0.9.5 (ruby-2.3.2).
|
146
146
|
</div>
|
@@ -286,7 +286,7 @@
|
|
286
286
|
</div>
|
287
287
|
|
288
288
|
<div id="footer">
|
289
|
-
Generated on
|
289
|
+
Generated on Fri Mar 24 11:36:54 2017 by
|
290
290
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
291
291
|
0.9.5 (ruby-2.3.2).
|
292
292
|
</div>
|
@@ -111,7 +111,7 @@
|
|
111
111
|
</div>
|
112
112
|
|
113
113
|
<div id="footer">
|
114
|
-
Generated on
|
114
|
+
Generated on Fri Mar 24 11:36:53 2017 by
|
115
115
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
116
116
|
0.9.5 (ruby-2.3.2).
|
117
117
|
</div>
|
@@ -490,7 +490,7 @@ implement your original, configure</p>
|
|
490
490
|
</div>
|
491
491
|
|
492
492
|
<div id="footer">
|
493
|
-
Generated on
|
493
|
+
Generated on Fri Mar 24 11:36:54 2017 by
|
494
494
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
495
495
|
0.9.5 (ruby-2.3.2).
|
496
496
|
</div>
|
@@ -334,7 +334,7 @@ parallel threads are created in Processor class.</p>
|
|
334
334
|
</div>
|
335
335
|
|
336
336
|
<div id="footer">
|
337
|
-
Generated on
|
337
|
+
Generated on Fri Mar 24 11:36:54 2017 by
|
338
338
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
339
339
|
0.9.5 (ruby-2.3.2).
|
340
340
|
</div>
|
@@ -360,7 +360,7 @@ parallel thread basically, and `#process` is ran concurrently.</p>
|
|
360
360
|
</div>
|
361
361
|
|
362
362
|
<div id="footer">
|
363
|
-
Generated on
|
363
|
+
Generated on Fri Mar 24 11:36:54 2017 by
|
364
364
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
365
365
|
0.9.5 (ruby-2.3.2).
|
366
366
|
</div>
|
@@ -605,7 +605,7 @@ implement your original, configure</p>
|
|
605
605
|
</div>
|
606
606
|
|
607
607
|
<div id="footer">
|
608
|
-
Generated on
|
608
|
+
Generated on Fri Mar 24 11:36:54 2017 by
|
609
609
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
610
610
|
0.9.5 (ruby-2.3.2).
|
611
611
|
</div>
|
@@ -1073,7 +1073,7 @@ implement your original, configure</p>
|
|
1073
1073
|
</div>
|
1074
1074
|
|
1075
1075
|
<div id="footer">
|
1076
|
-
Generated on
|
1076
|
+
Generated on Fri Mar 24 11:36:54 2017 by
|
1077
1077
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1078
1078
|
0.9.5 (ruby-2.3.2).
|
1079
1079
|
</div>
|
@@ -363,15 +363,14 @@ implement your original, configure</p>
|
|
363
363
|
53
|
364
364
|
54
|
365
365
|
55
|
366
|
-
56
|
367
|
-
57</pre>
|
366
|
+
56</pre>
|
368
367
|
</td>
|
369
368
|
<td>
|
370
369
|
<pre class="code"><span class="info file"># File 'lib/triglav/agent/base/worker.rb', line 39</span>
|
371
370
|
|
372
371
|
<span class='kw'>def</span> <span class='id identifier rubyid_process'>process</span>
|
373
372
|
<span class='id identifier rubyid_started'>started</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span>
|
374
|
-
<span class='gvar'>$logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='lbrace'>{</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Start Worker#process
|
373
|
+
<span class='gvar'>$logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='lbrace'>{</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Start Worker#process</span><span class='tstring_end'>"</span></span> <span class='rbrace'>}</span>
|
375
374
|
|
376
375
|
<span class='id identifier rubyid_total_count'>total_count</span> <span class='op'>=</span> <span class='int'>0</span>
|
377
376
|
<span class='id identifier rubyid_total_success_count'>total_success_count</span> <span class='op'>=</span> <span class='int'>0</span>
|
@@ -384,8 +383,7 @@ implement your original, configure</p>
|
|
384
383
|
|
385
384
|
<span class='id identifier rubyid_elapsed'>elapsed</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span> <span class='op'>-</span> <span class='id identifier rubyid_started'>started</span>
|
386
385
|
<span class='gvar'>$logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='lbrace'>{</span>
|
387
|
-
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Finish Worker#process
|
388
|
-
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>success_count/total_count:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_total_success_count'>total_success_count</span><span class='embexpr_end'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_total_count'>total_count</span><span class='embexpr_end'>}</span><span class='tstring_content'> elapsed:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_elapsed'>elapsed</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span><span class='embexpr_end'>}</span><span class='tstring_content'>sec</span><span class='tstring_end'>"</span></span>
|
386
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Finish Worker#process success_count/total_count:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_total_success_count'>total_success_count</span><span class='embexpr_end'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_total_count'>total_count</span><span class='embexpr_end'>}</span><span class='tstring_content'> elapsed:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_elapsed'>elapsed</span><span class='period'>.</span><span class='id identifier rubyid_to_f'>to_f</span><span class='embexpr_end'>}</span><span class='tstring_content'>sec</span><span class='tstring_end'>"</span></span>
|
389
387
|
<span class='rbrace'>}</span>
|
390
388
|
<span class='kw'>end</span></pre>
|
391
389
|
</td>
|
@@ -429,7 +427,7 @@ implement your original, configure</p>
|
|
429
427
|
<pre class="code"><span class="info file"># File 'lib/triglav/agent/base/worker.rb', line 20</span>
|
430
428
|
|
431
429
|
<span class='kw'>def</span> <span class='id identifier rubyid_reload'>reload</span>
|
432
|
-
<span class='gvar'>$logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='lbrace'>{</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Worker#reload
|
430
|
+
<span class='gvar'>$logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='lbrace'>{</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Worker#reload</span><span class='tstring_end'>"</span></span> <span class='rbrace'>}</span>
|
433
431
|
<span class='gvar'>$setting</span><span class='period'>.</span><span class='id identifier rubyid_reload'>reload</span>
|
434
432
|
<span class='id identifier rubyid_reload_status'>reload_status</span>
|
435
433
|
<span class='kw'>end</span></pre>
|
@@ -480,7 +478,7 @@ implement your original, configure</p>
|
|
480
478
|
<pre class="code"><span class="info file"># File 'lib/triglav/agent/base/worker.rb', line 27</span>
|
481
479
|
|
482
480
|
<span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span>
|
483
|
-
<span class='gvar'>$logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='lbrace'>{</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Worker#run
|
481
|
+
<span class='gvar'>$logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='lbrace'>{</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Worker#run</span><span class='tstring_end'>"</span></span> <span class='rbrace'>}</span>
|
484
482
|
<span class='id identifier rubyid_start'>start</span>
|
485
483
|
<span class='kw'>until</span> <span class='ivar'>@stop</span>
|
486
484
|
<span class='ivar'>@timer</span><span class='period'>.</span><span class='id identifier rubyid_wait'>wait</span><span class='lparen'>(</span><span class='id identifier rubyid_monitor_interval'>monitor_interval</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='id identifier rubyid_process'>process</span> <span class='rbrace'>}</span>
|
@@ -510,13 +508,13 @@ implement your original, configure</p>
|
|
510
508
|
<pre class="lines">
|
511
509
|
|
512
510
|
|
511
|
+
58
|
513
512
|
59
|
514
513
|
60
|
515
|
-
61
|
516
|
-
62</pre>
|
514
|
+
61</pre>
|
517
515
|
</td>
|
518
516
|
<td>
|
519
|
-
<pre class="code"><span class="info file"># File 'lib/triglav/agent/base/worker.rb', line
|
517
|
+
<pre class="code"><span class="info file"># File 'lib/triglav/agent/base/worker.rb', line 58</span>
|
520
518
|
|
521
519
|
<span class='kw'>def</span> <span class='id identifier rubyid_start'>start</span>
|
522
520
|
<span class='ivar'>@timer</span><span class='period'>.</span><span class='id identifier rubyid_start'>start</span>
|
@@ -553,17 +551,17 @@ implement your original, configure</p>
|
|
553
551
|
<pre class="lines">
|
554
552
|
|
555
553
|
|
554
|
+
64
|
556
555
|
65
|
557
556
|
66
|
558
557
|
67
|
559
|
-
68
|
560
|
-
69</pre>
|
558
|
+
68</pre>
|
561
559
|
</td>
|
562
560
|
<td>
|
563
|
-
<pre class="code"><span class="info file"># File 'lib/triglav/agent/base/worker.rb', line
|
561
|
+
<pre class="code"><span class="info file"># File 'lib/triglav/agent/base/worker.rb', line 64</span>
|
564
562
|
|
565
563
|
<span class='kw'>def</span> <span class='id identifier rubyid_stop'>stop</span>
|
566
|
-
<span class='gvar'>$logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='lbrace'>{</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Worker#stop
|
564
|
+
<span class='gvar'>$logger</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span> <span class='lbrace'>{</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Worker#stop</span><span class='tstring_end'>"</span></span> <span class='rbrace'>}</span>
|
567
565
|
<span class='ivar'>@stop</span> <span class='op'>=</span> <span class='kw'>true</span>
|
568
566
|
<span class='ivar'>@timer</span><span class='period'>.</span><span class='id identifier rubyid_stop'>stop</span>
|
569
567
|
<span class='kw'>end</span></pre>
|
@@ -609,12 +607,12 @@ implement your original, configure</p>
|
|
609
607
|
<pre class="lines">
|
610
608
|
|
611
609
|
|
610
|
+
70
|
612
611
|
71
|
613
|
-
72
|
614
|
-
73</pre>
|
612
|
+
72</pre>
|
615
613
|
</td>
|
616
614
|
<td>
|
617
|
-
<pre class="code"><span class="info file"># File 'lib/triglav/agent/base/worker.rb', line
|
615
|
+
<pre class="code"><span class="info file"># File 'lib/triglav/agent/base/worker.rb', line 70</span>
|
618
616
|
|
619
617
|
<span class='kw'>def</span> <span class='id identifier rubyid_stopped?'>stopped?</span>
|
620
618
|
<span class='ivar'>@stop</span>
|
@@ -629,7 +627,7 @@ implement your original, configure</p>
|
|
629
627
|
</div>
|
630
628
|
|
631
629
|
<div id="footer">
|
632
|
-
Generated on
|
630
|
+
Generated on Fri Mar 24 11:36:53 2017 by
|
633
631
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
634
632
|
0.9.5 (ruby-2.3.2).
|
635
633
|
</div>
|
@@ -957,7 +957,7 @@
|
|
957
957
|
</div>
|
958
958
|
|
959
959
|
<div id="footer">
|
960
|
-
Generated on
|
960
|
+
Generated on Fri Mar 24 11:36:54 2017 by
|
961
961
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
962
962
|
0.9.5 (ruby-2.3.2).
|
963
963
|
</div>
|
@@ -120,7 +120,7 @@
|
|
120
120
|
</div>
|
121
121
|
|
122
122
|
<div id="footer">
|
123
|
-
Generated on
|
123
|
+
Generated on Fri Mar 24 11:36:53 2017 by
|
124
124
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
125
125
|
0.9.5 (ruby-2.3.2).
|
126
126
|
</div>
|
@@ -341,7 +341,7 @@ href="'a'">hash</a>['b'] = 'bar'</p>
|
|
341
341
|
</div>
|
342
342
|
|
343
343
|
<div id="footer">
|
344
|
-
Generated on
|
344
|
+
Generated on Fri Mar 24 11:36:54 2017 by
|
345
345
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
346
346
|
0.9.5 (ruby-2.3.2).
|
347
347
|
</div>
|
@@ -261,7 +261,7 @@
|
|
261
261
|
</div>
|
262
262
|
|
263
263
|
<div id="footer">
|
264
|
-
Generated on
|
264
|
+
Generated on Fri Mar 24 11:36:54 2017 by
|
265
265
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
266
266
|
0.9.5 (ruby-2.3.2).
|
267
267
|
</div>
|
@@ -277,7 +277,7 @@
|
|
277
277
|
</div>
|
278
278
|
|
279
279
|
<div id="footer">
|
280
|
-
Generated on
|
280
|
+
Generated on Fri Mar 24 11:36:54 2017 by
|
281
281
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
282
282
|
0.9.5 (ruby-2.3.2).
|
283
283
|
</div>
|
@@ -341,6 +341,30 @@ href="key">getsetnx(</a>, val) getsetnx([key1, key2], val).</p>
|
|
341
341
|
<p>A new instance of Status.</p>
|
342
342
|
</div></span>
|
343
343
|
|
344
|
+
</li>
|
345
|
+
|
346
|
+
|
347
|
+
<li class="public ">
|
348
|
+
<span class="summary_signature">
|
349
|
+
|
350
|
+
<a href="#merge%21-instance_method" title="#merge! (instance method)">#<strong>merge!</strong>(*args) ⇒ Object </a>
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
</span>
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
<span class="summary_desc"><div class='inline'>
|
365
|
+
<p>Merge Hash value with existing Hash value.</p>
|
366
|
+
</div></span>
|
367
|
+
|
344
368
|
</li>
|
345
369
|
|
346
370
|
|
@@ -603,12 +627,12 @@ val) setnx([key1, key2], val).</p>
|
|
603
627
|
<pre class="lines">
|
604
628
|
|
605
629
|
|
606
|
-
|
607
|
-
|
608
|
-
|
630
|
+
73
|
631
|
+
74
|
632
|
+
75</pre>
|
609
633
|
</td>
|
610
634
|
<td>
|
611
|
-
<pre class="code"><span class="info file"># File 'lib/triglav/agent/status.rb', line
|
635
|
+
<pre class="code"><span class="info file"># File 'lib/triglav/agent/status.rb', line 73</span>
|
612
636
|
|
613
637
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_select_resource_uri_prefixes!'>select_resource_uri_prefixes!</span><span class='lparen'>(</span><span class='id identifier rubyid_resource_uri_prefixes'>resource_uri_prefixes</span><span class='rparen'>)</span>
|
614
638
|
<span class='const'>Triglav</span><span class='op'>::</span><span class='const'>Agent</span><span class='op'>::</span><span class='const'>StorageFile</span><span class='period'>.</span><span class='id identifier rubyid_select!'>select!</span><span class='lparen'>(</span><span class='gvar'>$setting</span><span class='period'>.</span><span class='id identifier rubyid_status_file'>status_file</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='const'>VERSION</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_resource_uri_prefixes'>resource_uri_prefixes</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:to_sym</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
@@ -633,12 +657,12 @@ val) setnx([key1, key2], val).</p>
|
|
633
657
|
<pre class="lines">
|
634
658
|
|
635
659
|
|
636
|
-
|
637
|
-
|
638
|
-
|
660
|
+
77
|
661
|
+
78
|
662
|
+
79</pre>
|
639
663
|
</td>
|
640
664
|
<td>
|
641
|
-
<pre class="code"><span class="info file"># File 'lib/triglav/agent/status.rb', line
|
665
|
+
<pre class="code"><span class="info file"># File 'lib/triglav/agent/status.rb', line 77</span>
|
642
666
|
|
643
667
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_select_resource_uris!'>select_resource_uris!</span><span class='lparen'>(</span><span class='id identifier rubyid_resource_uri_prefix'>resource_uri_prefix</span><span class='comma'>,</span> <span class='id identifier rubyid_resource_uris'>resource_uris</span><span class='rparen'>)</span>
|
644
668
|
<span class='const'>Triglav</span><span class='op'>::</span><span class='const'>Agent</span><span class='op'>::</span><span class='const'>StorageFile</span><span class='period'>.</span><span class='id identifier rubyid_select!'>select!</span><span class='lparen'>(</span><span class='gvar'>$setting</span><span class='period'>.</span><span class='id identifier rubyid_status_file'>status_file</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='const'>VERSION</span><span class='comma'>,</span> <span class='id identifier rubyid_resource_uri_prefix'>resource_uri_prefix</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_resource_uris'>resource_uris</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:to_sym</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
@@ -680,13 +704,13 @@ val) setnx([key1, key2], val).</p>
|
|
680
704
|
<pre class="lines">
|
681
705
|
|
682
706
|
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
707
|
+
68
|
708
|
+
69
|
709
|
+
70
|
710
|
+
71</pre>
|
687
711
|
</td>
|
688
712
|
<td>
|
689
|
-
<pre class="code"><span class="info file"># File 'lib/triglav/agent/status.rb', line
|
713
|
+
<pre class="code"><span class="info file"># File 'lib/triglav/agent/status.rb', line 68</span>
|
690
714
|
|
691
715
|
<span class='kw'>def</span> <span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
692
716
|
<span class='id identifier rubyid_keys'>keys</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='id identifier rubyid_args'>args</span> <span class='op'>||</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_flatten'>flatten</span>
|
@@ -724,14 +748,14 @@ href="key">getsetnx(</a>, val) getsetnx([key1, key2], val)</p>
|
|
724
748
|
<pre class="lines">
|
725
749
|
|
726
750
|
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
751
|
+
58
|
752
|
+
59
|
753
|
+
60
|
754
|
+
61
|
755
|
+
62</pre>
|
732
756
|
</td>
|
733
757
|
<td>
|
734
|
-
<pre class="code"><span class="info file"># File 'lib/triglav/agent/status.rb', line
|
758
|
+
<pre class="code"><span class="info file"># File 'lib/triglav/agent/status.rb', line 58</span>
|
735
759
|
|
736
760
|
<span class='kw'>def</span> <span class='id identifier rubyid_getsetnx'>getsetnx</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
737
761
|
<span class='id identifier rubyid_val'>val</span> <span class='op'>=</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_pop'>pop</span>
|
@@ -741,6 +765,54 @@ href="key">getsetnx(</a>, val) getsetnx([key1, key2], val)</p>
|
|
741
765
|
</td>
|
742
766
|
</tr>
|
743
767
|
</table>
|
768
|
+
</div>
|
769
|
+
|
770
|
+
<div class="method_details ">
|
771
|
+
<h3 class="signature " id="merge!-instance_method">
|
772
|
+
|
773
|
+
#<strong>merge!</strong>(*args) ⇒ <tt>Object</tt>
|
774
|
+
|
775
|
+
|
776
|
+
|
777
|
+
|
778
|
+
|
779
|
+
</h3><div class="docstring">
|
780
|
+
<div class="discussion">
|
781
|
+
|
782
|
+
<p>Merge Hash value with existing Hash value.</p>
|
783
|
+
|
784
|
+
<p>merge!(val) merge!(key, val) merge!(key1, key2, val) <a
|
785
|
+
href="key">merge!(</a>, val) merge!([key1, key2], val)</p>
|
786
|
+
|
787
|
+
|
788
|
+
</div>
|
789
|
+
</div>
|
790
|
+
<div class="tags">
|
791
|
+
|
792
|
+
|
793
|
+
</div><table class="source_code">
|
794
|
+
<tr>
|
795
|
+
<td>
|
796
|
+
<pre class="lines">
|
797
|
+
|
798
|
+
|
799
|
+
36
|
800
|
+
37
|
801
|
+
38
|
802
|
+
39
|
803
|
+
40</pre>
|
804
|
+
</td>
|
805
|
+
<td>
|
806
|
+
<pre class="code"><span class="info file"># File 'lib/triglav/agent/status.rb', line 36</span>
|
807
|
+
|
808
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_merge!'>merge!</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
809
|
+
<span class='id identifier rubyid_val'>val</span> <span class='op'>=</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_pop'>pop</span>
|
810
|
+
<span class='id identifier rubyid_keys'>keys</span> <span class='op'>=</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_flatten'>flatten</span>
|
811
|
+
<span class='const'>StorageFile</span><span class='period'>.</span><span class='id identifier rubyid_merge!'>merge!</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='op'>*</span><span class='ivar'>@parents</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_keys'>keys</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span>
|
812
|
+
<span class='kw'>end</span></pre>
|
813
|
+
</td>
|
814
|
+
</tr>
|
815
|
+
</table>
|
744
816
|
</div>
|
745
817
|
|
746
818
|
<div class="method_details ">
|
@@ -816,14 +888,14 @@ val) setnx([key1, key2], val)</p>
|
|
816
888
|
<pre class="lines">
|
817
889
|
|
818
890
|
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
891
|
+
47
|
892
|
+
48
|
893
|
+
49
|
894
|
+
50
|
895
|
+
51</pre>
|
824
896
|
</td>
|
825
897
|
<td>
|
826
|
-
<pre class="code"><span class="info file"># File 'lib/triglav/agent/status.rb', line
|
898
|
+
<pre class="code"><span class="info file"># File 'lib/triglav/agent/status.rb', line 47</span>
|
827
899
|
|
828
900
|
<span class='kw'>def</span> <span class='id identifier rubyid_setnx'>setnx</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
|
829
901
|
<span class='id identifier rubyid_val'>val</span> <span class='op'>=</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_pop'>pop</span>
|
@@ -840,7 +912,7 @@ val) setnx([key1, key2], val)</p>
|
|
840
912
|
</div>
|
841
913
|
|
842
914
|
<div id="footer">
|
843
|
-
Generated on
|
915
|
+
Generated on Fri Mar 24 11:36:54 2017 by
|
844
916
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
845
917
|
0.9.5 (ruby-2.3.2).
|
846
918
|
</div>
|