ec2-host 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc628fa546f382774069143d6c6e5469091985f6
4
- data.tar.gz: ab4e0f46e19adf37a1cdd7079818f3e6f78c556c
3
+ metadata.gz: db0cda7a5f7de69b1363d850e513fe7ef0df4f7d
4
+ data.tar.gz: e25af51e95de916c8566f9a2faf3b5cf14c14e96
5
5
  SHA512:
6
- metadata.gz: e5cdc6c9ac53423f828ccc5e0e62049b291e1506ae39e1761943839a8aa911d17cb282314b6d58e0372d577e63eea823279d3b498d48707076d1a4ef6e88de71
7
- data.tar.gz: 6fc6ff602bee4177f7843b308b7b32b00c526c098496576b1c1a2e8ebcc98d829598a58cb6685f525c17aea8dffcbb0dadc5acd800ef131615d2b9a271903011
6
+ metadata.gz: f0c830420a4caf25169a546df4cb8001bfacbdb709be623fc721de5cf605fb86a881fcb3f391fe6172c1604cddbdd5bcc13bba3e239e7f88bc5539dd21954631
7
+ data.tar.gz: 530802698c35e3d8bc204e73d0a3949b662d32ac2a50ab9e3a1de13e98c7ebeb03e9da0708e9d0bbb3aa21a7a1a46ee4c7af0f283b37aad2592562104816ded2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.5.1 (2016/12/02)
2
+
3
+ Fixes:
4
+
5
+ * Fix role matching for when --role1 was not specified
6
+
1
7
  # 0.5.0 (2016/12/01)
2
8
 
3
9
  Enhancements:
data/docs/EC2.html CHANGED
@@ -95,7 +95,7 @@
95
95
 
96
96
  <dt class="r2 last">Defined in:</dt>
97
97
  <dd class="r2 last">lib/ec2/host.rb<span class="defines">,<br />
98
- lib/ec2/host/cli.rb,<br /> lib/ec2/host/config.rb,<br /> lib/ec2/host/hash_util.rb,<br /> lib/ec2/host/host_data.rb,<br /> lib/ec2/host/role_data.rb,<br /> lib/ec2/host/ec2_client.rb,<br /> lib/ec2/host/string_util.rb</span>
98
+ lib/ec2/host/cli.rb,<br /> lib/ec2/host/config.rb,<br /> lib/ec2/host/version.rb,<br /> lib/ec2/host/host_data.rb,<br /> lib/ec2/host/role_data.rb,<br /> lib/ec2/host/hash_util.rb,<br /> lib/ec2/host/ec2_client.rb,<br /> lib/ec2/host/string_util.rb</span>
99
99
  </dd>
100
100
 
101
101
  </dl>
@@ -123,7 +123,7 @@
123
123
  </div>
124
124
 
125
125
  <div id="footer">
126
- Generated on Thu Nov 24 10:25:36 2016 by
126
+ Generated on Fri Dec 2 11:53:59 2016 by
127
127
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
128
128
  0.8.7.6 (ruby-2.3.2).
129
129
  </div>
data/docs/EC2/Host.html CHANGED
@@ -99,7 +99,7 @@
99
99
 
100
100
  <dt class="r1 last">Defined in:</dt>
101
101
  <dd class="r1 last">lib/ec2/host.rb<span class="defines">,<br />
102
- lib/ec2/host/cli.rb,<br /> lib/ec2/host/config.rb,<br /> lib/ec2/host/hash_util.rb,<br /> lib/ec2/host/host_data.rb,<br /> lib/ec2/host/role_data.rb,<br /> lib/ec2/host/ec2_client.rb,<br /> lib/ec2/host/string_util.rb</span>
102
+ lib/ec2/host/cli.rb,<br /> lib/ec2/host/config.rb,<br /> lib/ec2/host/version.rb,<br /> lib/ec2/host/host_data.rb,<br /> lib/ec2/host/role_data.rb,<br /> lib/ec2/host/hash_util.rb,<br /> lib/ec2/host/ec2_client.rb,<br /> lib/ec2/host/string_util.rb</span>
103
103
  </dd>
104
104
 
105
105
  </dl>
@@ -164,6 +164,18 @@ EC2::Host.me.hostname # =&gt; &#39;test&#39;</code></pre>
164
164
 
165
165
  </p>
166
166
 
167
+ <h2>Constant Summary</h2>
168
+
169
+ <dl class="constants">
170
+
171
+ <dt id="VERSION-constant" class="">VERSION =
172
+
173
+ </dt>
174
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>0.5.1</span><span class='tstring_end'>&#39;</span></span></pre></dd>
175
+
176
+ </dl>
177
+
178
+
167
179
 
168
180
 
169
181
 
@@ -880,7 +892,7 @@ options: {a: &#39;b&#39;}</code></pre>
880
892
  </div>
881
893
 
882
894
  <div id="footer">
883
- Generated on Thu Nov 24 10:25:36 2016 by
895
+ Generated on Fri Dec 2 11:53:59 2016 by
884
896
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
885
897
  0.8.7.6 (ruby-2.3.2).
886
898
  </div>
@@ -422,8 +422,7 @@
422
422
  97
423
423
  98
424
424
  99
425
- 100
426
- 101</pre>
425
+ 100</pre>
427
426
  </td>
428
427
  <td>
429
428
  <pre class="code"><span class="info file"># File 'lib/ec2/host/cli.rb', line 13</span>
@@ -449,15 +448,11 @@
449
448
  <span class='id identifier rubyid_op'>op</span><span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>-r</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'>--role one,two,three</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='const'>Array</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>role</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span>
450
449
  <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:role</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_v'>v</span>
451
450
  <span class='rbrace'>}</span>
452
- <span class='id identifier rubyid_op'>op</span><span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--r1</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'>--role1 one,two,three</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='const'>Array</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>role1, the 1st part of role delimited by </span><span class='embexpr_beg'>#{</span><span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_role_tag_delimiter'>role_tag_delimiter</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span>
453
- <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:role1</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_v'>v</span>
454
- <span class='rbrace'>}</span>
455
- <span class='id identifier rubyid_op'>op</span><span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--r2</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'>--role2 one,two,three</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='const'>Array</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>role2, the 2st part of role delimited by </span><span class='embexpr_beg'>#{</span><span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_role_tag_delimiter'>role_tag_delimiter</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span>
456
- <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:role2</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_v'>v</span>
457
- <span class='rbrace'>}</span>
458
- <span class='id identifier rubyid_op'>op</span><span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--r3</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'>--role3 one,two,three</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='const'>Array</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>role3, the 3st part of role delimited by </span><span class='embexpr_beg'>#{</span><span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_role_tag_delimiter'>role_tag_delimiter</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span>
459
- <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:role3</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_v'>v</span>
460
- <span class='rbrace'>}</span>
451
+ <span class='int'>1</span><span class='period'>.</span><span class='id identifier rubyid_upto'>upto</span><span class='lparen'>(</span><span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_role_max_depth'>role_max_depth</span><span class='rparen'>)</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_i'>i</span><span class='op'>|</span>
452
+ <span class='id identifier rubyid_op'>op</span><span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>--r</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_i'>i</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>--role</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_i'>i</span><span class='embexpr_end'>}</span><span class='tstring_content'> one,two,three</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='const'>Array</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>role</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_i'>i</span><span class='embexpr_end'>}</span><span class='tstring_content'>, </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_i'>i</span><span class='embexpr_end'>}</span><span class='tstring_content'>th part of role delimited by </span><span class='embexpr_beg'>#{</span><span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_role_tag_delimiter'>role_tag_delimiter</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span>
453
+ <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>role</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_i'>i</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_v'>v</span>
454
+ <span class='rbrace'>}</span>
455
+ <span class='kw'>end</span>
461
456
  <span class='id identifier rubyid_op'>op</span><span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>--instance-id one,two,three</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='const'>Array</span><span class='comma'>,</span> <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='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span>
462
457
  <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:instance_id</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_v'>v</span>
463
458
  <span class='rbrace'>}</span>
@@ -473,9 +468,12 @@
473
468
  <span class='rbrace'>}</span>
474
469
  <span class='kw'>end</span>
475
470
  <span class='id identifier rubyid_op'>op</span><span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>-a</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'>--all</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>list all hosts (remove default filter)</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span>
476
- <span class='lbracket'>[</span><span class='symbol'>:hostname</span><span class='comma'>,</span> <span class='symbol'>:role</span><span class='comma'>,</span> <span class='symbol'>:role1</span><span class='comma'>,</span> <span class='symbol'>:role2</span><span class='comma'>,</span> <span class='symbol'>:role3</span><span class='comma'>,</span> <span class='symbol'>:instance_id</span><span class='comma'>,</span> <span class='symbol'>:state</span><span class='comma'>,</span> <span class='symbol'>:monitoring</span><span class='rbracket'>]</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>
471
+ <span class='lbracket'>[</span><span class='symbol'>:hostname</span><span class='comma'>,</span> <span class='symbol'>:role</span><span class='comma'>,</span> <span class='symbol'>:instance_id</span><span class='comma'>,</span> <span class='symbol'>:state</span><span class='comma'>,</span> <span class='symbol'>:monitoring</span><span class='rbracket'>]</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>
477
472
  <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span>
478
473
  <span class='kw'>end</span>
474
+ <span class='int'>1</span><span class='period'>.</span><span class='id identifier rubyid_upto'>upto</span><span class='lparen'>(</span><span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_role_max_depth'>role_max_depth</span><span class='rparen'>)</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_i'>i</span><span class='op'>|</span>
475
+ <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>role</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_i'>i</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rparen'>)</span>
476
+ <span class='kw'>end</span>
479
477
  <span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_optional_options'>optional_options</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_opt'>opt</span><span class='comma'>,</span> <span class='id identifier rubyid_tag'>tag</span><span class='op'>|</span>
480
478
  <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_opt'>opt</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rparen'>)</span>
481
479
  <span class='kw'>end</span>
@@ -537,6 +535,7 @@
537
535
  <pre class="lines">
538
536
 
539
537
 
538
+ 102
540
539
  103
541
540
  104
542
541
  105
@@ -563,11 +562,10 @@
563
562
  126
564
563
  127
565
564
  128
566
- 129
567
- 130</pre>
565
+ 129</pre>
568
566
  </td>
569
567
  <td>
570
- <pre class="code"><span class="info file"># File 'lib/ec2/host/cli.rb', line 103</span>
568
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/cli.rb', line 102</span>
571
569
 
572
570
  <span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span>
573
571
  <span class='id identifier rubyid_hosts'>hosts</span> <span class='op'>=</span> <span class='const'>EC2</span><span class='op'>::</span><span class='const'>Host</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_condition'>condition</span><span class='rparen'>)</span>
@@ -607,7 +605,7 @@
607
605
  </div>
608
606
 
609
607
  <div id="footer">
610
- Generated on Thu Nov 24 10:25:36 2016 by
608
+ Generated on Fri Dec 2 11:53:59 2016 by
611
609
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
612
610
  0.8.7.6 (ruby-2.3.2).
613
611
  </div>
@@ -411,6 +411,50 @@
411
411
 
412
412
 
413
413
 
414
+ <span class="summary_desc"><div class='inline'></div></span>
415
+
416
+ </li>
417
+
418
+
419
+ <li class="public ">
420
+ <span class="summary_signature">
421
+
422
+ <a href="#aws_config-class_method" title="aws_config (class method)">+ (Object) <strong>aws_config</strong> </a>
423
+
424
+
425
+
426
+ </span>
427
+
428
+
429
+
430
+
431
+
432
+
433
+
434
+
435
+
436
+ <span class="summary_desc"><div class='inline'></div></span>
437
+
438
+ </li>
439
+
440
+
441
+ <li class="public ">
442
+ <span class="summary_signature">
443
+
444
+ <a href="#aws_config_file-class_method" title="aws_config_file (class method)">+ (Object) <strong>aws_config_file</strong> </a>
445
+
446
+
447
+
448
+ </span>
449
+
450
+
451
+
452
+
453
+
454
+
455
+
456
+
457
+
414
458
  <span class="summary_desc"><div class='inline'></div></span>
415
459
 
416
460
  </li>
@@ -523,6 +567,28 @@
523
567
 
524
568
 
525
569
 
570
+ <span class="summary_desc"><div class='inline'></div></span>
571
+
572
+ </li>
573
+
574
+
575
+ <li class="public ">
576
+ <span class="summary_signature">
577
+
578
+ <a href="#role_max_depth-class_method" title="role_max_depth (class method)">+ (Object) <strong>role_max_depth</strong> </a>
579
+
580
+
581
+
582
+ </span>
583
+
584
+
585
+
586
+
587
+
588
+
589
+
590
+
591
+
526
592
  <span class="summary_desc"><div class='inline'></div></span>
527
593
 
528
594
  </li>
@@ -574,13 +640,13 @@
574
640
  <pre class="lines">
575
641
 
576
642
 
577
- 43
578
- 44
579
643
  45
580
- 46</pre>
644
+ 46
645
+ 47
646
+ 48</pre>
581
647
  </td>
582
648
  <td>
583
- <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 43</span>
649
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 45</span>
584
650
 
585
651
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_aws_access_key_id'>aws_access_key_id</span>
586
652
  <span class='comment'># ref. aws cli and terraform
@@ -608,20 +674,22 @@
608
674
  <pre class="lines">
609
675
 
610
676
 
611
- 53
612
- 54
613
677
  55
614
678
  56
615
- 57</pre>
679
+ 57
680
+ 58
681
+ 59
682
+ 60</pre>
616
683
  </td>
617
684
  <td>
618
- <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 53</span>
685
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 55</span>
619
686
 
620
687
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_aws_credential_file'>aws_credential_file</span>
621
688
  <span class='ivar'>@aws_credential_file</span> <span class='op'>||=</span>
622
689
  <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>AWS_CREDENTIALS_FILE</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>AWS_CREDENTIALS_FILE</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span> <span class='op'>||</span>
623
- <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>AWS_CREDENTIAL_FILE</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>AWS_CREDENTIAL_FILE</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span> <span class='comment'># ref. aws cli (supported lately)
624
- </span><span class='kw'>end</span></pre>
690
+ <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>AWS_CREDENTIAL_FILE</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>AWS_CREDENTIAL_FILE</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='comment'># ref. aws cli (supported lately)
691
+ </span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>~/.aws/credentials</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
692
+ <span class='kw'>end</span></pre>
625
693
  </td>
626
694
  </tr>
627
695
  </table>
@@ -644,18 +712,18 @@
644
712
  <pre class="lines">
645
713
 
646
714
 
647
- 37
648
- 38
649
715
  39
650
716
  40
651
- 41</pre>
717
+ 41
718
+ 42
719
+ 43</pre>
652
720
  </td>
653
721
  <td>
654
- <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 37</span>
722
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 39</span>
655
723
 
656
724
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_aws_profile'>aws_profile</span>
657
725
  <span class='ivar'>@aws_profile</span> <span class='op'>||=</span>
658
- <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>AWS_PROFILE</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>AWS_PROFILE</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'>nil</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='op'>||</span> <span class='comment'># ref. old aws cli
726
+ <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>AWS_PROFILE</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>AWS_PROFILE</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='comment'># ref. old aws cli
659
727
  </span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>AWS_DEFAULT_PROFILE</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>AWS_DEFAULT_PROFILE</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'>default</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='comment'># ref. aws cli and terraform
660
728
  </span><span class='kw'>end</span></pre>
661
729
  </td>
@@ -680,20 +748,22 @@
680
748
  <pre class="lines">
681
749
 
682
750
 
683
- 31
684
751
  32
685
752
  33
686
753
  34
687
- 35</pre>
754
+ 35
755
+ 36
756
+ 37</pre>
688
757
  </td>
689
758
  <td>
690
- <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 31</span>
759
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 32</span>
691
760
 
692
761
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_aws_region'>aws_region</span>
693
762
  <span class='ivar'>@aws_region</span> <span class='op'>||=</span>
694
763
  <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>AWS_REGION</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>AWS_REGION</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='comment'># ref. old aws cli
695
- </span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>AWS_DEFAULT_REGION</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>AWS_DEFAULT_REGION</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='comment'># ref. aws cli and terraform
696
- </span><span class='kw'>end</span></pre>
764
+ </span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>AWS_DEFAULT_REGION</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>AWS_DEFAULT_REGION</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='comment'># ref. aws cli and terraform
765
+ </span> <span class='id identifier rubyid_aws_config'>aws_config</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>region</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_raise'>raise</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>AWS_REGION nor AWS_DEFAULT_REGION is not set</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
766
+ <span class='kw'>end</span></pre>
697
767
  </td>
698
768
  </tr>
699
769
  </table>
@@ -716,13 +786,13 @@
716
786
  <pre class="lines">
717
787
 
718
788
 
719
- 48
720
- 49
721
789
  50
722
- 51</pre>
790
+ 51
791
+ 52
792
+ 53</pre>
723
793
  </td>
724
794
  <td>
725
- <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 48</span>
795
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 50</span>
726
796
 
727
797
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_aws_secret_access_key'>aws_secret_access_key</span>
728
798
  <span class='comment'># ref. aws cli and terraform
@@ -750,15 +820,15 @@
750
820
  <pre class="lines">
751
821
 
752
822
 
753
- 27
754
823
  28
755
- 29</pre>
824
+ 29
825
+ 30</pre>
756
826
  </td>
757
827
  <td>
758
- <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 27</span>
828
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 28</span>
759
829
 
760
830
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_config_file'>config_file</span>
761
- <span class='ivar'>@config_file</span> <span class='op'>||=</span> <span class='const'>ENV</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>EC2_HOST_CONFIG_FILE</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'>/etc/sysconfig/ec2-host</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
831
+ <span class='ivar'>@config_file</span> <span class='op'>||=</span> <span class='const'>ENV</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>EC2_HOST_CONFIG_FILE</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/etc/sysconfig/ec2-host</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/etc/sysconfig/ec2-host</span><span class='tstring_end'>&#39;</span></span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/etc/default/ec2-host</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
762
832
  <span class='kw'>end</span></pre>
763
833
  </td>
764
834
  </tr>
@@ -782,12 +852,12 @@
782
852
  <pre class="lines">
783
853
 
784
854
 
785
- 63
786
- 64
787
- 65</pre>
855
+ 83
856
+ 84
857
+ 85</pre>
788
858
  </td>
789
859
  <td>
790
- <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 63</span>
860
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 83</span>
791
861
 
792
862
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_hostname_tag'>hostname_tag</span>
793
863
  <span class='ivar'>@hostname_tag</span> <span class='op'>||=</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>HOSTNAME_TAG</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>HOSTNAME_TAG</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'>Name</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
@@ -814,12 +884,12 @@
814
884
  <pre class="lines">
815
885
 
816
886
 
817
- 59
818
- 60
819
- 61</pre>
887
+ 79
888
+ 80
889
+ 81</pre>
820
890
  </td>
821
891
  <td>
822
- <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 59</span>
892
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 79</span>
823
893
 
824
894
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_log_level'>log_level</span>
825
895
  <span class='ivar'>@log_level</span> <span class='op'>||=</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>LOG_LEVEL</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>LOG_LEVEL</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'>info</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
@@ -846,12 +916,12 @@
846
916
  <pre class="lines">
847
917
 
848
918
 
849
- 71
850
- 72
851
- 73</pre>
919
+ 91
920
+ 92
921
+ 93</pre>
852
922
  </td>
853
923
  <td>
854
- <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 71</span>
924
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 91</span>
855
925
 
856
926
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_optional_array_tags'>optional_array_tags</span>
857
927
  <span class='ivar'>@optional_array_tags</span> <span class='op'>||=</span> <span class='lparen'>(</span><span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>OPTIONAL_ARRAY_TAGS</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>OPTIONAL_ARRAY_TAGS</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='rparen'>)</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>
@@ -878,12 +948,12 @@
878
948
  <pre class="lines">
879
949
 
880
950
 
881
- 75
882
- 76
883
- 77</pre>
951
+ 95
952
+ 96
953
+ 97</pre>
884
954
  </td>
885
955
  <td>
886
- <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 75</span>
956
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 95</span>
887
957
 
888
958
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_optional_string_tags'>optional_string_tags</span>
889
959
  <span class='ivar'>@optional_string_tags</span> <span class='op'>||=</span> <span class='lparen'>(</span><span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>OPTIONAL_STRING_TAGS</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>OPTIONAL_STRING_TAGS</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='rparen'>)</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>
@@ -910,12 +980,12 @@
910
980
  <pre class="lines">
911
981
 
912
982
 
913
- 67
914
- 68
915
- 69</pre>
983
+ 87
984
+ 88
985
+ 89</pre>
916
986
  </td>
917
987
  <td>
918
- <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 67</span>
988
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 87</span>
919
989
 
920
990
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_roles_tag'>roles_tag</span>
921
991
  <span class='ivar'>@roles_tag</span> <span class='op'>||=</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>ROLES_TAG</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>ROLES_TAG</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'>Roles</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
@@ -947,12 +1017,12 @@
947
1017
  <pre class="lines">
948
1018
 
949
1019
 
950
- 83
951
- 84
952
- 85</pre>
1020
+ 103
1021
+ 104
1022
+ 105</pre>
953
1023
  </td>
954
1024
  <td>
955
- <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 83</span>
1025
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 103</span>
956
1026
 
957
1027
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_array_tag_delimiter'>array_tag_delimiter</span>
958
1028
  <span class='ivar'>@array_tag_delimiter</span> <span class='op'>||=</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>ARRAY_TAG_DELIMITER</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>ARRAY_TAG_DELIMITER</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'>,</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
@@ -960,6 +1030,84 @@
960
1030
  </td>
961
1031
  </tr>
962
1032
  </table>
1033
+ </div>
1034
+
1035
+ <div class="method_details ">
1036
+ <h3 class="signature " id="aws_config-class_method">
1037
+
1038
+ + (<tt>Object</tt>) <strong>aws_config</strong>
1039
+
1040
+
1041
+
1042
+
1043
+
1044
+ </h3><table class="source_code">
1045
+ <tr>
1046
+ <td>
1047
+ <pre class="lines">
1048
+
1049
+
1050
+ 66
1051
+ 67
1052
+ 68
1053
+ 69
1054
+ 70
1055
+ 71
1056
+ 72
1057
+ 73
1058
+ 74
1059
+ 75
1060
+ 76
1061
+ 77</pre>
1062
+ </td>
1063
+ <td>
1064
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 66</span>
1065
+
1066
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_aws_config'>aws_config</span>
1067
+ <span class='kw'>return</span> <span class='ivar'>@aws_config</span> <span class='kw'>if</span> <span class='ivar'>@aws_config</span>
1068
+ <span class='kw'>if</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_readable?'>readable?</span><span class='lparen'>(</span><span class='id identifier rubyid_aws_config_file'>aws_config_file</span><span class='rparen'>)</span>
1069
+ <span class='id identifier rubyid_ini'>ini</span> <span class='op'>=</span> <span class='const'>IniFile</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span><span class='lparen'>(</span><span class='id identifier rubyid_aws_config_file'>aws_config_file</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span>
1070
+ <span class='kw'>if</span> <span class='id identifier rubyid_aws_profile'>aws_profile</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>default</span><span class='tstring_end'>&#39;</span></span>
1071
+ <span class='ivar'>@aws_config</span> <span class='op'>=</span> <span class='id identifier rubyid_ini'>ini</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>default</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span>
1072
+ <span class='kw'>else</span>
1073
+ <span class='ivar'>@aws_config</span> <span class='op'>=</span> <span class='id identifier rubyid_ini'>ini</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>profile </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_aws_profile'>aws_profile</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span>
1074
+ <span class='kw'>end</span>
1075
+ <span class='kw'>end</span>
1076
+ <span class='ivar'>@aws_config</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
1077
+ <span class='kw'>end</span></pre>
1078
+ </td>
1079
+ </tr>
1080
+ </table>
1081
+ </div>
1082
+
1083
+ <div class="method_details ">
1084
+ <h3 class="signature " id="aws_config_file-class_method">
1085
+
1086
+ + (<tt>Object</tt>) <strong>aws_config_file</strong>
1087
+
1088
+
1089
+
1090
+
1091
+
1092
+ </h3><table class="source_code">
1093
+ <tr>
1094
+ <td>
1095
+ <pre class="lines">
1096
+
1097
+
1098
+ 62
1099
+ 63
1100
+ 64</pre>
1101
+ </td>
1102
+ <td>
1103
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 62</span>
1104
+
1105
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_aws_config_file'>aws_config_file</span>
1106
+ <span class='ivar'>@aws_config_file</span> <span class='op'>||=</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>AWS_CONFIG_FILE</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>AWS_CONFIG_FILE</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>~/.aws/config</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
1107
+ <span class='kw'>end</span></pre>
1108
+ </td>
1109
+ </tr>
1110
+ </table>
963
1111
  </div>
964
1112
 
965
1113
  <div class="method_details ">
@@ -977,19 +1125,19 @@
977
1125
  <pre class="lines">
978
1126
 
979
1127
 
980
- 105
981
- 106
982
- 107
983
- 108
984
- 109
985
- 110
986
- 111
987
- 112
988
- 113
989
- 114</pre>
1128
+ 129
1129
+ 130
1130
+ 131
1131
+ 132
1132
+ 133
1133
+ 134
1134
+ 135
1135
+ 136
1136
+ 137
1137
+ 138</pre>
990
1138
  </td>
991
1139
  <td>
992
- <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 105</span>
1140
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 129</span>
993
1141
 
994
1142
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span>
995
1143
  <span class='kw'>return</span> <span class='ivar'>@config</span> <span class='kw'>if</span> <span class='ivar'>@config</span>
@@ -1021,14 +1169,14 @@
1021
1169
  <pre class="lines">
1022
1170
 
1023
1171
 
1024
- 21
1025
1172
  22
1026
1173
  23
1027
1174
  24
1028
- 25</pre>
1175
+ 25
1176
+ 26</pre>
1029
1177
  </td>
1030
1178
  <td>
1031
- <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 21</span>
1179
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 22</span>
1032
1180
 
1033
1181
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_configure'>configure</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
1034
1182
  <span class='id identifier rubyid_params'>params</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='comma'>,</span> <span class='id identifier rubyid_val'>val</span><span class='op'>|</span>
@@ -1066,14 +1214,14 @@
1066
1214
  <pre class="lines">
1067
1215
 
1068
1216
 
1069
- 89
1070
- 90
1071
- 91
1072
- 92
1073
- 93</pre>
1217
+ 113
1218
+ 114
1219
+ 115
1220
+ 116
1221
+ 117</pre>
1074
1222
  </td>
1075
1223
  <td>
1076
- <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 89</span>
1224
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 113</span>
1077
1225
 
1078
1226
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_optional_array_options'>optional_array_options</span>
1079
1227
  <span class='ivar'>@optional_array_options</span> <span class='op'>||=</span> <span class='const'>Hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_optional_array_tags'>optional_array_tags</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_tag'>tag</span><span class='op'>|</span>
@@ -1100,12 +1248,12 @@
1100
1248
  <pre class="lines">
1101
1249
 
1102
1250
 
1103
- 101
1104
- 102
1105
- 103</pre>
1251
+ 125
1252
+ 126
1253
+ 127</pre>
1106
1254
  </td>
1107
1255
  <td>
1108
- <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 101</span>
1256
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 125</span>
1109
1257
 
1110
1258
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_optional_options'>optional_options</span>
1111
1259
  <span class='ivar'>@optional_options</span> <span class='op'>||=</span> <span class='id identifier rubyid_optional_array_options'>optional_array_options</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_optional_string_options'>optional_string_options</span><span class='rparen'>)</span>
@@ -1130,14 +1278,14 @@
1130
1278
  <pre class="lines">
1131
1279
 
1132
1280
 
1133
- 95
1134
- 96
1135
- 97
1136
- 98
1137
- 99</pre>
1281
+ 119
1282
+ 120
1283
+ 121
1284
+ 122
1285
+ 123</pre>
1138
1286
  </td>
1139
1287
  <td>
1140
- <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 95</span>
1288
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 119</span>
1141
1289
 
1142
1290
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_optional_string_options'>optional_string_options</span>
1143
1291
  <span class='ivar'>@optional_string_options</span> <span class='op'>||=</span> <span class='const'>Hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_optional_string_tags'>optional_string_tags</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_tag'>tag</span><span class='op'>|</span>
@@ -1147,6 +1295,36 @@
1147
1295
  </td>
1148
1296
  </tr>
1149
1297
  </table>
1298
+ </div>
1299
+
1300
+ <div class="method_details ">
1301
+ <h3 class="signature " id="role_max_depth-class_method">
1302
+
1303
+ + (<tt>Object</tt>) <strong>role_max_depth</strong>
1304
+
1305
+
1306
+
1307
+
1308
+
1309
+ </h3><table class="source_code">
1310
+ <tr>
1311
+ <td>
1312
+ <pre class="lines">
1313
+
1314
+
1315
+ 107
1316
+ 108
1317
+ 109</pre>
1318
+ </td>
1319
+ <td>
1320
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 107</span>
1321
+
1322
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_role_max_depth'>role_max_depth</span>
1323
+ <span class='ivar'>@role_max_depth</span> <span class='op'>||=</span> <span class='const'>Integer</span><span class='lparen'>(</span><span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>ROLE_MAX_DEPTH</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>ROLE_MAX_DEPTH</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='int'>3</span><span class='rparen'>)</span><span class='rparen'>)</span>
1324
+ <span class='kw'>end</span></pre>
1325
+ </td>
1326
+ </tr>
1327
+ </table>
1150
1328
  </div>
1151
1329
 
1152
1330
  <div class="method_details ">
@@ -1164,12 +1342,12 @@
1164
1342
  <pre class="lines">
1165
1343
 
1166
1344
 
1167
- 79
1168
- 80
1169
- 81</pre>
1345
+ 99
1346
+ 100
1347
+ 101</pre>
1170
1348
  </td>
1171
1349
  <td>
1172
- <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 79</span>
1350
+ <pre class="code"><span class="info file"># File 'lib/ec2/host/config.rb', line 99</span>
1173
1351
 
1174
1352
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_role_tag_delimiter'>role_tag_delimiter</span>
1175
1353
  <span class='ivar'>@role_tag_delimiter</span> <span class='op'>||=</span> <span class='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>ROLE_TAG_DELIMITER</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>ROLE_TAG_DELIMITER</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'>:</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
@@ -1184,7 +1362,7 @@
1184
1362
  </div>
1185
1363
 
1186
1364
  <div id="footer">
1187
- Generated on Thu Nov 24 10:25:36 2016 by
1365
+ Generated on Fri Dec 2 11:53:59 2016 by
1188
1366
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1189
1367
  0.8.7.6 (ruby-2.3.2).
1190
1368
  </div>