gce-host 0.2.0 → 0.2.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +2 -2
- data/docs/GCE.html +1 -1
- data/docs/GCE/Host.html +2 -2
- data/docs/GCE/Host/CLI.html +1 -1
- data/docs/GCE/Host/Config.html +507 -101
- data/docs/GCE/Host/GCEClient.html +1 -1
- data/docs/GCE/Host/GCEClient/Error.html +1 -1
- data/docs/GCE/Host/GCEClient/NotFound.html +1 -1
- data/docs/GCE/Host/HashUtil.html +1 -1
- data/docs/GCE/Host/HostData.html +129 -77
- data/docs/GCE/Host/RoleData.html +1 -1
- data/docs/GCE/Host/StringUtil.html +1 -1
- data/docs/_index.html +1 -1
- data/docs/file.LICENSE.html +1 -1
- data/docs/file.README.html +8 -5
- data/docs/index.html +8 -5
- data/docs/method_list.html +81 -27
- data/docs/top-level-namespace.html +1 -1
- data/example/example.conf +1 -1
- data/lib/gce/host/config.rb +6 -5
- data/lib/gce/host/version.rb +1 -1
- metadata +1 -1
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
</div>
|
|
207
207
|
|
|
208
208
|
<div id="footer">
|
|
209
|
-
Generated on
|
|
209
|
+
Generated on Fri Nov 25 20:32:55 2016 by
|
|
210
210
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
211
211
|
0.8.7.6 (ruby-2.3.2).
|
|
212
212
|
</div>
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
</div>
|
|
119
119
|
|
|
120
120
|
<div id="footer">
|
|
121
|
-
Generated on
|
|
121
|
+
Generated on Fri Nov 25 20:32:55 2016 by
|
|
122
122
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
123
123
|
0.8.7.6 (ruby-2.3.2).
|
|
124
124
|
</div>
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
</div>
|
|
123
123
|
|
|
124
124
|
<div id="footer">
|
|
125
|
-
Generated on
|
|
125
|
+
Generated on Fri Nov 25 20:32:55 2016 by
|
|
126
126
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
127
127
|
0.8.7.6 (ruby-2.3.2).
|
|
128
128
|
</div>
|
data/docs/GCE/Host/HashUtil.html
CHANGED
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
</div>
|
|
170
170
|
|
|
171
171
|
<div id="footer">
|
|
172
|
-
Generated on
|
|
172
|
+
Generated on Fri Nov 25 20:32:55 2016 by
|
|
173
173
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
174
174
|
0.8.7.6 (ruby-2.3.2).
|
|
175
175
|
</div>
|
data/docs/GCE/Host/HostData.html
CHANGED
|
@@ -317,6 +317,28 @@ web:app1,db:app1 :instance, # Aws::GCE::Types::Instance itself.</p>
|
|
|
317
317
|
<p>compatibility with dino-host.</p>
|
|
318
318
|
</div></span>
|
|
319
319
|
|
|
320
|
+
</li>
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
<li class="public ">
|
|
324
|
+
<span class="summary_signature">
|
|
325
|
+
|
|
326
|
+
<a href="#machine_type-instance_method" title="#machine_type (instance method)">- (Object) <strong>machine_type</strong> </a>
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
</span>
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
341
|
+
|
|
320
342
|
</li>
|
|
321
343
|
|
|
322
344
|
|
|
@@ -776,12 +798,12 @@ web:app1,db:app1 :instance, # Aws::GCE::Types::Instance itself</p>
|
|
|
776
798
|
<pre class="lines">
|
|
777
799
|
|
|
778
800
|
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
801
|
+
74
|
|
802
|
+
75
|
|
803
|
+
76</pre>
|
|
782
804
|
</td>
|
|
783
805
|
<td>
|
|
784
|
-
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line
|
|
806
|
+
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line 74</span>
|
|
785
807
|
|
|
786
808
|
<span class='kw'>def</span> <span class='id identifier rubyid_creation_timestamp'>creation_timestamp</span>
|
|
787
809
|
<span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_creation_timestamp'>creation_timestamp</span>
|
|
@@ -836,20 +858,20 @@ web:app1,db:app1 :instance, # Aws::GCE::Types::Instance itself</p>
|
|
|
836
858
|
<pre class="lines">
|
|
837
859
|
|
|
838
860
|
|
|
839
|
-
143
|
|
840
|
-
144
|
|
841
|
-
145
|
|
842
|
-
146
|
|
843
861
|
147
|
|
844
862
|
148
|
|
845
863
|
149
|
|
846
864
|
150
|
|
847
865
|
151
|
|
848
866
|
152
|
|
849
|
-
153
|
|
867
|
+
153
|
|
868
|
+
154
|
|
869
|
+
155
|
|
870
|
+
156
|
|
871
|
+
157</pre>
|
|
850
872
|
</td>
|
|
851
873
|
<td>
|
|
852
|
-
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line
|
|
874
|
+
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line 147</span>
|
|
853
875
|
|
|
854
876
|
<span class='kw'>def</span> <span class='id identifier rubyid_info'>info</span>
|
|
855
877
|
<span class='kw'>if</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_display_short_info?'>display_short_info?</span>
|
|
@@ -882,12 +904,12 @@ web:app1,db:app1 :instance, # Aws::GCE::Types::Instance itself</p>
|
|
|
882
904
|
<pre class="lines">
|
|
883
905
|
|
|
884
906
|
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
907
|
+
159
|
|
908
|
+
160
|
|
909
|
+
161</pre>
|
|
888
910
|
</td>
|
|
889
911
|
<td>
|
|
890
|
-
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line
|
|
912
|
+
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line 159</span>
|
|
891
913
|
|
|
892
914
|
<span class='kw'>def</span> <span class='id identifier rubyid_inspect'>inspect</span>
|
|
893
915
|
<span class='id identifier rubyid_sprintf'>sprintf</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>#<GCE::Host::HostData %s></span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_info'>info</span>
|
|
@@ -953,12 +975,12 @@ web:app1,db:app1 :instance, # Aws::GCE::Types::Instance itself</p>
|
|
|
953
975
|
<pre class="lines">
|
|
954
976
|
|
|
955
977
|
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
978
|
+
79
|
|
979
|
+
80
|
|
980
|
+
81</pre>
|
|
959
981
|
</td>
|
|
960
982
|
<td>
|
|
961
|
-
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line
|
|
983
|
+
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line 79</span>
|
|
962
984
|
|
|
963
985
|
<span class='kw'>def</span> <span class='id identifier rubyid_ip'>ip</span>
|
|
964
986
|
<span class='id identifier rubyid_private_ip_address'>private_ip_address</span>
|
|
@@ -966,6 +988,36 @@ web:app1,db:app1 :instance, # Aws::GCE::Types::Instance itself</p>
|
|
|
966
988
|
</td>
|
|
967
989
|
</tr>
|
|
968
990
|
</table>
|
|
991
|
+
</div>
|
|
992
|
+
|
|
993
|
+
<div class="method_details ">
|
|
994
|
+
<h3 class="signature " id="machine_type-instance_method">
|
|
995
|
+
|
|
996
|
+
- (<tt>Object</tt>) <strong>machine_type</strong>
|
|
997
|
+
|
|
998
|
+
|
|
999
|
+
|
|
1000
|
+
|
|
1001
|
+
|
|
1002
|
+
</h3><table class="source_code">
|
|
1003
|
+
<tr>
|
|
1004
|
+
<td>
|
|
1005
|
+
<pre class="lines">
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
54
|
|
1009
|
+
55
|
|
1010
|
+
56</pre>
|
|
1011
|
+
</td>
|
|
1012
|
+
<td>
|
|
1013
|
+
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line 54</span>
|
|
1014
|
+
|
|
1015
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_machine_type'>machine_type</span>
|
|
1016
|
+
<span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_machine_type'>machine_type</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span>
|
|
1017
|
+
<span class='kw'>end</span></pre>
|
|
1018
|
+
</td>
|
|
1019
|
+
</tr>
|
|
1020
|
+
</table>
|
|
969
1021
|
</div>
|
|
970
1022
|
|
|
971
1023
|
<div class="method_details ">
|
|
@@ -1027,16 +1079,16 @@ web:app1,db:app1 :instance, # Aws::GCE::Types::Instance itself</p>
|
|
|
1027
1079
|
<pre class="lines">
|
|
1028
1080
|
|
|
1029
1081
|
|
|
1030
|
-
112
|
|
1031
|
-
113
|
|
1032
|
-
114
|
|
1033
|
-
115
|
|
1034
1082
|
116
|
|
1035
1083
|
117
|
|
1036
|
-
118
|
|
1084
|
+
118
|
|
1085
|
+
119
|
|
1086
|
+
120
|
|
1087
|
+
121
|
|
1088
|
+
122</pre>
|
|
1037
1089
|
</td>
|
|
1038
1090
|
<td>
|
|
1039
|
-
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line
|
|
1091
|
+
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line 116</span>
|
|
1040
1092
|
|
|
1041
1093
|
<span class='kw'>def</span> <span class='id identifier rubyid_match?'>match?</span><span class='lparen'>(</span><span class='id identifier rubyid_condition'>condition</span><span class='rparen'>)</span>
|
|
1042
1094
|
<span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_condition'>condition</span><span class='lbracket'>[</span><span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_status'>status</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rbracket'>]</span> <span class='kw'>and</span> <span class='lparen'>(</span><span class='id identifier rubyid_terminated?'>terminated?</span> <span class='kw'>or</span> <span class='id identifier rubyid_stopping?'>stopping?</span><span class='rparen'>)</span>
|
|
@@ -1065,12 +1117,12 @@ web:app1,db:app1 :instance, # Aws::GCE::Types::Instance itself</p>
|
|
|
1065
1117
|
<pre class="lines">
|
|
1066
1118
|
|
|
1067
1119
|
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1120
|
+
58
|
|
1121
|
+
59
|
|
1122
|
+
60</pre>
|
|
1071
1123
|
</td>
|
|
1072
1124
|
<td>
|
|
1073
|
-
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line
|
|
1125
|
+
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line 58</span>
|
|
1074
1126
|
|
|
1075
1127
|
<span class='kw'>def</span> <span class='id identifier rubyid_private_ip_address'>private_ip_address</span>
|
|
1076
1128
|
<span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_network_interfaces'>network_interfaces</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='period'>.</span><span class='id identifier rubyid_network_ip'>network_ip</span>
|
|
@@ -1095,12 +1147,12 @@ web:app1,db:app1 :instance, # Aws::GCE::Types::Instance itself</p>
|
|
|
1095
1147
|
<pre class="lines">
|
|
1096
1148
|
|
|
1097
1149
|
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1150
|
+
62
|
|
1151
|
+
63
|
|
1152
|
+
64</pre>
|
|
1101
1153
|
</td>
|
|
1102
1154
|
<td>
|
|
1103
|
-
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line
|
|
1155
|
+
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line 62</span>
|
|
1104
1156
|
|
|
1105
1157
|
<span class='kw'>def</span> <span class='id identifier rubyid_private_ip_addresses'>private_ip_addresses</span>
|
|
1106
1158
|
<span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_network_interfaces'>network_interfaces</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:network_ip</span><span class='rparen'>)</span>
|
|
@@ -1147,12 +1199,12 @@ web:app1,db:app1 :instance, # Aws::GCE::Types::Instance itself</p>
|
|
|
1147
1199
|
<pre class="lines">
|
|
1148
1200
|
|
|
1149
1201
|
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1202
|
+
109
|
|
1203
|
+
110
|
|
1204
|
+
111</pre>
|
|
1153
1205
|
</td>
|
|
1154
1206
|
<td>
|
|
1155
|
-
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line
|
|
1207
|
+
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line 109</span>
|
|
1156
1208
|
|
|
1157
1209
|
<span class='kw'>def</span> <span class='id identifier rubyid_provisioning?'>provisioning?</span>
|
|
1158
1210
|
<span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_status'>status</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>PROVISIONING</span><span class='tstring_end'>"</span></span>
|
|
@@ -1177,12 +1229,12 @@ web:app1,db:app1 :instance, # Aws::GCE::Types::Instance itself</p>
|
|
|
1177
1229
|
<pre class="lines">
|
|
1178
1230
|
|
|
1179
1231
|
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1232
|
+
66
|
|
1233
|
+
67
|
|
1234
|
+
68</pre>
|
|
1183
1235
|
</td>
|
|
1184
1236
|
<td>
|
|
1185
|
-
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line
|
|
1237
|
+
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line 66</span>
|
|
1186
1238
|
|
|
1187
1239
|
<span class='kw'>def</span> <span class='id identifier rubyid_public_ip_address'>public_ip_address</span>
|
|
1188
1240
|
<span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_network_interfaces'>network_interfaces</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='period'>.</span><span class='id identifier rubyid_access_configs'>access_configs</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span><span class='period'>.</span><span class='id identifier rubyid_nat_ip'>nat_ip</span>
|
|
@@ -1207,12 +1259,12 @@ web:app1,db:app1 :instance, # Aws::GCE::Types::Instance itself</p>
|
|
|
1207
1259
|
<pre class="lines">
|
|
1208
1260
|
|
|
1209
1261
|
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1262
|
+
70
|
|
1263
|
+
71
|
|
1264
|
+
72</pre>
|
|
1213
1265
|
</td>
|
|
1214
1266
|
<td>
|
|
1215
|
-
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line
|
|
1267
|
+
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line 70</span>
|
|
1216
1268
|
|
|
1217
1269
|
<span class='kw'>def</span> <span class='id identifier rubyid_public_ip_addresses'>public_ip_addresses</span>
|
|
1218
1270
|
<span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_network_interfaces'>network_interfaces</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_i'>i</span><span class='op'>|</span> <span class='id identifier rubyid_i'>i</span><span class='period'>.</span><span class='id identifier rubyid_access_configs'>access_configs</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:nat_ip</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_flatten'>flatten</span><span class='lparen'>(</span><span class='int'>1</span><span class='rparen'>)</span>
|
|
@@ -1293,12 +1345,12 @@ web:app1,db:app1 :instance, # Aws::GCE::Types::Instance itself</p>
|
|
|
1293
1345
|
<pre class="lines">
|
|
1294
1346
|
|
|
1295
1347
|
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1348
|
+
101
|
|
1349
|
+
102
|
|
1350
|
+
103</pre>
|
|
1299
1351
|
</td>
|
|
1300
1352
|
<td>
|
|
1301
|
-
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line
|
|
1353
|
+
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line 101</span>
|
|
1302
1354
|
|
|
1303
1355
|
<span class='kw'>def</span> <span class='id identifier rubyid_running?'>running?</span>
|
|
1304
1356
|
<span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_status'>status</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>RUNNING</span><span class='tstring_end'>"</span></span>
|
|
@@ -1345,12 +1397,12 @@ web:app1,db:app1 :instance, # Aws::GCE::Types::Instance itself</p>
|
|
|
1345
1397
|
<pre class="lines">
|
|
1346
1398
|
|
|
1347
1399
|
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1400
|
+
105
|
|
1401
|
+
106
|
|
1402
|
+
107</pre>
|
|
1351
1403
|
</td>
|
|
1352
1404
|
<td>
|
|
1353
|
-
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line
|
|
1405
|
+
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line 105</span>
|
|
1354
1406
|
|
|
1355
1407
|
<span class='kw'>def</span> <span class='id identifier rubyid_staging?'>staging?</span>
|
|
1356
1408
|
<span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_status'>status</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>STAGING</span><span class='tstring_end'>"</span></span>
|
|
@@ -1386,12 +1438,12 @@ web:app1,db:app1 :instance, # Aws::GCE::Types::Instance itself</p>
|
|
|
1386
1438
|
<pre class="lines">
|
|
1387
1439
|
|
|
1388
1440
|
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1441
|
+
84
|
|
1442
|
+
85
|
|
1443
|
+
86</pre>
|
|
1392
1444
|
</td>
|
|
1393
1445
|
<td>
|
|
1394
|
-
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line
|
|
1446
|
+
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line 84</span>
|
|
1395
1447
|
|
|
1396
1448
|
<span class='kw'>def</span> <span class='id identifier rubyid_start_date'>start_date</span>
|
|
1397
1449
|
<span class='id identifier rubyid_creation_timestamp'>creation_timestamp</span>
|
|
@@ -1438,12 +1490,12 @@ web:app1,db:app1 :instance, # Aws::GCE::Types::Instance itself</p>
|
|
|
1438
1490
|
<pre class="lines">
|
|
1439
1491
|
|
|
1440
1492
|
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1493
|
+
97
|
|
1494
|
+
98
|
|
1495
|
+
99</pre>
|
|
1444
1496
|
</td>
|
|
1445
1497
|
<td>
|
|
1446
|
-
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line
|
|
1498
|
+
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line 97</span>
|
|
1447
1499
|
|
|
1448
1500
|
<span class='kw'>def</span> <span class='id identifier rubyid_stopping?'>stopping?</span>
|
|
1449
1501
|
<span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_status'>status</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>STOPPING</span><span class='tstring_end'>"</span></span>
|
|
@@ -1490,12 +1542,12 @@ web:app1,db:app1 :instance, # Aws::GCE::Types::Instance itself</p>
|
|
|
1490
1542
|
<pre class="lines">
|
|
1491
1543
|
|
|
1492
1544
|
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1545
|
+
93
|
|
1546
|
+
94
|
|
1547
|
+
95</pre>
|
|
1496
1548
|
</td>
|
|
1497
1549
|
<td>
|
|
1498
|
-
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line
|
|
1550
|
+
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line 93</span>
|
|
1499
1551
|
|
|
1500
1552
|
<span class='kw'>def</span> <span class='id identifier rubyid_terminated?'>terminated?</span>
|
|
1501
1553
|
<span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_status'>status</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>TERMINATED</span><span class='tstring_end'>"</span></span>
|
|
@@ -1520,10 +1572,6 @@ web:app1,db:app1 :instance, # Aws::GCE::Types::Instance itself</p>
|
|
|
1520
1572
|
<pre class="lines">
|
|
1521
1573
|
|
|
1522
1574
|
|
|
1523
|
-
120
|
|
1524
|
-
121
|
|
1525
|
-
122
|
|
1526
|
-
123
|
|
1527
1575
|
124
|
|
1528
1576
|
125
|
|
1529
1577
|
126
|
|
@@ -1541,16 +1589,19 @@ web:app1,db:app1 :instance, # Aws::GCE::Types::Instance itself</p>
|
|
|
1541
1589
|
138
|
|
1542
1590
|
139
|
|
1543
1591
|
140
|
|
1544
|
-
141
|
|
1592
|
+
141
|
|
1593
|
+
142
|
|
1594
|
+
143
|
|
1595
|
+
144
|
|
1596
|
+
145</pre>
|
|
1545
1597
|
</td>
|
|
1546
1598
|
<td>
|
|
1547
|
-
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line
|
|
1599
|
+
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line 124</span>
|
|
1548
1600
|
|
|
1549
1601
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_hash'>to_hash</span>
|
|
1550
1602
|
<span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
|
1551
1603
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>hostname</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_hostname'>hostname</span><span class='comma'>,</span>
|
|
1552
1604
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>roles</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_roles'>roles</span><span class='comma'>,</span>
|
|
1553
|
-
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>zone</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_zone'>zone</span><span class='comma'>,</span>
|
|
1554
1605
|
<span class='rbrace'>}</span>
|
|
1555
1606
|
<span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_optional_string_keys'>optional_string_keys</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='op'>|</span>
|
|
1556
1607
|
<span class='id identifier rubyid_field'>field</span> <span class='op'>=</span> <span class='const'>StringUtil</span><span class='period'>.</span><span class='id identifier rubyid_underscore'>underscore</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
|
|
@@ -1561,7 +1612,8 @@ web:app1,db:app1 :instance, # Aws::GCE::Types::Instance itself</p>
|
|
|
1561
1612
|
<span class='id identifier rubyid_params'>params</span><span class='lbracket'>[</span><span class='id identifier rubyid_field'>field</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='id identifier rubyid_field'>field</span><span class='rparen'>)</span>
|
|
1562
1613
|
<span class='kw'>end</span>
|
|
1563
1614
|
<span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_merge!'>merge!</span><span class='lparen'>(</span>
|
|
1564
|
-
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>
|
|
1615
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>zone</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_zone'>zone</span><span class='comma'>,</span>
|
|
1616
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>machine_type</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_machine_type'>machine_type</span><span class='comma'>,</span>
|
|
1565
1617
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>private_ip_address</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_private_ip_address'>private_ip_address</span><span class='comma'>,</span>
|
|
1566
1618
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>public_ip_address</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_public_ip_address'>public_ip_address</span><span class='comma'>,</span>
|
|
1567
1619
|
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>creation_timestamp</span><span class='tstring_end'>"</span></span> <span class='op'>=></span> <span class='id identifier rubyid_creation_timestamp'>creation_timestamp</span><span class='comma'>,</span>
|
|
@@ -1599,12 +1651,12 @@ web:app1,db:app1 :instance, # Aws::GCE::Types::Instance itself</p>
|
|
|
1599
1651
|
<pre class="lines">
|
|
1600
1652
|
|
|
1601
1653
|
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1654
|
+
89
|
|
1655
|
+
90
|
|
1656
|
+
91</pre>
|
|
1605
1657
|
</td>
|
|
1606
1658
|
<td>
|
|
1607
|
-
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line
|
|
1659
|
+
<pre class="code"><span class="info file"># File 'lib/gce/host/host_data.rb', line 89</span>
|
|
1608
1660
|
|
|
1609
1661
|
<span class='kw'>def</span> <span class='id identifier rubyid_usages'>usages</span>
|
|
1610
1662
|
<span class='id identifier rubyid_roles'>roles</span>
|
|
@@ -1649,7 +1701,7 @@ web:app1,db:app1 :instance, # Aws::GCE::Types::Instance itself</p>
|
|
|
1649
1701
|
</div>
|
|
1650
1702
|
|
|
1651
1703
|
<div id="footer">
|
|
1652
|
-
Generated on
|
|
1704
|
+
Generated on Fri Nov 25 20:32:55 2016 by
|
|
1653
1705
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1654
1706
|
0.8.7.6 (ruby-2.3.2).
|
|
1655
1707
|
</div>
|
data/docs/GCE/Host/RoleData.html
CHANGED
|
@@ -923,7 +923,7 @@
|
|
|
923
923
|
</div>
|
|
924
924
|
|
|
925
925
|
<div id="footer">
|
|
926
|
-
Generated on
|
|
926
|
+
Generated on Fri Nov 25 20:32:55 2016 by
|
|
927
927
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
928
928
|
0.8.7.6 (ruby-2.3.2).
|
|
929
929
|
</div>
|
|
@@ -350,7 +350,7 @@
|
|
|
350
350
|
</div>
|
|
351
351
|
|
|
352
352
|
<div id="footer">
|
|
353
|
-
Generated on
|
|
353
|
+
Generated on Fri Nov 25 20:32:55 2016 by
|
|
354
354
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
355
355
|
0.8.7.6 (ruby-2.3.2).
|
|
356
356
|
</div>
|