ec2-host 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1772 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: EC2::Host::HostData
8
+
9
+ &mdash; Documentation by YARD 0.8.7.6
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
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '../../';
20
+ framesUrl = "../../frames.html#!EC2/Host/HostData.html";
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="../../_index.html">Index (H)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../../EC2.html" title="EC2 (class)">EC2</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Host.html" title="EC2::Host (class)">Host</a></span></span>
36
+ &raquo;
37
+ <span class="title">HostData</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="../../class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="../../method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="../../file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Class: EC2::Host::HostData
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+ <dt class="r1">Inherits:</dt>
75
+ <dd class="r1">
76
+ <span class="inheritName">Object</span>
77
+
78
+ <ul class="fullTree">
79
+ <li>Object</li>
80
+
81
+ <li class="next">EC2::Host::HostData</li>
82
+
83
+ </ul>
84
+ <a href="#" class="inheritanceTree">show all</a>
85
+
86
+ </dd>
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+ <dt class="r2 last">Defined in:</dt>
97
+ <dd class="r2 last">lib/ec2/host/host_data.rb</dd>
98
+
99
+ </dl>
100
+ <div class="clear"></div>
101
+
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
+
105
+ <p>Represents each host</p>
106
+
107
+
108
+ </div>
109
+ </div>
110
+ <div class="tags">
111
+
112
+
113
+ </div>
114
+
115
+
116
+
117
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
118
+ <ul class="summary">
119
+
120
+ <li class="public ">
121
+ <span class="summary_signature">
122
+
123
+ <a href="#instance-instance_method" title="#instance (instance method)">- (Object) <strong>instance</strong> </a>
124
+
125
+
126
+
127
+ </span>
128
+
129
+
130
+
131
+
132
+ <span class="note title readonly">readonly</span>
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+ <span class="summary_desc"><div class='inline'>
143
+ <p>Returns the value of attribute instance.</p>
144
+ </div></span>
145
+
146
+ </li>
147
+
148
+
149
+ </ul>
150
+
151
+
152
+
153
+
154
+
155
+ <h2>
156
+ Instance Method Summary
157
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
158
+ </h2>
159
+
160
+ <ul class="summary">
161
+
162
+ <li class="public ">
163
+ <span class="summary_signature">
164
+
165
+ <a href="#hostname-instance_method" title="#hostname (instance method)">- (Object) <strong>hostname</strong> </a>
166
+
167
+
168
+
169
+ </span>
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+ <span class="summary_desc"><div class='inline'></div></span>
180
+
181
+ </li>
182
+
183
+
184
+ <li class="public ">
185
+ <span class="summary_signature">
186
+
187
+ <a href="#info-instance_method" title="#info (instance method)">- (Object) <strong>info</strong> </a>
188
+
189
+
190
+
191
+ </span>
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+ <span class="summary_desc"><div class='inline'></div></span>
202
+
203
+ </li>
204
+
205
+
206
+ <li class="public ">
207
+ <span class="summary_signature">
208
+
209
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (HostData) <strong>initialize</strong>(instance) </a>
210
+
211
+
212
+
213
+ </span>
214
+
215
+
216
+ <span class="note title constructor">constructor</span>
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+ <span class="summary_desc"><div class='inline'>
226
+ <p>:hostname, # tag:Name or hostname part of private_dns_name :roles, #
227
+ tag:Roles.split(&#39;,&#39;) such as web:app1,db:app1 :region, # <a
228
+ href="'AWS_REGION'">ENV</a>, :instance, # Aws::EC2::Types::Instance itself.</p>
229
+ </div></span>
230
+
231
+ </li>
232
+
233
+
234
+ <li class="public ">
235
+ <span class="summary_signature">
236
+
237
+ <a href="#inspect-instance_method" title="#inspect (instance method)">- (Object) <strong>inspect</strong> </a>
238
+
239
+
240
+
241
+ </span>
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+ <span class="summary_desc"><div class='inline'></div></span>
252
+
253
+ </li>
254
+
255
+
256
+ <li class="public ">
257
+ <span class="summary_signature">
258
+
259
+ <a href="#instance_id-instance_method" title="#instance_id (instance method)">- (Object) <strong>instance_id</strong> </a>
260
+
261
+
262
+
263
+ </span>
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+ <span class="summary_desc"><div class='inline'></div></span>
274
+
275
+ </li>
276
+
277
+
278
+ <li class="public ">
279
+ <span class="summary_signature">
280
+
281
+ <a href="#instance_type-instance_method" title="#instance_type (instance method)">- (Object) <strong>instance_type</strong> </a>
282
+
283
+
284
+
285
+ </span>
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+ <span class="summary_desc"><div class='inline'></div></span>
296
+
297
+ </li>
298
+
299
+
300
+ <li class="public ">
301
+ <span class="summary_signature">
302
+
303
+ <a href="#ip-instance_method" title="#ip (instance method)">- (Object) <strong>ip</strong> </a>
304
+
305
+
306
+
307
+ </span>
308
+
309
+
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+ <span class="summary_desc"><div class='inline'>
318
+ <p>compatibility with dino-host.</p>
319
+ </div></span>
320
+
321
+ </li>
322
+
323
+
324
+ <li class="public ">
325
+ <span class="summary_signature">
326
+
327
+ <a href="#launch_time-instance_method" title="#launch_time (instance method)">- (Object) <strong>launch_time</strong> </a>
328
+
329
+
330
+
331
+ </span>
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+ <span class="summary_desc"><div class='inline'></div></span>
342
+
343
+ </li>
344
+
345
+
346
+ <li class="public ">
347
+ <span class="summary_signature">
348
+
349
+ <a href="#match%3F-instance_method" title="#match? (instance method)">- (Boolean) <strong>match?</strong>(condition) </a>
350
+
351
+
352
+
353
+ </span>
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+ <span class="summary_desc"><div class='inline'>
364
+ <p>match with condition or not.</p>
365
+ </div></span>
366
+
367
+ </li>
368
+
369
+
370
+ <li class="public ">
371
+ <span class="summary_signature">
372
+
373
+ <a href="#monitoring-instance_method" title="#monitoring (instance method)">- (Object) <strong>monitoring</strong> </a>
374
+
375
+
376
+
377
+ </span>
378
+
379
+
380
+
381
+
382
+
383
+
384
+
385
+
386
+
387
+ <span class="summary_desc"><div class='inline'></div></span>
388
+
389
+ </li>
390
+
391
+
392
+ <li class="public ">
393
+ <span class="summary_signature">
394
+
395
+ <a href="#pending%3F-instance_method" title="#pending? (instance method)">- (Boolean) <strong>pending?</strong> </a>
396
+
397
+
398
+
399
+ </span>
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+
408
+
409
+ <span class="summary_desc"><div class='inline'></div></span>
410
+
411
+ </li>
412
+
413
+
414
+ <li class="public ">
415
+ <span class="summary_signature">
416
+
417
+ <a href="#private_ip_address-instance_method" title="#private_ip_address (instance method)">- (Object) <strong>private_ip_address</strong> </a>
418
+
419
+
420
+
421
+ </span>
422
+
423
+
424
+
425
+
426
+
427
+
428
+
429
+
430
+
431
+ <span class="summary_desc"><div class='inline'></div></span>
432
+
433
+ </li>
434
+
435
+
436
+ <li class="public ">
437
+ <span class="summary_signature">
438
+
439
+ <a href="#public_ip_address-instance_method" title="#public_ip_address (instance method)">- (Object) <strong>public_ip_address</strong> </a>
440
+
441
+
442
+
443
+ </span>
444
+
445
+
446
+
447
+
448
+
449
+
450
+
451
+
452
+
453
+ <span class="summary_desc"><div class='inline'></div></span>
454
+
455
+ </li>
456
+
457
+
458
+ <li class="public ">
459
+ <span class="summary_signature">
460
+
461
+ <a href="#region-instance_method" title="#region (instance method)">- (Object) <strong>region</strong> </a>
462
+
463
+
464
+
465
+ </span>
466
+
467
+
468
+
469
+
470
+
471
+
472
+
473
+
474
+
475
+ <span class="summary_desc"><div class='inline'></div></span>
476
+
477
+ </li>
478
+
479
+
480
+ <li class="public ">
481
+ <span class="summary_signature">
482
+
483
+ <a href="#roles-instance_method" title="#roles (instance method)">- (Object) <strong>roles</strong> </a>
484
+
485
+
486
+
487
+ </span>
488
+
489
+
490
+
491
+
492
+
493
+
494
+
495
+
496
+
497
+ <span class="summary_desc"><div class='inline'></div></span>
498
+
499
+ </li>
500
+
501
+
502
+ <li class="public ">
503
+ <span class="summary_signature">
504
+
505
+ <a href="#running%3F-instance_method" title="#running? (instance method)">- (Boolean) <strong>running?</strong> </a>
506
+
507
+
508
+
509
+ </span>
510
+
511
+
512
+
513
+
514
+
515
+
516
+
517
+
518
+
519
+ <span class="summary_desc"><div class='inline'></div></span>
520
+
521
+ </li>
522
+
523
+
524
+ <li class="public ">
525
+ <span class="summary_signature">
526
+
527
+ <a href="#shutting_down%3F-instance_method" title="#shutting_down? (instance method)">- (Boolean) <strong>shutting_down?</strong> </a>
528
+
529
+
530
+
531
+ </span>
532
+
533
+
534
+
535
+
536
+
537
+
538
+
539
+
540
+
541
+ <span class="summary_desc"><div class='inline'></div></span>
542
+
543
+ </li>
544
+
545
+
546
+ <li class="public ">
547
+ <span class="summary_signature">
548
+
549
+ <a href="#start_date-instance_method" title="#start_date (instance method)">- (Object) <strong>start_date</strong> </a>
550
+
551
+
552
+
553
+ </span>
554
+
555
+
556
+
557
+
558
+
559
+
560
+
561
+
562
+
563
+ <span class="summary_desc"><div class='inline'>
564
+ <p>compatibility with dino-host.</p>
565
+ </div></span>
566
+
567
+ </li>
568
+
569
+
570
+ <li class="public ">
571
+ <span class="summary_signature">
572
+
573
+ <a href="#state-instance_method" title="#state (instance method)">- (Object) <strong>state</strong> </a>
574
+
575
+
576
+
577
+ </span>
578
+
579
+
580
+
581
+
582
+
583
+
584
+
585
+
586
+
587
+ <span class="summary_desc"><div class='inline'></div></span>
588
+
589
+ </li>
590
+
591
+
592
+ <li class="public ">
593
+ <span class="summary_signature">
594
+
595
+ <a href="#stopped-instance_method" title="#stopped (instance method)">- (Object) <strong>stopped</strong> </a>
596
+
597
+
598
+
599
+ </span>
600
+
601
+
602
+
603
+
604
+
605
+
606
+
607
+
608
+
609
+ <span class="summary_desc"><div class='inline'></div></span>
610
+
611
+ </li>
612
+
613
+
614
+ <li class="public ">
615
+ <span class="summary_signature">
616
+
617
+ <a href="#stopping%3F-instance_method" title="#stopping? (instance method)">- (Boolean) <strong>stopping?</strong> </a>
618
+
619
+
620
+
621
+ </span>
622
+
623
+
624
+
625
+
626
+
627
+
628
+
629
+
630
+
631
+ <span class="summary_desc"><div class='inline'></div></span>
632
+
633
+ </li>
634
+
635
+
636
+ <li class="public ">
637
+ <span class="summary_signature">
638
+
639
+ <a href="#terminated%3F-instance_method" title="#terminated? (instance method)">- (Boolean) <strong>terminated?</strong> </a>
640
+
641
+
642
+
643
+ </span>
644
+
645
+
646
+
647
+
648
+
649
+
650
+
651
+
652
+
653
+ <span class="summary_desc"><div class='inline'></div></span>
654
+
655
+ </li>
656
+
657
+
658
+ <li class="public ">
659
+ <span class="summary_signature">
660
+
661
+ <a href="#to_hash-instance_method" title="#to_hash (instance method)">- (Object) <strong>to_hash</strong> </a>
662
+
663
+
664
+
665
+ </span>
666
+
667
+
668
+
669
+
670
+
671
+
672
+
673
+
674
+
675
+ <span class="summary_desc"><div class='inline'></div></span>
676
+
677
+ </li>
678
+
679
+
680
+ <li class="public ">
681
+ <span class="summary_signature">
682
+
683
+ <a href="#usages-instance_method" title="#usages (instance method)">- (Object) <strong>usages</strong> </a>
684
+
685
+
686
+
687
+ </span>
688
+
689
+
690
+
691
+
692
+
693
+
694
+
695
+
696
+
697
+ <span class="summary_desc"><div class='inline'>
698
+ <p>compatibility with dino-host.</p>
699
+ </div></span>
700
+
701
+ </li>
702
+
703
+
704
+ </ul>
705
+
706
+
707
+ <div id="constructor_details" class="method_details_list">
708
+ <h2>Constructor Details</h2>
709
+
710
+ <div class="method_details first">
711
+ <h3 class="signature first" id="initialize-instance_method">
712
+
713
+ - (<tt><span class='object_link'><a href="" title="EC2::Host::HostData (class)">HostData</a></span></tt>) <strong>initialize</strong>(instance)
714
+
715
+
716
+
717
+
718
+
719
+ </h3><div class="docstring">
720
+ <div class="discussion">
721
+
722
+ <p>:hostname, # tag:Name or hostname part of private_dns_name :roles, #
723
+ tag:Roles.split(&#39;,&#39;) such as web:app1,db:app1 :region, # <a
724
+ href="'AWS_REGION'">ENV</a>, :instance, # Aws::EC2::Types::Instance itself</p>
725
+
726
+ <p>and OPTIONAL_ARRAY_TAGS, OPTIONAL_STRING_TAGS</p>
727
+
728
+
729
+ </div>
730
+ </div>
731
+ <div class="tags">
732
+
733
+
734
+ </div><table class="source_code">
735
+ <tr>
736
+ <td>
737
+ <pre class="lines">
738
+
739
+
740
+ 15
741
+ 16
742
+ 17</pre>
743
+ </td>
744
+ <td>
745
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 15</span>
746
+
747
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_instance'>instance</span><span class='rparen'>)</span>
748
+ <span class='ivar'>@instance</span> <span class='op'>=</span> <span class='id identifier rubyid_instance'>instance</span>
749
+ <span class='kw'>end</span></pre>
750
+ </td>
751
+ </tr>
752
+ </table>
753
+ </div>
754
+
755
+ </div>
756
+
757
+ <div id="instance_attr_details" class="attr_details">
758
+ <h2>Instance Attribute Details</h2>
759
+
760
+
761
+ <span id=""></span>
762
+ <div class="method_details first">
763
+ <h3 class="signature first" id="instance-instance_method">
764
+
765
+ - (<tt>Object</tt>) <strong>instance</strong> <span class="extras">(readonly)</span>
766
+
767
+
768
+
769
+
770
+
771
+ </h3><div class="docstring">
772
+ <div class="discussion">
773
+
774
+ <p>Returns the value of attribute instance</p>
775
+
776
+
777
+ </div>
778
+ </div>
779
+ <div class="tags">
780
+
781
+
782
+ </div><table class="source_code">
783
+ <tr>
784
+ <td>
785
+ <pre class="lines">
786
+
787
+
788
+ 7
789
+ 8
790
+ 9</pre>
791
+ </td>
792
+ <td>
793
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 7</span>
794
+
795
+ <span class='kw'>def</span> <span class='id identifier rubyid_instance'>instance</span>
796
+ <span class='ivar'>@instance</span>
797
+ <span class='kw'>end</span></pre>
798
+ </td>
799
+ </tr>
800
+ </table>
801
+ </div>
802
+
803
+ </div>
804
+
805
+
806
+ <div id="instance_method_details" class="method_details_list">
807
+ <h2>Instance Method Details</h2>
808
+
809
+
810
+ <div class="method_details first">
811
+ <h3 class="signature first" id="hostname-instance_method">
812
+
813
+ - (<tt>Object</tt>) <strong>hostname</strong>
814
+
815
+
816
+
817
+
818
+
819
+ </h3><table class="source_code">
820
+ <tr>
821
+ <td>
822
+ <pre class="lines">
823
+
824
+
825
+ 19
826
+ 20
827
+ 21
828
+ 22
829
+ 23
830
+ 24</pre>
831
+ </td>
832
+ <td>
833
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 19</span>
834
+
835
+ <span class='kw'>def</span> <span class='id identifier rubyid_hostname'>hostname</span>
836
+ <span class='kw'>return</span> <span class='ivar'>@hostname</span> <span class='kw'>if</span> <span class='ivar'>@hostname</span>
837
+ <span class='ivar'>@hostname</span> <span class='op'>=</span> <span class='id identifier rubyid_find_string_tag'>find_string_tag</span><span class='lparen'>(</span><span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_hostname_tag'>hostname_tag</span><span class='rparen'>)</span>
838
+ <span class='ivar'>@hostname</span> <span class='op'>=</span> <span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_private_dns_name'>private_dns_name</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>.</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span> <span class='kw'>if</span> <span class='ivar'>@hostname</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
839
+ <span class='ivar'>@hostname</span>
840
+ <span class='kw'>end</span></pre>
841
+ </td>
842
+ </tr>
843
+ </table>
844
+ </div>
845
+
846
+ <div class="method_details ">
847
+ <h3 class="signature " id="info-instance_method">
848
+
849
+ - (<tt>Object</tt>) <strong>info</strong>
850
+
851
+
852
+
853
+
854
+
855
+ </h3><table class="source_code">
856
+ <tr>
857
+ <td>
858
+ <pre class="lines">
859
+
860
+
861
+ 152
862
+ 153
863
+ 154
864
+ 155
865
+ 156
866
+ 157
867
+ 158
868
+ 159
869
+ 160
870
+ 161
871
+ 162</pre>
872
+ </td>
873
+ <td>
874
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 152</span>
875
+
876
+ <span class='kw'>def</span> <span class='id identifier rubyid_info'>info</span>
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>
878
+ <span class='id identifier rubyid_info'>info</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_hostname'>hostname</span><span class='embexpr_end'>}</span><span class='tstring_content'>:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_status'>status</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
879
+ <span class='id identifier rubyid_info'>info</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>(</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_roles'>roles</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>,</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_content'>)</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_roles'>roles</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
880
+ <span class='id identifier rubyid_info'>info</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>[</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_tags'>tags</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>,</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_content'>]</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_tags'>tags</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
881
+ <span class='id identifier rubyid_info'>info</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>{</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_service'>service</span><span class='embexpr_end'>}</span><span class='tstring_content'>}</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_service'>service</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
882
+ <span class='id identifier rubyid_info'>info</span>
883
+ <span class='kw'>else</span>
884
+ <span class='id identifier rubyid_to_hash'>to_hash</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
885
+ <span class='kw'>end</span>
886
+ <span class='kw'>end</span></pre>
887
+ </td>
888
+ </tr>
889
+ </table>
890
+ </div>
891
+
892
+ <div class="method_details ">
893
+ <h3 class="signature " id="inspect-instance_method">
894
+
895
+ - (<tt>Object</tt>) <strong>inspect</strong>
896
+
897
+
898
+
899
+
900
+
901
+ </h3><table class="source_code">
902
+ <tr>
903
+ <td>
904
+ <pre class="lines">
905
+
906
+
907
+ 164
908
+ 165
909
+ 166</pre>
910
+ </td>
911
+ <td>
912
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 164</span>
913
+
914
+ <span class='kw'>def</span> <span class='id identifier rubyid_inspect'>inspect</span>
915
+ <span class='id identifier rubyid_sprintf'>sprintf</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>#&lt;Aws::Host::HostData %s&gt;</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_info'>info</span>
916
+ <span class='kw'>end</span></pre>
917
+ </td>
918
+ </tr>
919
+ </table>
920
+ </div>
921
+
922
+ <div class="method_details ">
923
+ <h3 class="signature " id="instance_id-instance_method">
924
+
925
+ - (<tt>Object</tt>) <strong>instance_id</strong>
926
+
927
+
928
+
929
+
930
+
931
+ </h3><table class="source_code">
932
+ <tr>
933
+ <td>
934
+ <pre class="lines">
935
+
936
+
937
+ 50
938
+ 51
939
+ 52</pre>
940
+ </td>
941
+ <td>
942
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 50</span>
943
+
944
+ <span class='kw'>def</span> <span class='id identifier rubyid_instance_id'>instance_id</span>
945
+ <span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_instance_id'>instance_id</span>
946
+ <span class='kw'>end</span></pre>
947
+ </td>
948
+ </tr>
949
+ </table>
950
+ </div>
951
+
952
+ <div class="method_details ">
953
+ <h3 class="signature " id="instance_type-instance_method">
954
+
955
+ - (<tt>Object</tt>) <strong>instance_type</strong>
956
+
957
+
958
+
959
+
960
+
961
+ </h3><table class="source_code">
962
+ <tr>
963
+ <td>
964
+ <pre class="lines">
965
+
966
+
967
+ 54
968
+ 55
969
+ 56</pre>
970
+ </td>
971
+ <td>
972
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 54</span>
973
+
974
+ <span class='kw'>def</span> <span class='id identifier rubyid_instance_type'>instance_type</span>
975
+ <span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_instance_type'>instance_type</span>
976
+ <span class='kw'>end</span></pre>
977
+ </td>
978
+ </tr>
979
+ </table>
980
+ </div>
981
+
982
+ <div class="method_details ">
983
+ <h3 class="signature " id="ip-instance_method">
984
+
985
+ - (<tt>Object</tt>) <strong>ip</strong>
986
+
987
+
988
+
989
+
990
+
991
+ </h3><div class="docstring">
992
+ <div class="discussion">
993
+
994
+ <p>compatibility with dino-host</p>
995
+
996
+
997
+ </div>
998
+ </div>
999
+ <div class="tags">
1000
+
1001
+
1002
+ </div><table class="source_code">
1003
+ <tr>
1004
+ <td>
1005
+ <pre class="lines">
1006
+
1007
+
1008
+ 79
1009
+ 80
1010
+ 81</pre>
1011
+ </td>
1012
+ <td>
1013
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 79</span>
1014
+
1015
+ <span class='kw'>def</span> <span class='id identifier rubyid_ip'>ip</span>
1016
+ <span class='id identifier rubyid_private_ip_address'>private_ip_address</span>
1017
+ <span class='kw'>end</span></pre>
1018
+ </td>
1019
+ </tr>
1020
+ </table>
1021
+ </div>
1022
+
1023
+ <div class="method_details ">
1024
+ <h3 class="signature " id="launch_time-instance_method">
1025
+
1026
+ - (<tt>Object</tt>) <strong>launch_time</strong>
1027
+
1028
+
1029
+
1030
+
1031
+
1032
+ </h3><table class="source_code">
1033
+ <tr>
1034
+ <td>
1035
+ <pre class="lines">
1036
+
1037
+
1038
+ 66
1039
+ 67
1040
+ 68</pre>
1041
+ </td>
1042
+ <td>
1043
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 66</span>
1044
+
1045
+ <span class='kw'>def</span> <span class='id identifier rubyid_launch_time'>launch_time</span>
1046
+ <span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_launch_time'>launch_time</span>
1047
+ <span class='kw'>end</span></pre>
1048
+ </td>
1049
+ </tr>
1050
+ </table>
1051
+ </div>
1052
+
1053
+ <div class="method_details ">
1054
+ <h3 class="signature " id="match?-instance_method">
1055
+
1056
+ - (<tt>Boolean</tt>) <strong>match?</strong>(condition)
1057
+
1058
+
1059
+
1060
+
1061
+
1062
+ </h3><div class="docstring">
1063
+ <div class="discussion">
1064
+
1065
+ <p>match with condition or not</p>
1066
+
1067
+
1068
+ </div>
1069
+ </div>
1070
+ <div class="tags">
1071
+ <p class="tag_title">Parameters:</p>
1072
+ <ul class="param">
1073
+
1074
+ <li>
1075
+
1076
+ <span class='name'>condition</span>
1077
+
1078
+
1079
+ <span class='type'>(<tt>Hash</tt>)</span>
1080
+
1081
+
1082
+
1083
+ &mdash;
1084
+ <div class='inline'>
1085
+ <p>search parameters</p>
1086
+ </div>
1087
+
1088
+ </li>
1089
+
1090
+ </ul>
1091
+
1092
+ <p class="tag_title">Returns:</p>
1093
+ <ul class="return">
1094
+
1095
+ <li>
1096
+
1097
+
1098
+ <span class='type'>(<tt>Boolean</tt>)</span>
1099
+
1100
+
1101
+
1102
+ </li>
1103
+
1104
+ </ul>
1105
+
1106
+ </div><table class="source_code">
1107
+ <tr>
1108
+ <td>
1109
+ <pre class="lines">
1110
+
1111
+
1112
+ 120
1113
+ 121
1114
+ 122
1115
+ 123
1116
+ 124
1117
+ 125</pre>
1118
+ </td>
1119
+ <td>
1120
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 120</span>
1121
+
1122
+ <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>
1123
+ <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='symbol'>:state</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_shutting_down?'>shutting_down?</span><span class='rparen'>)</span>
1124
+ <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>unless</span> <span class='id identifier rubyid_role_match?'>role_match?</span><span class='lparen'>(</span><span class='id identifier rubyid_condition'>condition</span><span class='rparen'>)</span>
1125
+ <span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>unless</span> <span class='id identifier rubyid_instance_match?'>instance_match?</span><span class='lparen'>(</span><span class='id identifier rubyid_condition'>condition</span><span class='rparen'>)</span>
1126
+ <span class='kw'>true</span>
1127
+ <span class='kw'>end</span></pre>
1128
+ </td>
1129
+ </tr>
1130
+ </table>
1131
+ </div>
1132
+
1133
+ <div class="method_details ">
1134
+ <h3 class="signature " id="monitoring-instance_method">
1135
+
1136
+ - (<tt>Object</tt>) <strong>monitoring</strong>
1137
+
1138
+
1139
+
1140
+
1141
+
1142
+ </h3><table class="source_code">
1143
+ <tr>
1144
+ <td>
1145
+ <pre class="lines">
1146
+
1147
+
1148
+ 74
1149
+ 75
1150
+ 76</pre>
1151
+ </td>
1152
+ <td>
1153
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 74</span>
1154
+
1155
+ <span class='kw'>def</span> <span class='id identifier rubyid_monitoring'>monitoring</span>
1156
+ <span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_monitoring'>monitoring</span><span class='period'>.</span><span class='id identifier rubyid_state'>state</span>
1157
+ <span class='kw'>end</span></pre>
1158
+ </td>
1159
+ </tr>
1160
+ </table>
1161
+ </div>
1162
+
1163
+ <div class="method_details ">
1164
+ <h3 class="signature " id="pending?-instance_method">
1165
+
1166
+ - (<tt>Boolean</tt>) <strong>pending?</strong>
1167
+
1168
+
1169
+
1170
+
1171
+
1172
+ </h3><div class="docstring">
1173
+ <div class="discussion">
1174
+
1175
+
1176
+ </div>
1177
+ </div>
1178
+ <div class="tags">
1179
+
1180
+ <p class="tag_title">Returns:</p>
1181
+ <ul class="return">
1182
+
1183
+ <li>
1184
+
1185
+
1186
+ <span class='type'>(<tt>Boolean</tt>)</span>
1187
+
1188
+
1189
+
1190
+ </li>
1191
+
1192
+ </ul>
1193
+
1194
+ </div><table class="source_code">
1195
+ <tr>
1196
+ <td>
1197
+ <pre class="lines">
1198
+
1199
+
1200
+ 113
1201
+ 114
1202
+ 115</pre>
1203
+ </td>
1204
+ <td>
1205
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 113</span>
1206
+
1207
+ <span class='kw'>def</span> <span class='id identifier rubyid_pending?'>pending?</span>
1208
+ <span class='id identifier rubyid_state'>state</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>pending</span><span class='tstring_end'>&quot;</span></span>
1209
+ <span class='kw'>end</span></pre>
1210
+ </td>
1211
+ </tr>
1212
+ </table>
1213
+ </div>
1214
+
1215
+ <div class="method_details ">
1216
+ <h3 class="signature " id="private_ip_address-instance_method">
1217
+
1218
+ - (<tt>Object</tt>) <strong>private_ip_address</strong>
1219
+
1220
+
1221
+
1222
+
1223
+
1224
+ </h3><table class="source_code">
1225
+ <tr>
1226
+ <td>
1227
+ <pre class="lines">
1228
+
1229
+
1230
+ 58
1231
+ 59
1232
+ 60</pre>
1233
+ </td>
1234
+ <td>
1235
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 58</span>
1236
+
1237
+ <span class='kw'>def</span> <span class='id identifier rubyid_private_ip_address'>private_ip_address</span>
1238
+ <span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_private_ip_address'>private_ip_address</span>
1239
+ <span class='kw'>end</span></pre>
1240
+ </td>
1241
+ </tr>
1242
+ </table>
1243
+ </div>
1244
+
1245
+ <div class="method_details ">
1246
+ <h3 class="signature " id="public_ip_address-instance_method">
1247
+
1248
+ - (<tt>Object</tt>) <strong>public_ip_address</strong>
1249
+
1250
+
1251
+
1252
+
1253
+
1254
+ </h3><table class="source_code">
1255
+ <tr>
1256
+ <td>
1257
+ <pre class="lines">
1258
+
1259
+
1260
+ 62
1261
+ 63
1262
+ 64</pre>
1263
+ </td>
1264
+ <td>
1265
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 62</span>
1266
+
1267
+ <span class='kw'>def</span> <span class='id identifier rubyid_public_ip_address'>public_ip_address</span>
1268
+ <span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_public_ip_address'>public_ip_address</span>
1269
+ <span class='kw'>end</span></pre>
1270
+ </td>
1271
+ </tr>
1272
+ </table>
1273
+ </div>
1274
+
1275
+ <div class="method_details ">
1276
+ <h3 class="signature " id="region-instance_method">
1277
+
1278
+ - (<tt>Object</tt>) <strong>region</strong>
1279
+
1280
+
1281
+
1282
+
1283
+
1284
+ </h3><table class="source_code">
1285
+ <tr>
1286
+ <td>
1287
+ <pre class="lines">
1288
+
1289
+
1290
+ 32
1291
+ 33
1292
+ 34</pre>
1293
+ </td>
1294
+ <td>
1295
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 32</span>
1296
+
1297
+ <span class='kw'>def</span> <span class='id identifier rubyid_region'>region</span>
1298
+ <span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_aws_region'>aws_region</span>
1299
+ <span class='kw'>end</span></pre>
1300
+ </td>
1301
+ </tr>
1302
+ </table>
1303
+ </div>
1304
+
1305
+ <div class="method_details ">
1306
+ <h3 class="signature " id="roles-instance_method">
1307
+
1308
+ - (<tt>Object</tt>) <strong>roles</strong>
1309
+
1310
+
1311
+
1312
+
1313
+
1314
+ </h3><table class="source_code">
1315
+ <tr>
1316
+ <td>
1317
+ <pre class="lines">
1318
+
1319
+
1320
+ 26
1321
+ 27
1322
+ 28
1323
+ 29
1324
+ 30</pre>
1325
+ </td>
1326
+ <td>
1327
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 26</span>
1328
+
1329
+ <span class='kw'>def</span> <span class='id identifier rubyid_roles'>roles</span>
1330
+ <span class='kw'>return</span> <span class='ivar'>@roles</span> <span class='kw'>if</span> <span class='ivar'>@roles</span>
1331
+ <span class='id identifier rubyid_roles'>roles</span> <span class='op'>=</span> <span class='id identifier rubyid_find_array_tag'>find_array_tag</span><span class='lparen'>(</span><span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_roles_tag'>roles_tag</span><span class='rparen'>)</span>
1332
+ <span class='ivar'>@roles</span> <span class='op'>=</span> <span class='id identifier rubyid_roles'>roles</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_role'>role</span><span class='op'>|</span> <span class='const'>EC2</span><span class='op'>::</span><span class='const'>Host</span><span class='op'>::</span><span class='const'>RoleData</span><span class='period'>.</span><span class='id identifier rubyid_build'>build</span><span class='lparen'>(</span><span class='id identifier rubyid_role'>role</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
1333
+ <span class='kw'>end</span></pre>
1334
+ </td>
1335
+ </tr>
1336
+ </table>
1337
+ </div>
1338
+
1339
+ <div class="method_details ">
1340
+ <h3 class="signature " id="running?-instance_method">
1341
+
1342
+ - (<tt>Boolean</tt>) <strong>running?</strong>
1343
+
1344
+
1345
+
1346
+
1347
+
1348
+ </h3><div class="docstring">
1349
+ <div class="discussion">
1350
+
1351
+
1352
+ </div>
1353
+ </div>
1354
+ <div class="tags">
1355
+
1356
+ <p class="tag_title">Returns:</p>
1357
+ <ul class="return">
1358
+
1359
+ <li>
1360
+
1361
+
1362
+ <span class='type'>(<tt>Boolean</tt>)</span>
1363
+
1364
+
1365
+
1366
+ </li>
1367
+
1368
+ </ul>
1369
+
1370
+ </div><table class="source_code">
1371
+ <tr>
1372
+ <td>
1373
+ <pre class="lines">
1374
+
1375
+
1376
+ 109
1377
+ 110
1378
+ 111</pre>
1379
+ </td>
1380
+ <td>
1381
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 109</span>
1382
+
1383
+ <span class='kw'>def</span> <span class='id identifier rubyid_running?'>running?</span>
1384
+ <span class='id identifier rubyid_state'>state</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>running</span><span class='tstring_end'>&quot;</span></span>
1385
+ <span class='kw'>end</span></pre>
1386
+ </td>
1387
+ </tr>
1388
+ </table>
1389
+ </div>
1390
+
1391
+ <div class="method_details ">
1392
+ <h3 class="signature " id="shutting_down?-instance_method">
1393
+
1394
+ - (<tt>Boolean</tt>) <strong>shutting_down?</strong>
1395
+
1396
+
1397
+
1398
+
1399
+
1400
+ </h3><div class="docstring">
1401
+ <div class="discussion">
1402
+
1403
+
1404
+ </div>
1405
+ </div>
1406
+ <div class="tags">
1407
+
1408
+ <p class="tag_title">Returns:</p>
1409
+ <ul class="return">
1410
+
1411
+ <li>
1412
+
1413
+
1414
+ <span class='type'>(<tt>Boolean</tt>)</span>
1415
+
1416
+
1417
+
1418
+ </li>
1419
+
1420
+ </ul>
1421
+
1422
+ </div><table class="source_code">
1423
+ <tr>
1424
+ <td>
1425
+ <pre class="lines">
1426
+
1427
+
1428
+ 97
1429
+ 98
1430
+ 99</pre>
1431
+ </td>
1432
+ <td>
1433
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 97</span>
1434
+
1435
+ <span class='kw'>def</span> <span class='id identifier rubyid_shutting_down?'>shutting_down?</span>
1436
+ <span class='id identifier rubyid_state'>state</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>shutting-down</span><span class='tstring_end'>&quot;</span></span>
1437
+ <span class='kw'>end</span></pre>
1438
+ </td>
1439
+ </tr>
1440
+ </table>
1441
+ </div>
1442
+
1443
+ <div class="method_details ">
1444
+ <h3 class="signature " id="start_date-instance_method">
1445
+
1446
+ - (<tt>Object</tt>) <strong>start_date</strong>
1447
+
1448
+
1449
+
1450
+
1451
+
1452
+ </h3><div class="docstring">
1453
+ <div class="discussion">
1454
+
1455
+ <p>compatibility with dino-host</p>
1456
+
1457
+
1458
+ </div>
1459
+ </div>
1460
+ <div class="tags">
1461
+
1462
+
1463
+ </div><table class="source_code">
1464
+ <tr>
1465
+ <td>
1466
+ <pre class="lines">
1467
+
1468
+
1469
+ 84
1470
+ 85
1471
+ 86</pre>
1472
+ </td>
1473
+ <td>
1474
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 84</span>
1475
+
1476
+ <span class='kw'>def</span> <span class='id identifier rubyid_start_date'>start_date</span>
1477
+ <span class='id identifier rubyid_launch_time'>launch_time</span>
1478
+ <span class='kw'>end</span></pre>
1479
+ </td>
1480
+ </tr>
1481
+ </table>
1482
+ </div>
1483
+
1484
+ <div class="method_details ">
1485
+ <h3 class="signature " id="state-instance_method">
1486
+
1487
+ - (<tt>Object</tt>) <strong>state</strong>
1488
+
1489
+
1490
+
1491
+
1492
+
1493
+ </h3><table class="source_code">
1494
+ <tr>
1495
+ <td>
1496
+ <pre class="lines">
1497
+
1498
+
1499
+ 70
1500
+ 71
1501
+ 72</pre>
1502
+ </td>
1503
+ <td>
1504
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 70</span>
1505
+
1506
+ <span class='kw'>def</span> <span class='id identifier rubyid_state'>state</span>
1507
+ <span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_state'>state</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span>
1508
+ <span class='kw'>end</span></pre>
1509
+ </td>
1510
+ </tr>
1511
+ </table>
1512
+ </div>
1513
+
1514
+ <div class="method_details ">
1515
+ <h3 class="signature " id="stopped-instance_method">
1516
+
1517
+ - (<tt>Object</tt>) <strong>stopped</strong>
1518
+
1519
+
1520
+
1521
+
1522
+
1523
+ </h3><table class="source_code">
1524
+ <tr>
1525
+ <td>
1526
+ <pre class="lines">
1527
+
1528
+
1529
+ 105
1530
+ 106
1531
+ 107</pre>
1532
+ </td>
1533
+ <td>
1534
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 105</span>
1535
+
1536
+ <span class='kw'>def</span> <span class='id identifier rubyid_stopped'>stopped</span>
1537
+ <span class='id identifier rubyid_state'>state</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>stopped</span><span class='tstring_end'>&quot;</span></span>
1538
+ <span class='kw'>end</span></pre>
1539
+ </td>
1540
+ </tr>
1541
+ </table>
1542
+ </div>
1543
+
1544
+ <div class="method_details ">
1545
+ <h3 class="signature " id="stopping?-instance_method">
1546
+
1547
+ - (<tt>Boolean</tt>) <strong>stopping?</strong>
1548
+
1549
+
1550
+
1551
+
1552
+
1553
+ </h3><div class="docstring">
1554
+ <div class="discussion">
1555
+
1556
+
1557
+ </div>
1558
+ </div>
1559
+ <div class="tags">
1560
+
1561
+ <p class="tag_title">Returns:</p>
1562
+ <ul class="return">
1563
+
1564
+ <li>
1565
+
1566
+
1567
+ <span class='type'>(<tt>Boolean</tt>)</span>
1568
+
1569
+
1570
+
1571
+ </li>
1572
+
1573
+ </ul>
1574
+
1575
+ </div><table class="source_code">
1576
+ <tr>
1577
+ <td>
1578
+ <pre class="lines">
1579
+
1580
+
1581
+ 101
1582
+ 102
1583
+ 103</pre>
1584
+ </td>
1585
+ <td>
1586
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 101</span>
1587
+
1588
+ <span class='kw'>def</span> <span class='id identifier rubyid_stopping?'>stopping?</span>
1589
+ <span class='id identifier rubyid_state'>state</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>stopping</span><span class='tstring_end'>&quot;</span></span>
1590
+ <span class='kw'>end</span></pre>
1591
+ </td>
1592
+ </tr>
1593
+ </table>
1594
+ </div>
1595
+
1596
+ <div class="method_details ">
1597
+ <h3 class="signature " id="terminated?-instance_method">
1598
+
1599
+ - (<tt>Boolean</tt>) <strong>terminated?</strong>
1600
+
1601
+
1602
+
1603
+
1604
+
1605
+ </h3><div class="docstring">
1606
+ <div class="discussion">
1607
+
1608
+
1609
+ </div>
1610
+ </div>
1611
+ <div class="tags">
1612
+
1613
+ <p class="tag_title">Returns:</p>
1614
+ <ul class="return">
1615
+
1616
+ <li>
1617
+
1618
+
1619
+ <span class='type'>(<tt>Boolean</tt>)</span>
1620
+
1621
+
1622
+
1623
+ </li>
1624
+
1625
+ </ul>
1626
+
1627
+ </div><table class="source_code">
1628
+ <tr>
1629
+ <td>
1630
+ <pre class="lines">
1631
+
1632
+
1633
+ 93
1634
+ 94
1635
+ 95</pre>
1636
+ </td>
1637
+ <td>
1638
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 93</span>
1639
+
1640
+ <span class='kw'>def</span> <span class='id identifier rubyid_terminated?'>terminated?</span>
1641
+ <span class='id identifier rubyid_state'>state</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>terminated</span><span class='tstring_end'>&quot;</span></span>
1642
+ <span class='kw'>end</span></pre>
1643
+ </td>
1644
+ </tr>
1645
+ </table>
1646
+ </div>
1647
+
1648
+ <div class="method_details ">
1649
+ <h3 class="signature " id="to_hash-instance_method">
1650
+
1651
+ - (<tt>Object</tt>) <strong>to_hash</strong>
1652
+
1653
+
1654
+
1655
+
1656
+
1657
+ </h3><table class="source_code">
1658
+ <tr>
1659
+ <td>
1660
+ <pre class="lines">
1661
+
1662
+
1663
+ 127
1664
+ 128
1665
+ 129
1666
+ 130
1667
+ 131
1668
+ 132
1669
+ 133
1670
+ 134
1671
+ 135
1672
+ 136
1673
+ 137
1674
+ 138
1675
+ 139
1676
+ 140
1677
+ 141
1678
+ 142
1679
+ 143
1680
+ 144
1681
+ 145
1682
+ 146
1683
+ 147
1684
+ 148
1685
+ 149
1686
+ 150</pre>
1687
+ </td>
1688
+ <td>
1689
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 127</span>
1690
+
1691
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_hash'>to_hash</span>
1692
+ <span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span>
1693
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>hostname</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_hostname'>hostname</span><span class='comma'>,</span>
1694
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>roles</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_roles'>roles</span><span class='comma'>,</span>
1695
+ <span class='rbrace'>}</span>
1696
+ <span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_optional_string_tags'>optional_string_tags</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_tag'>tag</span><span class='op'>|</span>
1697
+ <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_tag'>tag</span><span class='rparen'>)</span>
1698
+ <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>
1699
+ <span class='kw'>end</span>
1700
+ <span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_optional_array_tags'>optional_array_tags</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_tag'>tag</span><span class='op'>|</span>
1701
+ <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_tag'>tag</span><span class='rparen'>)</span>
1702
+ <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>
1703
+ <span class='kw'>end</span>
1704
+ <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_merge!'>merge!</span><span class='lparen'>(</span>
1705
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>region</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_region'>region</span><span class='comma'>,</span>
1706
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>instance_id</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_instance_id'>instance_id</span><span class='comma'>,</span>
1707
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>instance_type</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_instance_type'>instance_type</span><span class='comma'>,</span>
1708
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>private_ip_address</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_private_ip_address'>private_ip_address</span><span class='comma'>,</span>
1709
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>public_ip_address</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_public_ip_address'>public_ip_address</span><span class='comma'>,</span>
1710
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>launch_time</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_launch_time'>launch_time</span><span class='comma'>,</span>
1711
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>state</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_state'>state</span><span class='comma'>,</span>
1712
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>monitoring</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_monitoring'>monitoring</span><span class='comma'>,</span>
1713
+ <span class='rparen'>)</span>
1714
+ <span class='kw'>end</span></pre>
1715
+ </td>
1716
+ </tr>
1717
+ </table>
1718
+ </div>
1719
+
1720
+ <div class="method_details ">
1721
+ <h3 class="signature " id="usages-instance_method">
1722
+
1723
+ - (<tt>Object</tt>) <strong>usages</strong>
1724
+
1725
+
1726
+
1727
+
1728
+
1729
+ </h3><div class="docstring">
1730
+ <div class="discussion">
1731
+
1732
+ <p>compatibility with dino-host</p>
1733
+
1734
+
1735
+ </div>
1736
+ </div>
1737
+ <div class="tags">
1738
+
1739
+
1740
+ </div><table class="source_code">
1741
+ <tr>
1742
+ <td>
1743
+ <pre class="lines">
1744
+
1745
+
1746
+ 89
1747
+ 90
1748
+ 91</pre>
1749
+ </td>
1750
+ <td>
1751
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/host_data.rb', line 89</span>
1752
+
1753
+ <span class='kw'>def</span> <span class='id identifier rubyid_usages'>usages</span>
1754
+ <span class='id identifier rubyid_roles'>roles</span>
1755
+ <span class='kw'>end</span></pre>
1756
+ </td>
1757
+ </tr>
1758
+ </table>
1759
+ </div>
1760
+
1761
+ </div>
1762
+
1763
+ </div>
1764
+
1765
+ <div id="footer">
1766
+ Generated on Thu Nov 24 10:25:36 2016 by
1767
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1768
+ 0.8.7.6 (ruby-2.3.2).
1769
+ </div>
1770
+
1771
+ </body>
1772
+ </html>