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.
@@ -237,6 +237,30 @@
237
237
  <p>Load storage file.</p>
238
238
  </div></span>
239
239
 
240
+ </li>
241
+
242
+
243
+ <li class="public ">
244
+ <span class="summary_signature">
245
+
246
+ <a href="#merge%21-class_method" title="merge! (class method)">.<strong>merge!</strong>(path, key, val) &#x21d2; Object </a>
247
+
248
+
249
+
250
+ </span>
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+ <span class="summary_desc"><div class='inline'>
261
+ <p>Merge Hash value with existing Hash value.</p>
262
+ </div></span>
263
+
240
264
  </li>
241
265
 
242
266
 
@@ -261,6 +285,30 @@
261
285
  <p>Open storage file.</p>
262
286
  </div></span>
263
287
 
288
+ </li>
289
+
290
+
291
+ <li class="public ">
292
+ <span class="summary_signature">
293
+
294
+ <a href="#readopen-class_method" title="readopen (class method)">.<strong>readopen</strong>(path, &amp;block) &#x21d2; Object </a>
295
+
296
+
297
+
298
+ </span>
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+ <span class="summary_desc"><div class='inline'>
309
+ <p>Open storage file to read.</p>
310
+ </div></span>
311
+
264
312
  </li>
265
313
 
266
314
 
@@ -506,17 +554,17 @@
506
554
  <pre class="lines">
507
555
 
508
556
 
509
- 122
510
- 123
511
- 124
512
- 125</pre>
557
+ 175
558
+ 176
559
+ 177
560
+ 178</pre>
513
561
  </td>
514
562
  <td>
515
- <pre class="code"><span class="info file"># File 'lib/triglav/agent/storage_file.rb', line 122</span>
563
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/storage_file.rb', line 175</span>
516
564
 
517
565
  <span class='kw'>def</span> <span class='kw'>self</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='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
518
566
  <span class='id identifier rubyid_keys'>keys</span> <span class='op'>=</span> <span class='const'>Array</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
519
- <span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_fp'>fp</span><span class='op'>|</span> <span class='id identifier rubyid_fp'>fp</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span><span class='period'>.</span><span class='id identifier rubyid_dig'>dig</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_keys'>keys</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
567
+ <span class='id identifier rubyid_readopen'>readopen</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_fp'>fp</span><span class='op'>|</span> <span class='id identifier rubyid_fp'>fp</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span><span class='period'>.</span><span class='id identifier rubyid_dig'>dig</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_keys'>keys</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
520
568
  <span class='kw'>end</span></pre>
521
569
  </td>
522
570
  </tr>
@@ -610,21 +658,21 @@
610
658
  <pre class="lines">
611
659
 
612
660
 
613
- 102
614
- 103
615
- 104
616
- 105
617
- 106
618
- 107
619
- 108
620
- 109
621
- 110
622
- 111
623
- 112
624
- 113</pre>
661
+ 155
662
+ 156
663
+ 157
664
+ 158
665
+ 159
666
+ 160
667
+ 161
668
+ 162
669
+ 163
670
+ 164
671
+ 165
672
+ 166</pre>
625
673
  </td>
626
674
  <td>
627
- <pre class="code"><span class="info file"># File 'lib/triglav/agent/storage_file.rb', line 102</span>
675
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/storage_file.rb', line 155</span>
628
676
 
629
677
  <span class='kw'>def</span> <span class='kw'>self</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='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span>
630
678
  <span class='id identifier rubyid_keys'>keys</span> <span class='op'>=</span> <span class='const'>Array</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
@@ -700,12 +748,12 @@
700
748
  <pre class="lines">
701
749
 
702
750
 
703
- 26
704
- 27
705
- 28</pre>
751
+ 44
752
+ 45
753
+ 46</pre>
706
754
  </td>
707
755
  <td>
708
- <pre class="code"><span class="info file"># File 'lib/triglav/agent/storage_file.rb', line 26</span>
756
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/storage_file.rb', line 44</span>
709
757
 
710
758
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
711
759
  <span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_fp'>fp</span><span class='op'>|</span> <span class='id identifier rubyid_fp'>fp</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span> <span class='rbrace'>}</span>
@@ -713,6 +761,118 @@
713
761
  </td>
714
762
  </tr>
715
763
  </table>
764
+ </div>
765
+
766
+ <div class="method_details ">
767
+ <h3 class="signature " id="merge!-class_method">
768
+
769
+ .<strong>merge!</strong>(path, key, val) &#x21d2; <tt>Object</tt>
770
+
771
+
772
+
773
+
774
+
775
+ </h3><div class="docstring">
776
+ <div class="discussion">
777
+
778
+ <p>Merge Hash value with existing Hash value.</p>
779
+
780
+
781
+ </div>
782
+ </div>
783
+ <div class="tags">
784
+ <p class="tag_title">Parameters:</p>
785
+ <ul class="param">
786
+
787
+ <li>
788
+
789
+ <span class='name'>path</span>
790
+
791
+
792
+ <span class='type'>(<tt>String</tt>)</span>
793
+
794
+
795
+
796
+ </li>
797
+
798
+ <li>
799
+
800
+ <span class='name'>key</span>
801
+
802
+
803
+ <span class='type'>(<tt>Object</tt>)</span>
804
+
805
+
806
+
807
+ </li>
808
+
809
+ <li>
810
+
811
+ <span class='name'>val</span>
812
+
813
+
814
+ <span class='type'>(<tt>Hash</tt>)</span>
815
+
816
+
817
+
818
+ </li>
819
+
820
+ </ul>
821
+
822
+ <p class="tag_title">Returns:</p>
823
+ <ul class="return">
824
+
825
+ <li>
826
+
827
+
828
+ <span class='type'>(<tt>Object</tt>)</span>
829
+
830
+
831
+
832
+ &mdash;
833
+ <div class='inline'>
834
+ <p>holded value</p>
835
+ </div>
836
+
837
+ </li>
838
+
839
+ </ul>
840
+
841
+ </div><table class="source_code">
842
+ <tr>
843
+ <td>
844
+ <pre class="lines">
845
+
846
+
847
+ 112
848
+ 113
849
+ 114
850
+ 115
851
+ 116
852
+ 117
853
+ 118
854
+ 119
855
+ 120
856
+ 121
857
+ 122</pre>
858
+ </td>
859
+ <td>
860
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/storage_file.rb', line 112</span>
861
+
862
+ <span class='kw'>def</span> <span class='kw'>self</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='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span>
863
+ <span class='id identifier rubyid_keys'>keys</span> <span class='op'>=</span> <span class='const'>Array</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
864
+ <span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_fp'>fp</span><span class='op'>|</span>
865
+ <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='id identifier rubyid_fp'>fp</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span>
866
+ <span class='id identifier rubyid__val'>_val</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_dig'>dig</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_keys'>keys</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
867
+ <span class='id identifier rubyid__val'>_val</span><span class='period'>.</span><span class='id identifier rubyid_merge!'>merge!</span><span class='lparen'>(</span><span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span>
868
+ <span class='const'>HashUtil</span><span class='period'>.</span><span class='id identifier rubyid_setdig'>setdig</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='comma'>,</span> <span class='id identifier rubyid_keys'>keys</span><span class='comma'>,</span> <span class='id identifier rubyid__val'>_val</span><span class='rparen'>)</span>
869
+ <span class='id identifier rubyid_fp'>fp</span><span class='period'>.</span><span class='id identifier rubyid_dump'>dump</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
870
+ <span class='kw'>return</span> <span class='kw'>true</span>
871
+ <span class='kw'>end</span>
872
+ <span class='kw'>end</span></pre>
873
+ </td>
874
+ </tr>
875
+ </table>
716
876
  </div>
717
877
 
718
878
  <div class="method_details ">
@@ -774,29 +934,111 @@
774
934
  <pre class="lines">
775
935
 
776
936
 
777
- 40
778
- 41
779
- 42
780
- 43
781
- 44
782
- 45
783
- 46
784
- 47
785
- 48
786
- 49
787
- 50
788
- 51
789
- 52</pre>
937
+ 58
938
+ 59
939
+ 60
940
+ 61
941
+ 62
942
+ 63
943
+ 64
944
+ 65
945
+ 66
946
+ 67
947
+ 68</pre>
790
948
  </td>
791
949
  <td>
792
- <pre class="code"><span class="info file"># File 'lib/triglav/agent/storage_file.rb', line 40</span>
950
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/storage_file.rb', line 58</span>
793
951
 
794
952
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
795
- <span class='id identifier rubyid_fp'>fp</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='lparen'>(</span><span class='const'>File</span><span class='op'>::</span><span class='const'>RDONLY</span> <span class='op'>|</span> <span class='const'>File</span><span class='op'>::</span><span class='const'>CREAT</span><span class='rparen'>)</span><span class='rparen'>)</span>
796
- <span class='kw'>until</span> <span class='id identifier rubyid_fp'>fp</span><span class='period'>.</span><span class='id identifier rubyid_flock'>flock</span><span class='lparen'>(</span><span class='const'>File</span><span class='op'>::</span><span class='const'>LOCK_EX</span> <span class='op'>|</span> <span class='const'>File</span><span class='op'>::</span><span class='const'>LOCK_NB</span><span class='rparen'>)</span>
797
- <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'>&quot;</span><span class='tstring_content'>Somebody else is locking the storage file </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_path'>path</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span> <span class='rbrace'>}</span>
798
- <span class='id identifier rubyid_sleep'>sleep</span> <span class='float'>0.5</span>
953
+ <span class='comment'># Use RDONLY instead of WRONLY not to TRUNCate contents
954
+ </span> <span class='id identifier rubyid_fp'>fp</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='lparen'>(</span><span class='const'>File</span><span class='op'>::</span><span class='const'>RDONLY</span> <span class='op'>|</span> <span class='const'>File</span><span class='op'>::</span><span class='const'>CREAT</span><span class='rparen'>)</span><span class='rparen'>)</span>
955
+ <span class='id identifier rubyid_fp'>fp</span><span class='period'>.</span><span class='id identifier rubyid_flock'>flock</span><span class='lparen'>(</span><span class='const'>File</span><span class='op'>::</span><span class='const'>LOCK_EX</span><span class='rparen'>)</span>
956
+ <span class='kw'>begin</span>
957
+ <span class='kw'>return</span> <span class='kw'>yield</span><span class='lparen'>(</span><span class='const'>StorageFile</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_fp'>fp</span><span class='rparen'>)</span><span class='rparen'>)</span>
958
+ <span class='kw'>ensure</span>
959
+ <span class='id identifier rubyid_fp'>fp</span><span class='period'>.</span><span class='id identifier rubyid_flock'>flock</span><span class='lparen'>(</span><span class='const'>File</span><span class='op'>::</span><span class='const'>LOCK_UN</span><span class='rparen'>)</span>
960
+ <span class='id identifier rubyid_fp'>fp</span><span class='period'>.</span><span class='id identifier rubyid_close'>close</span> <span class='kw'>rescue</span> <span class='kw'>nil</span>
799
961
  <span class='kw'>end</span>
962
+ <span class='kw'>end</span></pre>
963
+ </td>
964
+ </tr>
965
+ </table>
966
+ </div>
967
+
968
+ <div class="method_details ">
969
+ <h3 class="signature " id="readopen-class_method">
970
+
971
+ .<strong>readopen</strong>(path, &amp;block) &#x21d2; <tt>Object</tt>
972
+
973
+
974
+
975
+
976
+
977
+ </h3><div class="docstring">
978
+ <div class="discussion">
979
+
980
+ <p>Open storage file to read</p>
981
+
982
+ <pre class="code ruby"><code class="ruby"><span class='const'>StorageFile</span><span class='period'>.</span><span class='id identifier rubyid_readopen'>readopen</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='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_fp'>fp</span><span class='op'>|</span>
983
+ <span class='id identifier rubyid_status'>status</span> <span class='op'>=</span> <span class='id identifier rubyid_fp'>fp</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span>
984
+ <span class='kw'>end</span>
985
+ </code></pre>
986
+
987
+
988
+ </div>
989
+ </div>
990
+ <div class="tags">
991
+ <p class="tag_title">Parameters:</p>
992
+ <ul class="param">
993
+
994
+ <li>
995
+
996
+ <span class='name'>path</span>
997
+
998
+
999
+ <span class='type'>(<tt>String</tt>)</span>
1000
+
1001
+
1002
+
1003
+ </li>
1004
+
1005
+ <li>
1006
+
1007
+ <span class='name'>block</span>
1008
+
1009
+
1010
+ <span class='type'>(<tt>Block</tt>)</span>
1011
+
1012
+
1013
+
1014
+ </li>
1015
+
1016
+ </ul>
1017
+
1018
+
1019
+ </div><table class="source_code">
1020
+ <tr>
1021
+ <td>
1022
+ <pre class="lines">
1023
+
1024
+
1025
+ 78
1026
+ 79
1027
+ 80
1028
+ 81
1029
+ 82
1030
+ 83
1031
+ 84
1032
+ 85
1033
+ 86
1034
+ 87</pre>
1035
+ </td>
1036
+ <td>
1037
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/storage_file.rb', line 78</span>
1038
+
1039
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_readopen'>readopen</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
1040
+ <span class='id identifier rubyid_fp'>fp</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='lparen'>(</span><span class='const'>File</span><span class='op'>::</span><span class='const'>RDONLY</span> <span class='op'>|</span> <span class='const'>File</span><span class='op'>::</span><span class='const'>CREAT</span><span class='rparen'>)</span><span class='rparen'>)</span>
1041
+ <span class='id identifier rubyid_fp'>fp</span><span class='period'>.</span><span class='id identifier rubyid_flock'>flock</span><span class='lparen'>(</span><span class='const'>File</span><span class='op'>::</span><span class='const'>LOCK_SH</span><span class='rparen'>)</span>
800
1042
  <span class='kw'>begin</span>
801
1043
  <span class='kw'>return</span> <span class='kw'>yield</span><span class='lparen'>(</span><span class='const'>StorageFile</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_fp'>fp</span><span class='rparen'>)</span><span class='rparen'>)</span>
802
1044
  <span class='kw'>ensure</span>
@@ -877,22 +1119,22 @@
877
1119
  <pre class="lines">
878
1120
 
879
1121
 
880
- 150
881
- 151
882
- 152
883
- 153
884
- 154
885
- 155
886
- 156
887
- 157
888
- 158
889
- 159
890
- 160
891
- 161
892
- 162</pre>
1122
+ 185
1123
+ 186
1124
+ 187
1125
+ 188
1126
+ 189
1127
+ 190
1128
+ 191
1129
+ 192
1130
+ 193
1131
+ 194
1132
+ 195
1133
+ 196
1134
+ 197</pre>
893
1135
  </td>
894
1136
  <td>
895
- <pre class="code"><span class="info file"># File 'lib/triglav/agent/storage_file.rb', line 150</span>
1137
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/storage_file.rb', line 185</span>
896
1138
 
897
1139
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_select!'>select!</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_parents'>parents</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_keys'>keys</span><span class='rparen'>)</span>
898
1140
  <span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_fp'>fp</span><span class='op'>|</span>
@@ -979,17 +1221,17 @@
979
1221
  <pre class="lines">
980
1222
 
981
1223
 
982
- 62
983
- 63
984
- 64
985
- 65
986
- 66
987
- 67
988
- 68
989
- 69</pre>
1224
+ 97
1225
+ 98
1226
+ 99
1227
+ 100
1228
+ 101
1229
+ 102
1230
+ 103
1231
+ 104</pre>
990
1232
  </td>
991
1233
  <td>
992
- <pre class="code"><span class="info file"># File 'lib/triglav/agent/storage_file.rb', line 62</span>
1234
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/storage_file.rb', line 97</span>
993
1235
 
994
1236
  <span class='kw'>def</span> <span class='kw'>self</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='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span>
995
1237
  <span class='id identifier rubyid_keys'>keys</span> <span class='op'>=</span> <span class='const'>Array</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
@@ -1089,19 +1331,19 @@
1089
1331
  <pre class="lines">
1090
1332
 
1091
1333
 
1092
- 80
1093
- 81
1094
- 82
1095
- 83
1096
- 84
1097
- 85
1098
- 86
1099
- 87
1100
- 88
1101
- 89</pre>
1334
+ 133
1335
+ 134
1336
+ 135
1337
+ 136
1338
+ 137
1339
+ 138
1340
+ 139
1341
+ 140
1342
+ 141
1343
+ 142</pre>
1102
1344
  </td>
1103
1345
  <td>
1104
- <pre class="code"><span class="info file"># File 'lib/triglav/agent/storage_file.rb', line 80</span>
1346
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/storage_file.rb', line 133</span>
1105
1347
 
1106
1348
  <span class='kw'>def</span> <span class='kw'>self</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='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_val'>val</span><span class='rparen'>)</span>
1107
1349
  <span class='id identifier rubyid_keys'>keys</span> <span class='op'>=</span> <span class='const'>Array</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
@@ -1165,12 +1407,12 @@
1165
1407
  <pre class="lines">
1166
1408
 
1167
1409
 
1168
- 141
1169
- 142
1170
- 143</pre>
1410
+ 34
1411
+ 35
1412
+ 36</pre>
1171
1413
  </td>
1172
1414
  <td>
1173
- <pre class="code"><span class="info file"># File 'lib/triglav/agent/storage_file.rb', line 141</span>
1415
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/storage_file.rb', line 34</span>
1174
1416
 
1175
1417
  <span class='kw'>def</span> <span class='id identifier rubyid_dump'>dump</span><span class='lparen'>(</span><span class='id identifier rubyid_hash'>hash</span><span class='rparen'>)</span>
1176
1418
  <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_write'>write</span><span class='lparen'>(</span><span class='ivar'>@fp</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='const'>YAML</span><span class='period'>.</span><span class='id identifier rubyid_dump'>dump</span><span class='lparen'>(</span><span class='id identifier rubyid_hash'>hash</span><span class='rparen'>)</span><span class='rparen'>)</span>
@@ -1219,16 +1461,16 @@
1219
1461
  <pre class="lines">
1220
1462
 
1221
1463
 
1222
- 130
1223
- 131
1224
- 132
1225
- 133
1226
- 134
1227
- 135
1228
- 136</pre>
1464
+ 23
1465
+ 24
1466
+ 25
1467
+ 26
1468
+ 27
1469
+ 28
1470
+ 29</pre>
1229
1471
  </td>
1230
1472
  <td>
1231
- <pre class="code"><span class="info file"># File 'lib/triglav/agent/storage_file.rb', line 130</span>
1473
+ <pre class="code"><span class="info file"># File 'lib/triglav/agent/storage_file.rb', line 23</span>
1232
1474
 
1233
1475
  <span class='kw'>def</span> <span class='id identifier rubyid_load'>load</span>
1234
1476
  <span class='kw'>if</span> <span class='op'>!</span><span class='lparen'>(</span><span class='id identifier rubyid_content'>content</span> <span class='op'>=</span> <span class='ivar'>@fp</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
@@ -1247,7 +1489,7 @@
1247
1489
  </div>
1248
1490
 
1249
1491
  <div id="footer">
1250
- Generated on Tue Mar 14 19:09:27 2017 by
1492
+ Generated on Fri Mar 24 11:36:54 2017 by
1251
1493
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1252
1494
  0.9.5 (ruby-2.3.2).
1253
1495
  </div>