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,932 @@
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::RoleData
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/RoleData.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 (R)</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">RoleData</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::RoleData
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::RoleData</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/role_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 role</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="#role1-instance_method" title="#role1 (instance method)">- (Object) <strong>role1</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 role1.</p>
144
+ </div></span>
145
+
146
+ </li>
147
+
148
+
149
+ <li class="public ">
150
+ <span class="summary_signature">
151
+
152
+ <a href="#role2-instance_method" title="#role2 (instance method)">- (Object) <strong>role2</strong> </a>
153
+
154
+
155
+
156
+ </span>
157
+
158
+
159
+
160
+
161
+ <span class="note title readonly">readonly</span>
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+ <span class="summary_desc"><div class='inline'>
172
+ <p>Returns the value of attribute role2.</p>
173
+ </div></span>
174
+
175
+ </li>
176
+
177
+
178
+ <li class="public ">
179
+ <span class="summary_signature">
180
+
181
+ <a href="#role3-instance_method" title="#role3 (instance method)">- (Object) <strong>role3</strong> </a>
182
+
183
+
184
+
185
+ </span>
186
+
187
+
188
+
189
+
190
+ <span class="note title readonly">readonly</span>
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+ <span class="summary_desc"><div class='inline'>
201
+ <p>Returns the value of attribute role3.</p>
202
+ </div></span>
203
+
204
+ </li>
205
+
206
+
207
+ </ul>
208
+
209
+
210
+
211
+
212
+
213
+ <h2>
214
+ Class Method Summary
215
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
216
+ </h2>
217
+
218
+ <ul class="summary">
219
+
220
+ <li class="public ">
221
+ <span class="summary_signature">
222
+
223
+ <a href="#build-class_method" title="build (class method)">+ (Object) <strong>build</strong>(role) </a>
224
+
225
+
226
+
227
+ </span>
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+ <span class="summary_desc"><div class='inline'></div></span>
238
+
239
+ </li>
240
+
241
+
242
+ </ul>
243
+
244
+ <h2>
245
+ Instance Method Summary
246
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
247
+ </h2>
248
+
249
+ <ul class="summary">
250
+
251
+ <li class="public ">
252
+ <span class="summary_signature">
253
+
254
+ <a href="#%3D%3D-instance_method" title="#== (instance method)">- (Object) <strong>==</strong>(other) </a>
255
+
256
+
257
+
258
+ </span>
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+ <span class="summary_desc"><div class='inline'>
269
+ <p>Equality.</p>
270
+ </div></span>
271
+
272
+ </li>
273
+
274
+
275
+ <li class="public ">
276
+ <span class="summary_signature">
277
+
278
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (RoleData) <strong>initialize</strong>(role1, role2 = nil, role3 = nil) </a>
279
+
280
+
281
+
282
+ </span>
283
+
284
+
285
+ <span class="note title constructor">constructor</span>
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+ <span class="summary_desc"><div class='inline'>
295
+ <p>A new instance of RoleData.</p>
296
+ </div></span>
297
+
298
+ </li>
299
+
300
+
301
+ <li class="public ">
302
+ <span class="summary_signature">
303
+
304
+ <a href="#inspect-instance_method" title="#inspect (instance method)">- (Object) <strong>inspect</strong> </a>
305
+
306
+
307
+
308
+ </span>
309
+
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+
318
+ <span class="summary_desc"><div class='inline'></div></span>
319
+
320
+ </li>
321
+
322
+
323
+ <li class="public ">
324
+ <span class="summary_signature">
325
+
326
+ <a href="#match%3F-instance_method" title="#match? (instance method)">- (Boolean) <strong>match?</strong>(role1, role2 = nil, role3 = nil) </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
+
342
+ </li>
343
+
344
+
345
+ <li class="public ">
346
+ <span class="summary_signature">
347
+
348
+ <a href="#role-instance_method" title="#role (instance method)">- (String) <strong>role</strong> </a>
349
+
350
+
351
+
352
+ (also: #to_s)
353
+
354
+ </span>
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+ <span class="summary_desc"><div class='inline'>
365
+ <p>Something like “admin:jenkins:slave”.</p>
366
+ </div></span>
367
+
368
+ </li>
369
+
370
+
371
+ <li class="public ">
372
+ <span class="summary_signature">
373
+
374
+ <a href="#uppers-instance_method" title="#uppers (instance method)">- (Array) <strong>uppers</strong> </a>
375
+
376
+
377
+
378
+ </span>
379
+
380
+
381
+
382
+
383
+
384
+
385
+
386
+
387
+
388
+ <span class="summary_desc"><div class='inline'>
389
+ <p>Something like [“admin”, “admin:jenkins”, “admin:jenkins:slave”].</p>
390
+ </div></span>
391
+
392
+ </li>
393
+
394
+
395
+ </ul>
396
+
397
+
398
+ <div id="constructor_details" class="method_details_list">
399
+ <h2>Constructor Details</h2>
400
+
401
+ <div class="method_details first">
402
+ <h3 class="signature first" id="initialize-instance_method">
403
+
404
+ - (<tt><span class='object_link'><a href="" title="EC2::Host::RoleData (class)">RoleData</a></span></tt>) <strong>initialize</strong>(role1, role2 = nil, role3 = nil)
405
+
406
+
407
+
408
+
409
+
410
+ </h3><div class="docstring">
411
+ <div class="discussion">
412
+
413
+ <p>Returns a new instance of RoleData</p>
414
+
415
+
416
+ </div>
417
+ </div>
418
+ <div class="tags">
419
+
420
+
421
+ </div><table class="source_code">
422
+ <tr>
423
+ <td>
424
+ <pre class="lines">
425
+
426
+
427
+ 7
428
+ 8
429
+ 9
430
+ 10
431
+ 11</pre>
432
+ </td>
433
+ <td>
434
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/role_data.rb', line 7</span>
435
+
436
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_role1'>role1</span><span class='comma'>,</span> <span class='id identifier rubyid_role2'>role2</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_role3'>role3</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
437
+ <span class='ivar'>@role1</span> <span class='op'>=</span> <span class='id identifier rubyid_role1'>role1</span>
438
+ <span class='ivar'>@role2</span> <span class='op'>=</span> <span class='id identifier rubyid_role2'>role2</span>
439
+ <span class='ivar'>@role3</span> <span class='op'>=</span> <span class='id identifier rubyid_role3'>role3</span>
440
+ <span class='kw'>end</span></pre>
441
+ </td>
442
+ </tr>
443
+ </table>
444
+ </div>
445
+
446
+ </div>
447
+
448
+ <div id="instance_attr_details" class="attr_details">
449
+ <h2>Instance Attribute Details</h2>
450
+
451
+
452
+ <span id=""></span>
453
+ <div class="method_details first">
454
+ <h3 class="signature first" id="role1-instance_method">
455
+
456
+ - (<tt>Object</tt>) <strong>role1</strong> <span class="extras">(readonly)</span>
457
+
458
+
459
+
460
+
461
+
462
+ </h3><div class="docstring">
463
+ <div class="discussion">
464
+
465
+ <p>Returns the value of attribute role1</p>
466
+
467
+
468
+ </div>
469
+ </div>
470
+ <div class="tags">
471
+
472
+
473
+ </div><table class="source_code">
474
+ <tr>
475
+ <td>
476
+ <pre class="lines">
477
+
478
+
479
+ 5
480
+ 6
481
+ 7</pre>
482
+ </td>
483
+ <td>
484
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/role_data.rb', line 5</span>
485
+
486
+ <span class='kw'>def</span> <span class='id identifier rubyid_role1'>role1</span>
487
+ <span class='ivar'>@role1</span>
488
+ <span class='kw'>end</span></pre>
489
+ </td>
490
+ </tr>
491
+ </table>
492
+ </div>
493
+
494
+
495
+ <span id=""></span>
496
+ <div class="method_details ">
497
+ <h3 class="signature " id="role2-instance_method">
498
+
499
+ - (<tt>Object</tt>) <strong>role2</strong> <span class="extras">(readonly)</span>
500
+
501
+
502
+
503
+
504
+
505
+ </h3><div class="docstring">
506
+ <div class="discussion">
507
+
508
+ <p>Returns the value of attribute role2</p>
509
+
510
+
511
+ </div>
512
+ </div>
513
+ <div class="tags">
514
+
515
+
516
+ </div><table class="source_code">
517
+ <tr>
518
+ <td>
519
+ <pre class="lines">
520
+
521
+
522
+ 5
523
+ 6
524
+ 7</pre>
525
+ </td>
526
+ <td>
527
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/role_data.rb', line 5</span>
528
+
529
+ <span class='kw'>def</span> <span class='id identifier rubyid_role2'>role2</span>
530
+ <span class='ivar'>@role2</span>
531
+ <span class='kw'>end</span></pre>
532
+ </td>
533
+ </tr>
534
+ </table>
535
+ </div>
536
+
537
+
538
+ <span id=""></span>
539
+ <div class="method_details ">
540
+ <h3 class="signature " id="role3-instance_method">
541
+
542
+ - (<tt>Object</tt>) <strong>role3</strong> <span class="extras">(readonly)</span>
543
+
544
+
545
+
546
+
547
+
548
+ </h3><div class="docstring">
549
+ <div class="discussion">
550
+
551
+ <p>Returns the value of attribute role3</p>
552
+
553
+
554
+ </div>
555
+ </div>
556
+ <div class="tags">
557
+
558
+
559
+ </div><table class="source_code">
560
+ <tr>
561
+ <td>
562
+ <pre class="lines">
563
+
564
+
565
+ 5
566
+ 6
567
+ 7</pre>
568
+ </td>
569
+ <td>
570
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/role_data.rb', line 5</span>
571
+
572
+ <span class='kw'>def</span> <span class='id identifier rubyid_role3'>role3</span>
573
+ <span class='ivar'>@role3</span>
574
+ <span class='kw'>end</span></pre>
575
+ </td>
576
+ </tr>
577
+ </table>
578
+ </div>
579
+
580
+ </div>
581
+
582
+
583
+ <div id="class_method_details" class="method_details_list">
584
+ <h2>Class Method Details</h2>
585
+
586
+
587
+ <div class="method_details first">
588
+ <h3 class="signature first" id="build-class_method">
589
+
590
+ + (<tt>Object</tt>) <strong>build</strong>(role)
591
+
592
+
593
+
594
+
595
+
596
+ </h3><table class="source_code">
597
+ <tr>
598
+ <td>
599
+ <pre class="lines">
600
+
601
+
602
+ 13
603
+ 14
604
+ 15
605
+ 16</pre>
606
+ </td>
607
+ <td>
608
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/role_data.rb', line 13</span>
609
+
610
+ <span class='kw'>def</span> <span class='kw'>self</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>
611
+ <span class='id identifier rubyid_role1'>role1</span><span class='comma'>,</span> <span class='id identifier rubyid_role2'>role2</span><span class='comma'>,</span> <span class='id identifier rubyid_role3'>role3</span> <span class='op'>=</span> <span class='id identifier rubyid_role'>role</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_role_tag_delimiter'>role_tag_delimiter</span><span class='comma'>,</span> <span class='int'>3</span><span class='rparen'>)</span>
612
+ <span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_role1'>role1</span><span class='comma'>,</span> <span class='id identifier rubyid_role2'>role2</span><span class='comma'>,</span> <span class='id identifier rubyid_role3'>role3</span><span class='rparen'>)</span>
613
+ <span class='kw'>end</span></pre>
614
+ </td>
615
+ </tr>
616
+ </table>
617
+ </div>
618
+
619
+ </div>
620
+
621
+ <div id="instance_method_details" class="method_details_list">
622
+ <h2>Instance Method Details</h2>
623
+
624
+
625
+ <div class="method_details first">
626
+ <h3 class="signature first" id="==-instance_method">
627
+
628
+ - (<tt>Object</tt>) <strong>==</strong>(other)
629
+
630
+
631
+
632
+
633
+
634
+ </h3><div class="docstring">
635
+ <div class="discussion">
636
+
637
+ <p>Equality</p>
638
+
639
+ <pre class="code ruby"><code class="ruby"><span class='const'>Role</span><span class='op'>::</span><span class='const'>Data</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>admin</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='op'>==</span> <span class='const'>Role</span><span class='op'>::</span><span class='const'>Data</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>admin</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='comment'>#=&gt; true
640
+ </span><span class='const'>Role</span><span class='op'>::</span><span class='const'>Data</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>admin</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>jenkin</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>admin:jenkins</span><span class='tstring_end'>&quot;</span></span> <span class='comment'>#=&gt; true
641
+ </span></code></pre>
642
+
643
+
644
+ </div>
645
+ </div>
646
+ <div class="tags">
647
+ <p class="tag_title">Parameters:</p>
648
+ <ul class="param">
649
+
650
+ <li>
651
+
652
+ <span class='name'>other</span>
653
+
654
+
655
+ <span class='type'>(<tt>Object</tt>)</span>
656
+
657
+
658
+
659
+ </li>
660
+
661
+ </ul>
662
+
663
+
664
+ </div><table class="source_code">
665
+ <tr>
666
+ <td>
667
+ <pre class="lines">
668
+
669
+
670
+ 48
671
+ 49
672
+ 50
673
+ 51
674
+ 52
675
+ 53
676
+ 54
677
+ 55
678
+ 56
679
+ 57</pre>
680
+ </td>
681
+ <td>
682
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/role_data.rb', line 48</span>
683
+
684
+ <span class='kw'>def</span> <span class='op'>==</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
685
+ <span class='kw'>case</span> <span class='id identifier rubyid_other'>other</span>
686
+ <span class='kw'>when</span> <span class='const'>String</span>
687
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_role'>role</span> <span class='op'>==</span> <span class='id identifier rubyid_other'>other</span>
688
+ <span class='kw'>when</span> <span class='const'>EC2</span><span class='op'>::</span><span class='const'>Host</span><span class='op'>::</span><span class='const'>RoleData</span>
689
+ <span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
690
+ <span class='kw'>else</span>
691
+ <span class='kw'>false</span>
692
+ <span class='kw'>end</span>
693
+ <span class='kw'>end</span></pre>
694
+ </td>
695
+ </tr>
696
+ </table>
697
+ </div>
698
+
699
+ <div class="method_details ">
700
+ <h3 class="signature " id="inspect-instance_method">
701
+
702
+ - (<tt>Object</tt>) <strong>inspect</strong>
703
+
704
+
705
+
706
+
707
+
708
+ </h3><table class="source_code">
709
+ <tr>
710
+ <td>
711
+ <pre class="lines">
712
+
713
+
714
+ 59
715
+ 60
716
+ 61</pre>
717
+ </td>
718
+ <td>
719
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/role_data.rb', line 59</span>
720
+
721
+ <span class='kw'>def</span> <span class='id identifier rubyid_inspect'>inspect</span>
722
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_to_s'>to_s</span><span class='embexpr_end'>}</span><span class='tstring_content'>\&quot;</span><span class='tstring_end'>&quot;</span></span>
723
+ <span class='kw'>end</span></pre>
724
+ </td>
725
+ </tr>
726
+ </table>
727
+ </div>
728
+
729
+ <div class="method_details ">
730
+ <h3 class="signature " id="match?-instance_method">
731
+
732
+ - (<tt>Boolean</tt>) <strong>match?</strong>(role1, role2 = nil, role3 = nil)
733
+
734
+
735
+
736
+
737
+
738
+ </h3><div class="docstring">
739
+ <div class="discussion">
740
+
741
+
742
+ </div>
743
+ </div>
744
+ <div class="tags">
745
+
746
+ <p class="tag_title">Returns:</p>
747
+ <ul class="return">
748
+
749
+ <li>
750
+
751
+
752
+ <span class='type'>(<tt>Boolean</tt>)</span>
753
+
754
+
755
+
756
+ </li>
757
+
758
+ </ul>
759
+
760
+ </div><table class="source_code">
761
+ <tr>
762
+ <td>
763
+ <pre class="lines">
764
+
765
+
766
+ 32
767
+ 33
768
+ 34
769
+ 35
770
+ 36
771
+ 37
772
+ 38
773
+ 39
774
+ 40</pre>
775
+ </td>
776
+ <td>
777
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/role_data.rb', line 32</span>
778
+
779
+ <span class='kw'>def</span> <span class='id identifier rubyid_match?'>match?</span><span class='lparen'>(</span><span class='id identifier rubyid_role1'>role1</span><span class='comma'>,</span> <span class='id identifier rubyid_role2'>role2</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_role3'>role3</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
780
+ <span class='kw'>if</span> <span class='id identifier rubyid_role3'>role3</span>
781
+ <span class='id identifier rubyid_role1'>role1</span> <span class='op'>==</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_role1'>role1</span> <span class='kw'>and</span> <span class='id identifier rubyid_role2'>role2</span> <span class='op'>==</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_role2'>role2</span> <span class='kw'>and</span> <span class='id identifier rubyid_role3'>role3</span> <span class='op'>==</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_role3'>role3</span>
782
+ <span class='kw'>elsif</span> <span class='id identifier rubyid_role2'>role2</span>
783
+ <span class='id identifier rubyid_role1'>role1</span> <span class='op'>==</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_role1'>role1</span> <span class='kw'>and</span> <span class='id identifier rubyid_role2'>role2</span> <span class='op'>==</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_role2'>role2</span>
784
+ <span class='kw'>else</span>
785
+ <span class='id identifier rubyid_role1'>role1</span> <span class='op'>==</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_role1'>role1</span>
786
+ <span class='kw'>end</span>
787
+ <span class='kw'>end</span></pre>
788
+ </td>
789
+ </tr>
790
+ </table>
791
+ </div>
792
+
793
+ <div class="method_details ">
794
+ <h3 class="signature " id="role-instance_method">
795
+
796
+ - (<tt>String</tt>) <strong>role</strong>
797
+
798
+
799
+
800
+ <span class="aliases">Also known as:
801
+ <span class="names"><span id='to_s-instance_method'>to_s</span></span>
802
+ </span>
803
+
804
+
805
+
806
+ </h3><div class="docstring">
807
+ <div class="discussion">
808
+
809
+ <p>Returns something like “admin:jenkins:slave”</p>
810
+
811
+
812
+ </div>
813
+ </div>
814
+ <div class="tags">
815
+
816
+ <p class="tag_title">Returns:</p>
817
+ <ul class="return">
818
+
819
+ <li>
820
+
821
+
822
+ <span class='type'>(<tt>String</tt>)</span>
823
+
824
+
825
+
826
+ &mdash;
827
+ <div class='inline'>
828
+ <p>something like “admin:jenkins:slave”</p>
829
+ </div>
830
+
831
+ </li>
832
+
833
+ </ul>
834
+
835
+ </div><table class="source_code">
836
+ <tr>
837
+ <td>
838
+ <pre class="lines">
839
+
840
+
841
+ 19
842
+ 20
843
+ 21</pre>
844
+ </td>
845
+ <td>
846
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/role_data.rb', line 19</span>
847
+
848
+ <span class='kw'>def</span> <span class='id identifier rubyid_role'>role</span>
849
+ <span class='ivar'>@role</span> <span class='op'>||=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_role1'>role1</span><span class='comma'>,</span> <span class='id identifier rubyid_role2'>role2</span><span class='comma'>,</span> <span class='id identifier rubyid_role3'>role3</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span><span class='period'>.</span><span class='id identifier rubyid_reject'>reject</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='symbol'>:empty?</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_role_tag_delimiter'>role_tag_delimiter</span><span class='rparen'>)</span>
850
+ <span class='kw'>end</span></pre>
851
+ </td>
852
+ </tr>
853
+ </table>
854
+ </div>
855
+
856
+ <div class="method_details ">
857
+ <h3 class="signature " id="uppers-instance_method">
858
+
859
+ - (<tt>Array</tt>) <strong>uppers</strong>
860
+
861
+
862
+
863
+
864
+
865
+ </h3><div class="docstring">
866
+ <div class="discussion">
867
+
868
+ <p>Returns something like [“admin”, “admin:jenkins”, “admin:jenkins:slave”]</p>
869
+
870
+
871
+ </div>
872
+ </div>
873
+ <div class="tags">
874
+
875
+ <p class="tag_title">Returns:</p>
876
+ <ul class="return">
877
+
878
+ <li>
879
+
880
+
881
+ <span class='type'>(<tt>Array</tt>)</span>
882
+
883
+
884
+
885
+ &mdash;
886
+ <div class='inline'>
887
+ <p>something like [“admin”, “admin:jenkins”, “admin:jenkins:slave”]</p>
888
+ </div>
889
+
890
+ </li>
891
+
892
+ </ul>
893
+
894
+ </div><table class="source_code">
895
+ <tr>
896
+ <td>
897
+ <pre class="lines">
898
+
899
+
900
+ 25
901
+ 26
902
+ 27
903
+ 28
904
+ 29
905
+ 30</pre>
906
+ </td>
907
+ <td>
908
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/role_data.rb', line 25</span>
909
+
910
+ <span class='kw'>def</span> <span class='id identifier rubyid_uppers'>uppers</span>
911
+ <span class='id identifier rubyid_uppers'>uppers</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='const'>RoleData</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_role1'>role1</span><span class='rparen'>)</span><span class='rbracket'>]</span>
912
+ <span class='id identifier rubyid_uppers'>uppers</span> <span class='op'>&lt;&lt;</span> <span class='const'>RoleData</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_role1'>role1</span><span class='comma'>,</span> <span class='id identifier rubyid_role2'>role2</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_role2'>role2</span> <span class='kw'>and</span> <span class='op'>!</span><span class='id identifier rubyid_role2'>role2</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
913
+ <span class='id identifier rubyid_uppers'>uppers</span> <span class='op'>&lt;&lt;</span> <span class='const'>RoleData</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_role1'>role1</span><span class='comma'>,</span> <span class='id identifier rubyid_role2'>role2</span><span class='comma'>,</span> <span class='id identifier rubyid_role3'>role3</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_role3'>role3</span> <span class='kw'>and</span> <span class='op'>!</span><span class='id identifier rubyid_role3'>role3</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
914
+ <span class='id identifier rubyid_uppers'>uppers</span>
915
+ <span class='kw'>end</span></pre>
916
+ </td>
917
+ </tr>
918
+ </table>
919
+ </div>
920
+
921
+ </div>
922
+
923
+ </div>
924
+
925
+ <div id="footer">
926
+ Generated on Thu Nov 24 10:25:37 2016 by
927
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
928
+ 0.8.7.6 (ruby-2.3.2).
929
+ </div>
930
+
931
+ </body>
932
+ </html>