triglav-agent 1.0.0.rc1 → 1.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
@@ -261,7 +261,7 @@
261
261
  </div>
262
262
 
263
263
  <div id="footer">
264
- Generated on Wed Mar 8 23:12:38 2017 by
264
+ Generated on Tue Mar 14 19:09:27 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 Wed Mar 8 23:12:38 2017 by
280
+ Generated on Tue Mar 14 19:09:27 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>
@@ -0,0 +1,850 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: Triglav::Agent::Status
8
+
9
+ &mdash; Documentation by YARD 0.9.5
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ pathId = "Triglav::Agent::Status";
19
+ relpath = '../../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../../class_list.html"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../../_index.html">Index (S)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../../Triglav.html" title="Triglav (module)">Triglav</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Agent.html" title="Triglav::Agent (module)">Agent</a></span></span>
41
+ &raquo;
42
+ <span class="title">Status</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <iframe id="search_frame" src="../../class_list.html"></iframe>
63
+
64
+ <div id="content"><h1>Class: Triglav::Agent::Status
65
+
66
+
67
+
68
+ </h1>
69
+ <div class="box_info">
70
+
71
+ <dl>
72
+ <dt>Inherits:</dt>
73
+ <dd>
74
+ <span class="inheritName">Object</span>
75
+
76
+ <ul class="fullTree">
77
+ <li>Object</li>
78
+
79
+ <li class="next">Triglav::Agent::Status</li>
80
+
81
+ </ul>
82
+ <a href="#" class="inheritanceTree">show all</a>
83
+
84
+ </dd>
85
+ </dl>
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+ <dl>
98
+ <dt>Defined in:</dt>
99
+ <dd>lib/triglav/agent/status.rb</dd>
100
+ </dl>
101
+
102
+ </div>
103
+
104
+
105
+ <h2>Constant Summary</h2>
106
+ <dl class="constants">
107
+
108
+ <dt id="VERSION-constant" class="">VERSION =
109
+
110
+ </dt>
111
+ <dd><pre class="code"><span class='symbol'>:v1</span></pre></dd>
112
+
113
+ </dl>
114
+
115
+
116
+
117
+
118
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
119
+ <ul class="summary">
120
+
121
+ <li class="public ">
122
+ <span class="summary_signature">
123
+
124
+ <a href="#path-instance_method" title="#path (instance method)">#<strong>path</strong> &#x21d2; Object </a>
125
+
126
+
127
+
128
+ </span>
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+ <span class="summary_desc"><div class='inline'>
142
+ <p>Returns the value of attribute path.</p>
143
+ </div></span>
144
+
145
+ </li>
146
+
147
+
148
+ <li class="public ">
149
+ <span class="summary_signature">
150
+
151
+ <a href="#resource_uri-instance_method" title="#resource_uri (instance method)">#<strong>resource_uri</strong> &#x21d2; Object </a>
152
+
153
+
154
+
155
+ </span>
156
+
157
+
158
+
159
+
160
+ <span class="note title readonly">readonly</span>
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+ <span class="summary_desc"><div class='inline'>
171
+ <p>Returns the value of attribute resource_uri.</p>
172
+ </div></span>
173
+
174
+ </li>
175
+
176
+
177
+ <li class="public ">
178
+ <span class="summary_signature">
179
+
180
+ <a href="#resource_uri_prefix-instance_method" title="#resource_uri_prefix (instance method)">#<strong>resource_uri_prefix</strong> &#x21d2; Object </a>
181
+
182
+
183
+
184
+ </span>
185
+
186
+
187
+
188
+
189
+ <span class="note title readonly">readonly</span>
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+ <span class="summary_desc"><div class='inline'>
200
+ <p>Returns the value of attribute resource_uri_prefix.</p>
201
+ </div></span>
202
+
203
+ </li>
204
+
205
+
206
+ </ul>
207
+
208
+
209
+
210
+
211
+
212
+ <h2>
213
+ Class Method Summary
214
+ <small><a href="#" class="summary_toggle">collapse</a></small>
215
+ </h2>
216
+
217
+ <ul class="summary">
218
+
219
+ <li class="public ">
220
+ <span class="summary_signature">
221
+
222
+ <a href="#select_resource_uri_prefixes%21-class_method" title="select_resource_uri_prefixes! (class method)">.<strong>select_resource_uri_prefixes!</strong>(resource_uri_prefixes) &#x21d2; Object </a>
223
+
224
+
225
+
226
+ </span>
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+ <span class="summary_desc"><div class='inline'></div></span>
237
+
238
+ </li>
239
+
240
+
241
+ <li class="public ">
242
+ <span class="summary_signature">
243
+
244
+ <a href="#select_resource_uris%21-class_method" title="select_resource_uris! (class method)">.<strong>select_resource_uris!</strong>(resource_uri_prefix, resource_uris) &#x21d2; Object </a>
245
+
246
+
247
+
248
+ </span>
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+ <span class="summary_desc"><div class='inline'></div></span>
259
+
260
+ </li>
261
+
262
+
263
+ </ul>
264
+
265
+ <h2>
266
+ Instance Method Summary
267
+ <small><a href="#" class="summary_toggle">collapse</a></small>
268
+ </h2>
269
+
270
+ <ul class="summary">
271
+
272
+ <li class="public ">
273
+ <span class="summary_signature">
274
+
275
+ <a href="#get-instance_method" title="#get (instance method)">#<strong>get</strong>(*args) &#x21d2; Object </a>
276
+
277
+
278
+
279
+ </span>
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+ <span class="summary_desc"><div class='inline'>
290
+ <p>get(key) get(key1, key2) <a href="key">get(</a>) get([key1, key2]).</p>
291
+ </div></span>
292
+
293
+ </li>
294
+
295
+
296
+ <li class="public ">
297
+ <span class="summary_signature">
298
+
299
+ <a href="#getsetnx-instance_method" title="#getsetnx (instance method)">#<strong>getsetnx</strong>(*args) &#x21d2; Object </a>
300
+
301
+
302
+
303
+ </span>
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+ <span class="summary_desc"><div class='inline'>
314
+ <p>getsetnx(val) getsetnx(key, val) getsetnx(key1, key2, val) <a
315
+ href="key">getsetnx(</a>, val) getsetnx([key1, key2], val).</p>
316
+ </div></span>
317
+
318
+ </li>
319
+
320
+
321
+ <li class="public ">
322
+ <span class="summary_signature">
323
+
324
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(resource_uri_prefix, resource_uri) &#x21d2; Status </a>
325
+
326
+
327
+
328
+ </span>
329
+
330
+
331
+ <span class="note title constructor">constructor</span>
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+ <span class="summary_desc"><div class='inline'>
341
+ <p>A new instance of Status.</p>
342
+ </div></span>
343
+
344
+ </li>
345
+
346
+
347
+ <li class="public ">
348
+ <span class="summary_signature">
349
+
350
+ <a href="#set-instance_method" title="#set (instance method)">#<strong>set</strong>(*args) &#x21d2; 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>set(val) set(key, val) set(key1, key2, val) <a href="key">set(</a>, val)
366
+ set([key1, key2], val).</p>
367
+ </div></span>
368
+
369
+ </li>
370
+
371
+
372
+ <li class="public ">
373
+ <span class="summary_signature">
374
+
375
+ <a href="#setnx-instance_method" title="#setnx (instance method)">#<strong>setnx</strong>(*args) &#x21d2; Object </a>
376
+
377
+
378
+
379
+ </span>
380
+
381
+
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+ <span class="summary_desc"><div class='inline'>
390
+ <p>setnx(val) setnx(key, val) setnx(key1, key2, val) <a href="key">setnx(</a>,
391
+ val) setnx([key1, key2], val).</p>
392
+ </div></span>
393
+
394
+ </li>
395
+
396
+
397
+ </ul>
398
+
399
+
400
+ <div id="constructor_details" class="method_details_list">
401
+ <h2>Constructor Details</h2>
402
+
403
+ <div class="method_details first">
404
+ <h3 class="signature first" id="initialize-instance_method">
405
+
406
+ #<strong>initialize</strong>(resource_uri_prefix, resource_uri) &#x21d2; <tt><span class='object_link'><a href="" title="Triglav::Agent::Status (class)">Status</a></span></tt>
407
+
408
+
409
+
410
+
411
+
412
+ </h3><div class="docstring">
413
+ <div class="discussion">
414
+
415
+ <p>Returns a new instance of Status</p>
416
+
417
+
418
+ </div>
419
+ </div>
420
+ <div class="tags">
421
+
422
+
423
+ </div><table class="source_code">
424
+ <tr>
425
+ <td>
426
+ <pre class="lines">
427
+
428
+
429
+ 11
430
+ 12
431
+ 13
432
+ 14
433
+ 15
434
+ 16</pre>
435
+ </td>
436
+ <td>
437
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/status.rb', line 11</span>
438
+
439
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</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_uri'>resource_uri</span><span class='rparen'>)</span>
440
+ <span class='ivar'>@path</span> <span class='op'>=</span> <span class='gvar'>$setting</span><span class='period'>.</span><span class='id identifier rubyid_status_file'>status_file</span>
441
+ <span class='ivar'>@resource_uri_prefix</span> <span class='op'>=</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>
442
+ <span class='ivar'>@resource_uri</span> <span class='op'>=</span> <span class='id identifier rubyid_resource_uri'>resource_uri</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
443
+ <span class='ivar'>@parents</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='const'>VERSION</span><span class='comma'>,</span> <span class='ivar'>@resource_uri_prefix</span><span class='comma'>,</span> <span class='ivar'>@resource_uri</span><span class='rbracket'>]</span>
444
+ <span class='kw'>end</span></pre>
445
+ </td>
446
+ </tr>
447
+ </table>
448
+ </div>
449
+
450
+ </div>
451
+
452
+ <div id="instance_attr_details" class="attr_details">
453
+ <h2>Instance Attribute Details</h2>
454
+
455
+
456
+ <span id="path=-instance_method"></span>
457
+ <div class="method_details first">
458
+ <h3 class="signature first" id="path-instance_method">
459
+
460
+ #<strong>path</strong> &#x21d2; <tt>Object</tt>
461
+
462
+
463
+
464
+
465
+
466
+ </h3><div class="docstring">
467
+ <div class="discussion">
468
+
469
+ <p>Returns the value of attribute path</p>
470
+
471
+
472
+ </div>
473
+ </div>
474
+ <div class="tags">
475
+
476
+
477
+ </div><table class="source_code">
478
+ <tr>
479
+ <td>
480
+ <pre class="lines">
481
+
482
+
483
+ 6
484
+ 7
485
+ 8</pre>
486
+ </td>
487
+ <td>
488
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/status.rb', line 6</span>
489
+
490
+ <span class='kw'>def</span> <span class='id identifier rubyid_path'>path</span>
491
+ <span class='ivar'>@path</span>
492
+ <span class='kw'>end</span></pre>
493
+ </td>
494
+ </tr>
495
+ </table>
496
+ </div>
497
+
498
+
499
+ <span id=""></span>
500
+ <div class="method_details ">
501
+ <h3 class="signature " id="resource_uri-instance_method">
502
+
503
+ #<strong>resource_uri</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
504
+
505
+
506
+
507
+
508
+
509
+ </h3><div class="docstring">
510
+ <div class="discussion">
511
+
512
+ <p>Returns the value of attribute resource_uri</p>
513
+
514
+
515
+ </div>
516
+ </div>
517
+ <div class="tags">
518
+
519
+
520
+ </div><table class="source_code">
521
+ <tr>
522
+ <td>
523
+ <pre class="lines">
524
+
525
+
526
+ 7
527
+ 8
528
+ 9</pre>
529
+ </td>
530
+ <td>
531
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/status.rb', line 7</span>
532
+
533
+ <span class='kw'>def</span> <span class='id identifier rubyid_resource_uri'>resource_uri</span>
534
+ <span class='ivar'>@resource_uri</span>
535
+ <span class='kw'>end</span></pre>
536
+ </td>
537
+ </tr>
538
+ </table>
539
+ </div>
540
+
541
+
542
+ <span id=""></span>
543
+ <div class="method_details ">
544
+ <h3 class="signature " id="resource_uri_prefix-instance_method">
545
+
546
+ #<strong>resource_uri_prefix</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
547
+
548
+
549
+
550
+
551
+
552
+ </h3><div class="docstring">
553
+ <div class="discussion">
554
+
555
+ <p>Returns the value of attribute resource_uri_prefix</p>
556
+
557
+
558
+ </div>
559
+ </div>
560
+ <div class="tags">
561
+
562
+
563
+ </div><table class="source_code">
564
+ <tr>
565
+ <td>
566
+ <pre class="lines">
567
+
568
+
569
+ 7
570
+ 8
571
+ 9</pre>
572
+ </td>
573
+ <td>
574
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/status.rb', line 7</span>
575
+
576
+ <span class='kw'>def</span> <span class='id identifier rubyid_resource_uri_prefix'>resource_uri_prefix</span>
577
+ <span class='ivar'>@resource_uri_prefix</span>
578
+ <span class='kw'>end</span></pre>
579
+ </td>
580
+ </tr>
581
+ </table>
582
+ </div>
583
+
584
+ </div>
585
+
586
+
587
+ <div id="class_method_details" class="method_details_list">
588
+ <h2>Class Method Details</h2>
589
+
590
+
591
+ <div class="method_details first">
592
+ <h3 class="signature first" id="select_resource_uri_prefixes!-class_method">
593
+
594
+ .<strong>select_resource_uri_prefixes!</strong>(resource_uri_prefixes) &#x21d2; <tt>Object</tt>
595
+
596
+
597
+
598
+
599
+
600
+ </h3><table class="source_code">
601
+ <tr>
602
+ <td>
603
+ <pre class="lines">
604
+
605
+
606
+ 60
607
+ 61
608
+ 62</pre>
609
+ </td>
610
+ <td>
611
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/status.rb', line 60</span>
612
+
613
+ <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
+ <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'>&amp;</span><span class='symbol'>:to_sym</span><span class='rparen'>)</span><span class='rparen'>)</span>
615
+ <span class='kw'>end</span></pre>
616
+ </td>
617
+ </tr>
618
+ </table>
619
+ </div>
620
+
621
+ <div class="method_details ">
622
+ <h3 class="signature " id="select_resource_uris!-class_method">
623
+
624
+ .<strong>select_resource_uris!</strong>(resource_uri_prefix, resource_uris) &#x21d2; <tt>Object</tt>
625
+
626
+
627
+
628
+
629
+
630
+ </h3><table class="source_code">
631
+ <tr>
632
+ <td>
633
+ <pre class="lines">
634
+
635
+
636
+ 64
637
+ 65
638
+ 66</pre>
639
+ </td>
640
+ <td>
641
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/status.rb', line 64</span>
642
+
643
+ <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
+ <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'>&amp;</span><span class='symbol'>:to_sym</span><span class='rparen'>)</span><span class='rparen'>)</span>
645
+ <span class='kw'>end</span></pre>
646
+ </td>
647
+ </tr>
648
+ </table>
649
+ </div>
650
+
651
+ </div>
652
+
653
+ <div id="instance_method_details" class="method_details_list">
654
+ <h2>Instance Method Details</h2>
655
+
656
+
657
+ <div class="method_details first">
658
+ <h3 class="signature first" id="get-instance_method">
659
+
660
+ #<strong>get</strong>(*args) &#x21d2; <tt>Object</tt>
661
+
662
+
663
+
664
+
665
+
666
+ </h3><div class="docstring">
667
+ <div class="discussion">
668
+
669
+ <p>get(key) get(key1, key2) <a href="key">get(</a>) get([key1, key2])</p>
670
+
671
+
672
+ </div>
673
+ </div>
674
+ <div class="tags">
675
+
676
+
677
+ </div><table class="source_code">
678
+ <tr>
679
+ <td>
680
+ <pre class="lines">
681
+
682
+
683
+ 55
684
+ 56
685
+ 57
686
+ 58</pre>
687
+ </td>
688
+ <td>
689
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/status.rb', line 55</span>
690
+
691
+ <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
+ <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>
693
+ <span class='const'>StorageFile</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</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='rparen'>)</span>
694
+ <span class='kw'>end</span></pre>
695
+ </td>
696
+ </tr>
697
+ </table>
698
+ </div>
699
+
700
+ <div class="method_details ">
701
+ <h3 class="signature " id="getsetnx-instance_method">
702
+
703
+ #<strong>getsetnx</strong>(*args) &#x21d2; <tt>Object</tt>
704
+
705
+
706
+
707
+
708
+
709
+ </h3><div class="docstring">
710
+ <div class="discussion">
711
+
712
+ <p>getsetnx(val) getsetnx(key, val) getsetnx(key1, key2, val) <a
713
+ href="key">getsetnx(</a>, val) getsetnx([key1, key2], val)</p>
714
+
715
+
716
+ </div>
717
+ </div>
718
+ <div class="tags">
719
+
720
+
721
+ </div><table class="source_code">
722
+ <tr>
723
+ <td>
724
+ <pre class="lines">
725
+
726
+
727
+ 45
728
+ 46
729
+ 47
730
+ 48
731
+ 49</pre>
732
+ </td>
733
+ <td>
734
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/status.rb', line 45</span>
735
+
736
+ <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
+ <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>
738
+ <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>
739
+ <span class='const'>StorageFile</span><span class='period'>.</span><span class='id identifier rubyid_getsetnx'>getsetnx</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>
740
+ <span class='kw'>end</span></pre>
741
+ </td>
742
+ </tr>
743
+ </table>
744
+ </div>
745
+
746
+ <div class="method_details ">
747
+ <h3 class="signature " id="set-instance_method">
748
+
749
+ #<strong>set</strong>(*args) &#x21d2; <tt>Object</tt>
750
+
751
+
752
+
753
+
754
+
755
+ </h3><div class="docstring">
756
+ <div class="discussion">
757
+
758
+ <p>set(val) set(key, val) set(key1, key2, val) <a href="key">set(</a>, val)
759
+ set([key1, key2], val)</p>
760
+
761
+
762
+ </div>
763
+ </div>
764
+ <div class="tags">
765
+
766
+
767
+ </div><table class="source_code">
768
+ <tr>
769
+ <td>
770
+ <pre class="lines">
771
+
772
+
773
+ 23
774
+ 24
775
+ 25
776
+ 26
777
+ 27</pre>
778
+ </td>
779
+ <td>
780
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/status.rb', line 23</span>
781
+
782
+ <span class='kw'>def</span> <span class='id identifier rubyid_set'>set</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
783
+ <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>
784
+ <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>
785
+ <span class='const'>StorageFile</span><span class='period'>.</span><span class='id identifier rubyid_set'>set</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>
786
+ <span class='kw'>end</span></pre>
787
+ </td>
788
+ </tr>
789
+ </table>
790
+ </div>
791
+
792
+ <div class="method_details ">
793
+ <h3 class="signature " id="setnx-instance_method">
794
+
795
+ #<strong>setnx</strong>(*args) &#x21d2; <tt>Object</tt>
796
+
797
+
798
+
799
+
800
+
801
+ </h3><div class="docstring">
802
+ <div class="discussion">
803
+
804
+ <p>setnx(val) setnx(key, val) setnx(key1, key2, val) <a href="key">setnx(</a>,
805
+ val) setnx([key1, key2], val)</p>
806
+
807
+
808
+ </div>
809
+ </div>
810
+ <div class="tags">
811
+
812
+
813
+ </div><table class="source_code">
814
+ <tr>
815
+ <td>
816
+ <pre class="lines">
817
+
818
+
819
+ 34
820
+ 35
821
+ 36
822
+ 37
823
+ 38</pre>
824
+ </td>
825
+ <td>
826
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/status.rb', line 34</span>
827
+
828
+ <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
+ <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>
830
+ <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>
831
+ <span class='const'>StorageFile</span><span class='period'>.</span><span class='id identifier rubyid_setnx'>setnx</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>
832
+ <span class='kw'>end</span></pre>
833
+ </td>
834
+ </tr>
835
+ </table>
836
+ </div>
837
+
838
+ </div>
839
+
840
+ </div>
841
+
842
+ <div id="footer">
843
+ Generated on Tue Mar 14 19:09:27 2017 by
844
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
845
+ 0.9.5 (ruby-2.3.2).
846
+ </div>
847
+
848
+ </div>
849
+ </body>
850
+ </html>