gce-host 0.4.4 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,12 @@
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">
1
+ <!DOCTYPE html>
2
+ <html>
4
3
  <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>
7
7
  Class: GCE::Host::CLI
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.6
9
+ &mdash; Documentation by YARD 0.9.9
10
10
 
11
11
  </title>
12
12
 
@@ -15,9 +15,8 @@
15
15
  <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
16
 
17
17
  <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
18
+ pathId = "GCE::Host::CLI";
19
19
  relpath = '../../';
20
- framesUrl = "../../frames.html#!GCE/Host/CLI.html";
21
20
  </script>
22
21
 
23
22
 
@@ -28,51 +27,48 @@
28
27
 
29
28
  </head>
30
29
  <body>
31
- <div id="header">
32
- <div id="menu">
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
33
38
 
34
39
  <a href="../../_index.html">Index (C)</a> &raquo;
35
40
  <span class='title'><span class='object_link'><a href="../../GCE.html" title="GCE (class)">GCE</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Host.html" title="GCE::Host (class)">Host</a></span></span>
36
41
  &raquo;
37
42
  <span class="title">CLI</span>
38
43
 
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
44
  </div>
42
45
 
43
- <div id="search">
46
+ <div id="search">
44
47
 
45
48
  <a class="full_list_link" id="class_list_link"
46
49
  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
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
58
56
  </a>
59
57
 
60
58
  </div>
61
- <div class="clear"></div>
62
- </div>
59
+ <div class="clear"></div>
60
+ </div>
63
61
 
64
- <iframe id="search_frame"></iframe>
65
-
66
- <div id="content"><h1>Class: GCE::Host::CLI
62
+ <div id="content"><h1>Class: GCE::Host::CLI
67
63
 
68
64
 
69
65
 
70
66
  </h1>
71
-
72
- <dl class="box">
67
+ <div class="box_info">
73
68
 
74
- <dt class="r1">Inherits:</dt>
75
- <dd class="r1">
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
76
72
  <span class="inheritName">Object</span>
77
73
 
78
74
  <ul class="fullTree">
@@ -83,33 +79,37 @@
83
79
  </ul>
84
80
  <a href="#" class="inheritanceTree">show all</a>
85
81
 
86
- </dd>
87
-
82
+ </dd>
83
+ </dl>
84
+
85
+
88
86
 
89
87
 
90
-
91
88
 
92
-
93
89
 
94
90
 
91
+
92
+
93
+
95
94
 
96
- <dt class="r2 last">Defined in:</dt>
97
- <dd class="r2 last">lib/gce/host/cli.rb</dd>
95
+ <dl>
96
+ <dt>Defined in:</dt>
97
+ <dd>lib/gce/host/cli.rb</dd>
98
+ </dl>
98
99
 
99
- </dl>
100
- <div class="clear"></div>
100
+ </div>
101
101
 
102
102
 
103
103
 
104
104
 
105
105
 
106
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
106
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
107
107
  <ul class="summary">
108
108
 
109
109
  <li class="public ">
110
110
  <span class="summary_signature">
111
111
 
112
- <a href="#options-instance_method" title="#options (instance method)">- (Object) <strong>options</strong> </a>
112
+ <a href="#options-instance_method" title="#options (instance method)">#<strong>options</strong> &#x21d2; Object </a>
113
113
 
114
114
 
115
115
 
@@ -143,7 +143,7 @@
143
143
 
144
144
  <h2>
145
145
  Instance Method Summary
146
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
146
+ <small><a href="#" class="summary_toggle">collapse</a></small>
147
147
  </h2>
148
148
 
149
149
  <ul class="summary">
@@ -151,7 +151,7 @@
151
151
  <li class="public ">
152
152
  <span class="summary_signature">
153
153
 
154
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (CLI) <strong>initialize</strong>(argv = ARGV) </a>
154
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(argv = ARGV) &#x21d2; CLI </a>
155
155
 
156
156
 
157
157
 
@@ -177,7 +177,7 @@
177
177
  <li class="public ">
178
178
  <span class="summary_signature">
179
179
 
180
- <a href="#parse_options-instance_method" title="#parse_options (instance method)">- (Object) <strong>parse_options</strong>(argv = ARGV) </a>
180
+ <a href="#parse_options-instance_method" title="#parse_options (instance method)">#<strong>parse_options</strong>(argv = ARGV) &#x21d2; Object </a>
181
181
 
182
182
 
183
183
 
@@ -199,7 +199,7 @@
199
199
  <li class="public ">
200
200
  <span class="summary_signature">
201
201
 
202
- <a href="#run-instance_method" title="#run (instance method)">- (Object) <strong>run</strong> </a>
202
+ <a href="#run-instance_method" title="#run (instance method)">#<strong>run</strong> &#x21d2; Object </a>
203
203
 
204
204
 
205
205
 
@@ -227,7 +227,7 @@
227
227
  <div class="method_details first">
228
228
  <h3 class="signature first" id="initialize-instance_method">
229
229
 
230
- - (<tt><span class='object_link'><a href="" title="GCE::Host::CLI (class)">CLI</a></span></tt>) <strong>initialize</strong>(argv = ARGV)
230
+ #<strong>initialize</strong>(argv = ARGV) &#x21d2; <tt><span class='object_link'><a href="" title="GCE::Host::CLI (class)">CLI</a></span></tt>
231
231
 
232
232
 
233
233
 
@@ -275,7 +275,7 @@
275
275
  <div class="method_details first">
276
276
  <h3 class="signature first" id="options-instance_method">
277
277
 
278
- - (<tt>Object</tt>) <strong>options</strong> <span class="extras">(readonly)</span>
278
+ #<strong>options</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
279
279
 
280
280
 
281
281
 
@@ -323,7 +323,7 @@
323
323
  <div class="method_details first">
324
324
  <h3 class="signature first" id="parse_options-instance_method">
325
325
 
326
- - (<tt>Object</tt>) <strong>parse_options</strong>(argv = ARGV)
326
+ #<strong>parse_options</strong>(argv = ARGV) &#x21d2; <tt>Object</tt>
327
327
 
328
328
 
329
329
 
@@ -445,30 +445,30 @@
445
445
  <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>
446
446
  <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>
447
447
  <span class='rbrace'>}</span>
448
- <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>
449
- <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_value_delimiter'>role_value_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>
448
+ <span class='int'>1</span><span class='period'>.</span><span class='id identifier rubyid_upto'>upto</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="Config.html" title="GCE::Host::Config (class)">Config</a></span></span><span class='period'>.</span><span class='id identifier rubyid_role_max_depth'><span class='object_link'><a href="Config.html#role_max_depth-class_method" title="GCE::Host::Config.role_max_depth (method)">role_max_depth</a></span></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>
449
+ <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'><span class='object_link'><a href="Config.html" title="GCE::Host::Config (class)">Config</a></span></span><span class='period'>.</span><span class='id identifier rubyid_role_value_delimiter'><span class='object_link'><a href="Config.html#role_value_delimiter-class_method" title="GCE::Host::Config.role_value_delimiter (method)">role_value_delimiter</a></span></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>
450
450
  <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>
451
451
  <span class='rbrace'>}</span>
452
452
  <span class='kw'>end</span>
453
453
  <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>
454
454
  <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>
455
455
  <span class='rbrace'>}</span>
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'>&quot;</span><span class='tstring_content'>--</span><span class='embexpr_beg'>#{</span><span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_status'>status</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'>filter with instance </span><span class='embexpr_beg'>#{</span><span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_status'>status</span><span class='embexpr_end'>}</span><span class='tstring_content'> (default: running)</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>
457
- <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_status'>status</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_v'>v</span>
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'>&quot;</span><span class='tstring_content'>--</span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="Config.html" title="GCE::Host::Config (class)">Config</a></span></span><span class='period'>.</span><span class='id identifier rubyid_status'><span class='object_link'><a href="Config.html#status-class_method" title="GCE::Host::Config.status (method)">status</a></span></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'>filter with instance </span><span class='embexpr_beg'>#{</span><span class='const'><span class='object_link'><a href="Config.html" title="GCE::Host::Config (class)">Config</a></span></span><span class='period'>.</span><span class='id identifier rubyid_status'><span class='object_link'><a href="Config.html#status-class_method" title="GCE::Host::Config.status (method)">status</a></span></span><span class='embexpr_end'>}</span><span class='tstring_content'> (default: running)</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>
457
+ <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="Config.html" title="GCE::Host::Config (class)">Config</a></span></span><span class='period'>.</span><span class='id identifier rubyid_status'><span class='object_link'><a href="Config.html#status-class_method" title="GCE::Host::Config.status (method)">status</a></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>
458
458
  <span class='rbrace'>}</span>
459
- <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_keys'>keys</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_opt'>opt</span><span class='op'>|</span>
459
+ <span class='const'><span class='object_link'><a href="Config.html" title="GCE::Host::Config (class)">Config</a></span></span><span class='period'>.</span><span class='id identifier rubyid_optional_options'><span class='object_link'><a href="Config.html#optional_options-class_method" title="GCE::Host::Config.optional_options (method)">optional_options</a></span></span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_opt'>opt</span><span class='op'>|</span>
460
460
  <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'>--</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_opt'>opt</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_gsub'>gsub</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='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><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='id identifier rubyid_opt'>opt</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>
461
461
  <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</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='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_v'>v</span>
462
462
  <span class='rbrace'>}</span>
463
463
  <span class='kw'>end</span>
464
464
  <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>
465
- <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='const'>Config</span><span class='period'>.</span><span class='id identifier rubyid_status'>status</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rbracket'>]</span><span class='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>
465
+ <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='const'><span class='object_link'><a href="Config.html" title="GCE::Host::Config (class)">Config</a></span></span><span class='period'>.</span><span class='id identifier rubyid_status'><span class='object_link'><a href="Config.html#status-class_method" title="GCE::Host::Config.status (method)">status</a></span></span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</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>
466
466
  <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>
467
467
  <span class='kw'>end</span>
468
- <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>
468
+ <span class='int'>1</span><span class='period'>.</span><span class='id identifier rubyid_upto'>upto</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="Config.html" title="GCE::Host::Config (class)">Config</a></span></span><span class='period'>.</span><span class='id identifier rubyid_role_max_depth'><span class='object_link'><a href="Config.html#role_max_depth-class_method" title="GCE::Host::Config.role_max_depth (method)">role_max_depth</a></span></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>
469
469
  <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>
470
470
  <span class='kw'>end</span>
471
- <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_keys'>keys</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_opt'>opt</span><span class='op'>|</span>
471
+ <span class='const'><span class='object_link'><a href="Config.html" title="GCE::Host::Config (class)">Config</a></span></span><span class='period'>.</span><span class='id identifier rubyid_optional_options'><span class='object_link'><a href="Config.html#optional_options-class_method" title="GCE::Host::Config.optional_options (method)">optional_options</a></span></span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_opt'>opt</span><span class='op'>|</span>
472
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_opt'>opt</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rparen'>)</span>
473
473
  <span class='kw'>end</span>
474
474
  <span class='rbrace'>}</span>
@@ -517,7 +517,7 @@
517
517
  <div class="method_details ">
518
518
  <h3 class="signature " id="run-instance_method">
519
519
 
520
- - (<tt>Object</tt>) <strong>run</strong>
520
+ #<strong>run</strong> &#x21d2; <tt>Object</tt>
521
521
 
522
522
 
523
523
 
@@ -562,7 +562,7 @@
562
562
  <pre class="code"><span class="info file"># File 'lib/gce/host/cli.rb', line 99</span>
563
563
 
564
564
  <span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span>
565
- <span class='id identifier rubyid_hosts'>hosts</span> <span class='op'>=</span> <span class='const'>GCE</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>
565
+ <span class='id identifier rubyid_hosts'>hosts</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../../GCE.html" title="GCE (class)">GCE</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Host.html" title="GCE::Host (class)">Host</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="../Host.html#initialize-instance_method" title="GCE::Host#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_condition'>condition</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_sort_by'>sort_by</span> <span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_host'>host</span><span class='op'>|</span> <span class='id identifier rubyid_host'>host</span><span class='period'>.</span><span class='id identifier rubyid_hostname'>hostname</span> <span class='rbrace'>}</span>
566
566
  <span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:info</span><span class='rbracket'>]</span>
567
567
  <span class='id identifier rubyid_hosts'>hosts</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_host'>host</span><span class='op'>|</span>
568
568
  <span class='gvar'>$stdout</span><span class='period'>.</span><span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_host'>host</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span>
@@ -598,11 +598,12 @@
598
598
 
599
599
  </div>
600
600
 
601
- <div id="footer">
602
- Generated on Fri Dec 2 12:11:41 2016 by
601
+ <div id="footer">
602
+ Generated on Sat May 20 00:24:52 2017 by
603
603
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
604
- 0.8.7.6 (ruby-2.3.2).
604
+ 0.9.9 (ruby-2.4.1).
605
605
  </div>
606
606
 
607
+ </div>
607
608
  </body>
608
609
  </html>
@@ -1,12 +1,12 @@
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">
1
+ <!DOCTYPE html>
2
+ <html>
4
3
  <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>
7
7
  Class: GCE::Host::Config
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.6
9
+ &mdash; Documentation by YARD 0.9.9
10
10
 
11
11
  </title>
12
12
 
@@ -15,9 +15,8 @@
15
15
  <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
16
 
17
17
  <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
18
+ pathId = "GCE::Host::Config";
19
19
  relpath = '../../';
20
- framesUrl = "../../frames.html#!GCE/Host/Config.html";
21
20
  </script>
22
21
 
23
22
 
@@ -28,51 +27,48 @@
28
27
 
29
28
  </head>
30
29
  <body>
31
- <div id="header">
32
- <div id="menu">
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
33
38
 
34
39
  <a href="../../_index.html">Index (C)</a> &raquo;
35
40
  <span class='title'><span class='object_link'><a href="../../GCE.html" title="GCE (class)">GCE</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Host.html" title="GCE::Host (class)">Host</a></span></span>
36
41
  &raquo;
37
42
  <span class="title">Config</span>
38
43
 
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
44
  </div>
42
45
 
43
- <div id="search">
46
+ <div id="search">
44
47
 
45
48
  <a class="full_list_link" id="class_list_link"
46
49
  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
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
58
56
  </a>
59
57
 
60
58
  </div>
61
- <div class="clear"></div>
62
- </div>
63
-
64
- <iframe id="search_frame"></iframe>
59
+ <div class="clear"></div>
60
+ </div>
65
61
 
66
- <div id="content"><h1>Class: GCE::Host::Config
62
+ <div id="content"><h1>Class: GCE::Host::Config
67
63
 
68
64
 
69
65
 
70
66
  </h1>
71
-
72
- <dl class="box">
67
+ <div class="box_info">
73
68
 
74
- <dt class="r1">Inherits:</dt>
75
- <dd class="r1">
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
76
72
  <span class="inheritName">Object</span>
77
73
 
78
74
  <ul class="fullTree">
@@ -83,21 +79,25 @@
83
79
  </ul>
84
80
  <a href="#" class="inheritanceTree">show all</a>
85
81
 
86
- </dd>
87
-
82
+ </dd>
83
+ </dl>
84
+
85
+
88
86
 
89
87
 
90
-
91
88
 
92
-
93
89
 
94
90
 
91
+
92
+
93
+
95
94
 
96
- <dt class="r2 last">Defined in:</dt>
97
- <dd class="r2 last">lib/gce/host/config.rb</dd>
95
+ <dl>
96
+ <dt>Defined in:</dt>
97
+ <dd>lib/gce/host/config.rb</dd>
98
+ </dl>
98
99
 
99
- </dl>
100
- <div class="clear"></div>
100
+ </div>
101
101
 
102
102
 
103
103
 
@@ -109,7 +109,7 @@
109
109
 
110
110
  <h2>
111
111
  Class Method Summary
112
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
112
+ <small><a href="#" class="summary_toggle">collapse</a></small>
113
113
  </h2>
114
114
 
115
115
  <ul class="summary">
@@ -117,7 +117,7 @@
117
117
  <li class="public ">
118
118
  <span class="summary_signature">
119
119
 
120
- <a href="#array_value_delimiter-class_method" title="array_value_delimiter (class method)">+ (Object) <strong>array_value_delimiter</strong> </a>
120
+ <a href="#application_default_credentials_file-class_method" title="application_default_credentials_file (class method)">.<strong>application_default_credentials_file</strong> &#x21d2; Object </a>
121
121
 
122
122
 
123
123
 
@@ -139,7 +139,7 @@
139
139
  <li class="public ">
140
140
  <span class="summary_signature">
141
141
 
142
- <a href="#auth_method-class_method" title="auth_method (class method)">+ (Object) <strong>auth_method</strong> </a>
142
+ <a href="#array_value_delimiter-class_method" title="array_value_delimiter (class method)">.<strong>array_value_delimiter</strong> &#x21d2; Object </a>
143
143
 
144
144
 
145
145
 
@@ -161,7 +161,7 @@
161
161
  <li class="public ">
162
162
  <span class="summary_signature">
163
163
 
164
- <a href="#config-class_method" title="config (class method)">+ (Object) <strong>config</strong> </a>
164
+ <a href="#auth_method-class_method" title="auth_method (class method)">.<strong>auth_method</strong> &#x21d2; Object </a>
165
165
 
166
166
 
167
167
 
@@ -183,7 +183,7 @@
183
183
  <li class="public ">
184
184
  <span class="summary_signature">
185
185
 
186
- <a href="#config_default-class_method" title="config_default (class method)">+ (Object) <strong>config_default</strong> </a>
186
+ <a href="#config-class_method" title="config (class method)">.<strong>config</strong> &#x21d2; Object </a>
187
187
 
188
188
 
189
189
 
@@ -205,7 +205,7 @@
205
205
  <li class="public ">
206
206
  <span class="summary_signature">
207
207
 
208
- <a href="#config_default_file-class_method" title="config_default_file (class method)">+ (Object) <strong>config_default_file</strong> </a>
208
+ <a href="#config_default-class_method" title="config_default (class method)">.<strong>config_default</strong> &#x21d2; Object </a>
209
209
 
210
210
 
211
211
 
@@ -227,7 +227,7 @@
227
227
  <li class="public ">
228
228
  <span class="summary_signature">
229
229
 
230
- <a href="#config_file-class_method" title="config_file (class method)">+ (Object) <strong>config_file</strong> </a>
230
+ <a href="#config_default_file-class_method" title="config_default_file (class method)">.<strong>config_default_file</strong> &#x21d2; Object </a>
231
231
 
232
232
 
233
233
 
@@ -249,7 +249,7 @@
249
249
  <li class="public ">
250
250
  <span class="summary_signature">
251
251
 
252
- <a href="#configure-class_method" title="configure (class method)">+ (Object) <strong>configure</strong>(params) </a>
252
+ <a href="#config_file-class_method" title="config_file (class method)">.<strong>config_file</strong> &#x21d2; Object </a>
253
253
 
254
254
 
255
255
 
@@ -271,7 +271,7 @@
271
271
  <li class="public ">
272
272
  <span class="summary_signature">
273
273
 
274
- <a href="#credentials-class_method" title="credentials (class method)">+ (Object) <strong>credentials</strong> </a>
274
+ <a href="#configure-class_method" title="configure (class method)">.<strong>configure</strong>(params) &#x21d2; Object </a>
275
275
 
276
276
 
277
277
 
@@ -293,7 +293,7 @@
293
293
  <li class="public ">
294
294
  <span class="summary_signature">
295
295
 
296
- <a href="#credentials_file-class_method" title="credentials_file (class method)">+ (Object) <strong>credentials_file</strong> </a>
296
+ <a href="#credentials-class_method" title="credentials (class method)">.<strong>credentials</strong> &#x21d2; Object </a>
297
297
 
298
298
 
299
299
 
@@ -315,7 +315,7 @@
315
315
  <li class="public ">
316
316
  <span class="summary_signature">
317
317
 
318
- <a href="#credentials_file_default-class_method" title="credentials_file_default (class method)">+ (Object) <strong>credentials_file_default</strong> </a>
318
+ <a href="#credentials_file-class_method" title="credentials_file (class method)">.<strong>credentials_file</strong> &#x21d2; Object </a>
319
319
 
320
320
 
321
321
 
@@ -337,7 +337,7 @@
337
337
  <li class="public ">
338
338
  <span class="summary_signature">
339
339
 
340
- <a href="#log_level-class_method" title="log_level (class method)">+ (Object) <strong>log_level</strong> </a>
340
+ <a href="#global_application_default_credentials_file-class_method" title="global_application_default_credentials_file (class method)">.<strong>global_application_default_credentials_file</strong> &#x21d2; Object </a>
341
341
 
342
342
 
343
343
 
@@ -359,7 +359,7 @@
359
359
  <li class="public ">
360
360
  <span class="summary_signature">
361
361
 
362
- <a href="#open_timeout_sec-class_method" title="open_timeout_sec (class method)">+ (Object) <strong>open_timeout_sec</strong> </a>
362
+ <a href="#log_level-class_method" title="log_level (class method)">.<strong>log_level</strong> &#x21d2; Object </a>
363
363
 
364
364
 
365
365
 
@@ -381,7 +381,7 @@
381
381
  <li class="public ">
382
382
  <span class="summary_signature">
383
383
 
384
- <a href="#optional_array_keys-class_method" title="optional_array_keys (class method)">+ (Object) <strong>optional_array_keys</strong> </a>
384
+ <a href="#open_timeout_sec-class_method" title="open_timeout_sec (class method)">.<strong>open_timeout_sec</strong> &#x21d2; Object </a>
385
385
 
386
386
 
387
387
 
@@ -403,7 +403,29 @@
403
403
  <li class="public ">
404
404
  <span class="summary_signature">
405
405
 
406
- <a href="#optional_array_options-class_method" title="optional_array_options (class method)">+ (Object) <strong>optional_array_options</strong> </a>
406
+ <a href="#optional_array_keys-class_method" title="optional_array_keys (class method)">.<strong>optional_array_keys</strong> &#x21d2; Object </a>
407
+
408
+
409
+
410
+ </span>
411
+
412
+
413
+
414
+
415
+
416
+
417
+
418
+
419
+
420
+ <span class="summary_desc"><div class='inline'></div></span>
421
+
422
+ </li>
423
+
424
+
425
+ <li class="public ">
426
+ <span class="summary_signature">
427
+
428
+ <a href="#optional_array_options-class_method" title="optional_array_options (class method)">.<strong>optional_array_options</strong> &#x21d2; Object </a>
407
429
 
408
430
 
409
431
 
@@ -427,7 +449,7 @@
427
449
  <li class="public ">
428
450
  <span class="summary_signature">
429
451
 
430
- <a href="#optional_options-class_method" title="optional_options (class method)">+ (Object) <strong>optional_options</strong> </a>
452
+ <a href="#optional_options-class_method" title="optional_options (class method)">.<strong>optional_options</strong> &#x21d2; Object </a>
431
453
 
432
454
 
433
455
 
@@ -449,7 +471,7 @@
449
471
  <li class="public ">
450
472
  <span class="summary_signature">
451
473
 
452
- <a href="#optional_string_keys-class_method" title="optional_string_keys (class method)">+ (Object) <strong>optional_string_keys</strong> </a>
474
+ <a href="#optional_string_keys-class_method" title="optional_string_keys (class method)">.<strong>optional_string_keys</strong> &#x21d2; Object </a>
453
475
 
454
476
 
455
477
 
@@ -471,7 +493,7 @@
471
493
  <li class="public ">
472
494
  <span class="summary_signature">
473
495
 
474
- <a href="#optional_string_options-class_method" title="optional_string_options (class method)">+ (Object) <strong>optional_string_options</strong> </a>
496
+ <a href="#optional_string_options-class_method" title="optional_string_options (class method)">.<strong>optional_string_options</strong> &#x21d2; Object </a>
475
497
 
476
498
 
477
499
 
@@ -493,7 +515,7 @@
493
515
  <li class="public ">
494
516
  <span class="summary_signature">
495
517
 
496
- <a href="#project-class_method" title="project (class method)">+ (Object) <strong>project</strong> </a>
518
+ <a href="#project-class_method" title="project (class method)">.<strong>project</strong> &#x21d2; Object </a>
497
519
 
498
520
 
499
521
 
@@ -515,7 +537,7 @@
515
537
  <li class="public ">
516
538
  <span class="summary_signature">
517
539
 
518
- <a href="#project_default-class_method" title="project_default (class method)">+ (Object) <strong>project_default</strong> </a>
540
+ <a href="#project_default-class_method" title="project_default (class method)">.<strong>project_default</strong> &#x21d2; Object </a>
519
541
 
520
542
 
521
543
 
@@ -537,7 +559,7 @@
537
559
  <li class="public ">
538
560
  <span class="summary_signature">
539
561
 
540
- <a href="#retries-class_method" title="retries (class method)">+ (Object) <strong>retries</strong> </a>
562
+ <a href="#retries-class_method" title="retries (class method)">.<strong>retries</strong> &#x21d2; Object </a>
541
563
 
542
564
 
543
565
 
@@ -559,7 +581,7 @@
559
581
  <li class="public ">
560
582
  <span class="summary_signature">
561
583
 
562
- <a href="#role_max_depth-class_method" title="role_max_depth (class method)">+ (Object) <strong>role_max_depth</strong> </a>
584
+ <a href="#role_max_depth-class_method" title="role_max_depth (class method)">.<strong>role_max_depth</strong> &#x21d2; Object </a>
563
585
 
564
586
 
565
587
 
@@ -581,7 +603,7 @@
581
603
  <li class="public ">
582
604
  <span class="summary_signature">
583
605
 
584
- <a href="#role_value_delimiter-class_method" title="role_value_delimiter (class method)">+ (Object) <strong>role_value_delimiter</strong> </a>
606
+ <a href="#role_value_delimiter-class_method" title="role_value_delimiter (class method)">.<strong>role_value_delimiter</strong> &#x21d2; Object </a>
585
607
 
586
608
 
587
609
 
@@ -603,7 +625,7 @@
603
625
  <li class="public ">
604
626
  <span class="summary_signature">
605
627
 
606
- <a href="#roles_key-class_method" title="roles_key (class method)">+ (Object) <strong>roles_key</strong> </a>
628
+ <a href="#roles_key-class_method" title="roles_key (class method)">.<strong>roles_key</strong> &#x21d2; Object </a>
607
629
 
608
630
 
609
631
 
@@ -625,7 +647,7 @@
625
647
  <li class="public ">
626
648
  <span class="summary_signature">
627
649
 
628
- <a href="#status-class_method" title="status (class method)">+ (Object) <strong>status</strong> </a>
650
+ <a href="#status-class_method" title="status (class method)">.<strong>status</strong> &#x21d2; Object </a>
629
651
 
630
652
 
631
653
 
@@ -650,7 +672,7 @@ AWS usually, users do not need to care of this.</p>
650
672
  <li class="public ">
651
673
  <span class="summary_signature">
652
674
 
653
- <a href="#timeout_sec-class_method" title="timeout_sec (class method)">+ (Object) <strong>timeout_sec</strong> </a>
675
+ <a href="#timeout_sec-class_method" title="timeout_sec (class method)">.<strong>timeout_sec</strong> &#x21d2; Object </a>
654
676
 
655
677
 
656
678
 
@@ -679,9 +701,9 @@ AWS usually, users do not need to care of this.</p>
679
701
 
680
702
 
681
703
  <div class="method_details first">
682
- <h3 class="signature first" id="array_value_delimiter-class_method">
704
+ <h3 class="signature first" id="application_default_credentials_file-class_method">
683
705
 
684
- + (<tt>Object</tt>) <strong>array_value_delimiter</strong>
706
+ .<strong>application_default_credentials_file</strong> &#x21d2; <tt>Object</tt>
685
707
 
686
708
 
687
709
 
@@ -693,12 +715,42 @@ AWS usually, users do not need to care of this.</p>
693
715
  <pre class="lines">
694
716
 
695
717
 
696
- 88
697
- 89
698
- 90</pre>
718
+ 30
719
+ 31
720
+ 32</pre>
721
+ </td>
722
+ <td>
723
+ <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 30</span>
724
+
725
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_application_default_credentials_file'>application_default_credentials_file</span>
726
+ <span class='ivar'>@application_default_credentials_file</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'>&quot;</span><span class='tstring_content'>~/.config/gcloud/application_default_credentials.json</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
727
+ <span class='kw'>end</span></pre>
728
+ </td>
729
+ </tr>
730
+ </table>
731
+ </div>
732
+
733
+ <div class="method_details ">
734
+ <h3 class="signature " id="array_value_delimiter-class_method">
735
+
736
+ .<strong>array_value_delimiter</strong> &#x21d2; <tt>Object</tt>
737
+
738
+
739
+
740
+
741
+
742
+ </h3><table class="source_code">
743
+ <tr>
744
+ <td>
745
+ <pre class="lines">
746
+
747
+
748
+ 93
749
+ 94
750
+ 95</pre>
699
751
  </td>
700
752
  <td>
701
- <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 88</span>
753
+ <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 93</span>
702
754
 
703
755
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_array_value_delimiter'>array_value_delimiter</span>
704
756
  <span class='ivar'>@array_value_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_VALUE_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_VALUE_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>
@@ -711,7 +763,7 @@ AWS usually, users do not need to care of this.</p>
711
763
  <div class="method_details ">
712
764
  <h3 class="signature " id="auth_method-class_method">
713
765
 
714
- + (<tt>Object</tt>) <strong>auth_method</strong>
766
+ .<strong>auth_method</strong> &#x21d2; <tt>Object</tt>
715
767
 
716
768
 
717
769
 
@@ -741,7 +793,7 @@ AWS usually, users do not need to care of this.</p>
741
793
  <div class="method_details ">
742
794
  <h3 class="signature " id="config-class_method">
743
795
 
744
- + (<tt>Object</tt>) <strong>config</strong>
796
+ .<strong>config</strong> &#x21d2; <tt>Object</tt>
745
797
 
746
798
 
747
799
 
@@ -753,21 +805,21 @@ AWS usually, users do not need to care of this.</p>
753
805
  <pre class="lines">
754
806
 
755
807
 
756
- 120
757
- 121
758
- 122
759
- 123
760
- 124
761
808
  125
762
809
  126
763
810
  127
764
811
  128
765
812
  129
766
813
  130
767
- 131</pre>
814
+ 131
815
+ 132
816
+ 133
817
+ 134
818
+ 135
819
+ 136</pre>
768
820
  </td>
769
821
  <td>
770
- <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 120</span>
822
+ <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 125</span>
771
823
 
772
824
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_config'>config</span>
773
825
  <span class='kw'>return</span> <span class='ivar'>@config</span> <span class='kw'>if</span> <span class='ivar'>@config</span>
@@ -789,7 +841,7 @@ AWS usually, users do not need to care of this.</p>
789
841
  <div class="method_details ">
790
842
  <h3 class="signature " id="config_default-class_method">
791
843
 
792
- + (<tt>Object</tt>) <strong>config_default</strong>
844
+ .<strong>config_default</strong> &#x21d2; <tt>Object</tt>
793
845
 
794
846
 
795
847
 
@@ -801,13 +853,13 @@ AWS usually, users do not need to care of this.</p>
801
853
  <pre class="lines">
802
854
 
803
855
 
804
- 41
805
- 42
806
- 43
807
- 44</pre>
856
+ 46
857
+ 47
858
+ 48
859
+ 49</pre>
808
860
  </td>
809
861
  <td>
810
- <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 41</span>
862
+ <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 46</span>
811
863
 
812
864
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_config_default'>config_default</span>
813
865
  <span class='comment'># {&#39;core&#39;=&gt;{&#39;account&#39;=&gt;&#39;xxx&#39;,&#39;project&#39;=&gt;&#39;xxx&#39;},&#39;compute&#39;=&gt;{&#39;zone&#39;=&gt;&#39;xxx}}
@@ -821,7 +873,7 @@ AWS usually, users do not need to care of this.</p>
821
873
  <div class="method_details ">
822
874
  <h3 class="signature " id="config_default_file-class_method">
823
875
 
824
- + (<tt>Object</tt>) <strong>config_default_file</strong>
876
+ .<strong>config_default_file</strong> &#x21d2; <tt>Object</tt>
825
877
 
826
878
 
827
879
 
@@ -833,12 +885,12 @@ AWS usually, users do not need to care of this.</p>
833
885
  <pre class="lines">
834
886
 
835
887
 
836
- 37
837
- 38
838
- 39</pre>
888
+ 42
889
+ 43
890
+ 44</pre>
839
891
  </td>
840
892
  <td>
841
- <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 37</span>
893
+ <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 42</span>
842
894
 
843
895
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_config_default_file'>config_default_file</span>
844
896
  <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'>~/.config/gcloud/configurations/config_default</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
@@ -851,7 +903,7 @@ AWS usually, users do not need to care of this.</p>
851
903
  <div class="method_details ">
852
904
  <h3 class="signature " id="config_file-class_method">
853
905
 
854
- + (<tt>Object</tt>) <strong>config_file</strong>
906
+ .<strong>config_file</strong> &#x21d2; <tt>Object</tt>
855
907
 
856
908
 
857
909
 
@@ -881,7 +933,7 @@ AWS usually, users do not need to care of this.</p>
881
933
  <div class="method_details ">
882
934
  <h3 class="signature " id="configure-class_method">
883
935
 
884
- + (<tt>Object</tt>) <strong>configure</strong>(params)
936
+ .<strong>configure</strong>(params) &#x21d2; <tt>Object</tt>
885
937
 
886
938
 
887
939
 
@@ -915,7 +967,7 @@ AWS usually, users do not need to care of this.</p>
915
967
  <div class="method_details ">
916
968
  <h3 class="signature " id="credentials-class_method">
917
969
 
918
- + (<tt>Object</tt>) <strong>credentials</strong>
970
+ .<strong>credentials</strong> &#x21d2; <tt>Object</tt>
919
971
 
920
972
 
921
973
 
@@ -927,12 +979,12 @@ AWS usually, users do not need to care of this.</p>
927
979
  <pre class="lines">
928
980
 
929
981
 
930
- 33
931
- 34
932
- 35</pre>
982
+ 38
983
+ 39
984
+ 40</pre>
933
985
  </td>
934
986
  <td>
935
- <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 33</span>
987
+ <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 38</span>
936
988
 
937
989
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_credentials'>credentials</span>
938
990
  <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_credentials_file'>credentials_file</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='id identifier rubyid_credentials_file'>credentials_file</span><span class='rparen'>)</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
@@ -945,7 +997,7 @@ AWS usually, users do not need to care of this.</p>
945
997
  <div class="method_details ">
946
998
  <h3 class="signature " id="credentials_file-class_method">
947
999
 
948
- + (<tt>Object</tt>) <strong>credentials_file</strong>
1000
+ .<strong>credentials_file</strong> &#x21d2; <tt>Object</tt>
949
1001
 
950
1002
 
951
1003
 
@@ -960,14 +1012,16 @@ AWS usually, users do not need to care of this.</p>
960
1012
  24
961
1013
  25
962
1014
  26
963
- 27</pre>
1015
+ 27
1016
+ 28</pre>
964
1017
  </td>
965
1018
  <td>
966
1019
  <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 24</span>
967
1020
 
968
1021
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_credentials_file'>credentials_file</span>
969
1022
  <span class='comment'># ref. https://developers.google.com/identity/protocols/application-default-credentials
970
- </span> <span class='ivar'>@credentials_file</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='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>GOOGLE_APPLICATION_CREDENTIALS</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'>GOOGLE_APPLICATION_CREDENTIALS</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='id identifier rubyid_credentials_file_default'>credentials_file_default</span><span class='rparen'>)</span>
1023
+ </span> <span class='ivar'>@credentials_file</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='const'>ENV</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>GOOGLE_APPLICATION_CREDENTIALS</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'>GOOGLE_APPLICATION_CREDENTIALS</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>
1024
+ <span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span><span class='lparen'>(</span><span class='id identifier rubyid_global_application_default_credentials_file'>global_application_default_credentials_file</span><span class='rparen'>)</span> <span class='op'>?</span> <span class='id identifier rubyid_global_application_default_credentials_file'>global_application_default_credentials_file</span> <span class='op'>:</span> <span class='id identifier rubyid_application_default_credentials_file'>application_default_credentials_file</span><span class='rparen'>)</span><span class='rparen'>)</span>
971
1025
  <span class='kw'>end</span></pre>
972
1026
  </td>
973
1027
  </tr>
@@ -975,9 +1029,9 @@ AWS usually, users do not need to care of this.</p>
975
1029
  </div>
976
1030
 
977
1031
  <div class="method_details ">
978
- <h3 class="signature " id="credentials_file_default-class_method">
1032
+ <h3 class="signature " id="global_application_default_credentials_file-class_method">
979
1033
 
980
- + (<tt>Object</tt>) <strong>credentials_file_default</strong>
1034
+ .<strong>global_application_default_credentials_file</strong> &#x21d2; <tt>Object</tt>
981
1035
 
982
1036
 
983
1037
 
@@ -989,15 +1043,15 @@ AWS usually, users do not need to care of this.</p>
989
1043
  <pre class="lines">
990
1044
 
991
1045
 
992
- 29
993
- 30
994
- 31</pre>
1046
+ 34
1047
+ 35
1048
+ 36</pre>
995
1049
  </td>
996
1050
  <td>
997
- <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 29</span>
1051
+ <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 34</span>
998
1052
 
999
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_credentials_file_default'>credentials_file_default</span>
1000
- <span class='ivar'>@credentials_file_default</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'>&quot;</span><span class='tstring_content'>~/.config/gcloud/application_default_credentials.json</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
1053
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_global_application_default_credentials_file'>global_application_default_credentials_file</span>
1054
+ <span class='ivar'>@global_application_default_credentials_file</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/etc/google/auth/application_default_credentials.json</span><span class='tstring_end'>&#39;</span></span>
1001
1055
  <span class='kw'>end</span></pre>
1002
1056
  </td>
1003
1057
  </tr>
@@ -1007,7 +1061,7 @@ AWS usually, users do not need to care of this.</p>
1007
1061
  <div class="method_details ">
1008
1062
  <h3 class="signature " id="log_level-class_method">
1009
1063
 
1010
- + (<tt>Object</tt>) <strong>log_level</strong>
1064
+ .<strong>log_level</strong> &#x21d2; <tt>Object</tt>
1011
1065
 
1012
1066
 
1013
1067
 
@@ -1019,12 +1073,12 @@ AWS usually, users do not need to care of this.</p>
1019
1073
  <pre class="lines">
1020
1074
 
1021
1075
 
1022
- 56
1023
- 57
1024
- 58</pre>
1076
+ 61
1077
+ 62
1078
+ 63</pre>
1025
1079
  </td>
1026
1080
  <td>
1027
- <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 56</span>
1081
+ <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 61</span>
1028
1082
 
1029
1083
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_log_level'>log_level</span>
1030
1084
  <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>
@@ -1037,7 +1091,7 @@ AWS usually, users do not need to care of this.</p>
1037
1091
  <div class="method_details ">
1038
1092
  <h3 class="signature " id="open_timeout_sec-class_method">
1039
1093
 
1040
- + (<tt>Object</tt>) <strong>open_timeout_sec</strong>
1094
+ .<strong>open_timeout_sec</strong> &#x21d2; <tt>Object</tt>
1041
1095
 
1042
1096
 
1043
1097
 
@@ -1049,12 +1103,12 @@ AWS usually, users do not need to care of this.</p>
1049
1103
  <pre class="lines">
1050
1104
 
1051
1105
 
1052
- 68
1053
- 69
1054
- 70</pre>
1106
+ 73
1107
+ 74
1108
+ 75</pre>
1055
1109
  </td>
1056
1110
  <td>
1057
- <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 68</span>
1111
+ <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 73</span>
1058
1112
 
1059
1113
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_open_timeout_sec'>open_timeout_sec</span>
1060
1114
  <span class='ivar'>@open_timeout_sec</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'>OPEN_TIMEOUT_SEC</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'>OPEN_TIMEOUT_SEC</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='int'>300</span><span class='rparen'>)</span>
@@ -1067,7 +1121,7 @@ AWS usually, users do not need to care of this.</p>
1067
1121
  <div class="method_details ">
1068
1122
  <h3 class="signature " id="optional_array_keys-class_method">
1069
1123
 
1070
- + (<tt>Object</tt>) <strong>optional_array_keys</strong>
1124
+ .<strong>optional_array_keys</strong> &#x21d2; <tt>Object</tt>
1071
1125
 
1072
1126
 
1073
1127
 
@@ -1079,12 +1133,12 @@ AWS usually, users do not need to care of this.</p>
1079
1133
  <pre class="lines">
1080
1134
 
1081
1135
 
1082
- 76
1083
- 77
1084
- 78</pre>
1136
+ 81
1137
+ 82
1138
+ 83</pre>
1085
1139
  </td>
1086
1140
  <td>
1087
- <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 76</span>
1141
+ <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 81</span>
1088
1142
 
1089
1143
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_optional_array_keys'>optional_array_keys</span>
1090
1144
  <span class='ivar'>@optional_array_keys</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_KEYS</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_KEYS</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>
@@ -1097,7 +1151,7 @@ AWS usually, users do not need to care of this.</p>
1097
1151
  <div class="method_details ">
1098
1152
  <h3 class="signature " id="optional_array_options-class_method">
1099
1153
 
1100
- + (<tt>Object</tt>) <strong>optional_array_options</strong>
1154
+ .<strong>optional_array_options</strong> &#x21d2; <tt>Object</tt>
1101
1155
 
1102
1156
 
1103
1157
 
@@ -1120,18 +1174,18 @@ AWS usually, users do not need to care of this.</p>
1120
1174
  <pre class="lines">
1121
1175
 
1122
1176
 
1123
- 104
1124
- 105
1125
- 106
1126
- 107
1127
- 108</pre>
1177
+ 109
1178
+ 110
1179
+ 111
1180
+ 112
1181
+ 113</pre>
1128
1182
  </td>
1129
1183
  <td>
1130
- <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 104</span>
1184
+ <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 109</span>
1131
1185
 
1132
1186
  <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>
1133
1187
  <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_keys'>optional_array_keys</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_key'>key</span><span class='op'>|</span>
1134
- <span class='lbracket'>[</span><span class='const'>StringUtil</span><span class='period'>.</span><span class='id identifier rubyid_singularize'>singularize</span><span class='lparen'>(</span><span class='const'>StringUtil</span><span class='period'>.</span><span class='id identifier rubyid_underscore'>underscore</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span>
1188
+ <span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="StringUtil.html" title="GCE::Host::StringUtil (module)">StringUtil</a></span></span><span class='period'>.</span><span class='id identifier rubyid_singularize'><span class='object_link'><a href="StringUtil.html#singularize-class_method" title="GCE::Host::StringUtil.singularize (method)">singularize</a></span></span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="StringUtil.html" title="GCE::Host::StringUtil (module)">StringUtil</a></span></span><span class='period'>.</span><span class='id identifier rubyid_underscore'><span class='object_link'><a href="StringUtil.html#underscore-class_method" title="GCE::Host::StringUtil.underscore (method)">underscore</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span>
1135
1189
  <span class='rbrace'>}</span><span class='rbracket'>]</span>
1136
1190
  <span class='kw'>end</span></pre>
1137
1191
  </td>
@@ -1142,7 +1196,7 @@ AWS usually, users do not need to care of this.</p>
1142
1196
  <div class="method_details ">
1143
1197
  <h3 class="signature " id="optional_options-class_method">
1144
1198
 
1145
- + (<tt>Object</tt>) <strong>optional_options</strong>
1199
+ .<strong>optional_options</strong> &#x21d2; <tt>Object</tt>
1146
1200
 
1147
1201
 
1148
1202
 
@@ -1154,12 +1208,12 @@ AWS usually, users do not need to care of this.</p>
1154
1208
  <pre class="lines">
1155
1209
 
1156
1210
 
1157
- 116
1158
- 117
1159
- 118</pre>
1211
+ 121
1212
+ 122
1213
+ 123</pre>
1160
1214
  </td>
1161
1215
  <td>
1162
- <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 116</span>
1216
+ <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 121</span>
1163
1217
 
1164
1218
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_optional_options'>optional_options</span>
1165
1219
  <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>
@@ -1172,7 +1226,7 @@ AWS usually, users do not need to care of this.</p>
1172
1226
  <div class="method_details ">
1173
1227
  <h3 class="signature " id="optional_string_keys-class_method">
1174
1228
 
1175
- + (<tt>Object</tt>) <strong>optional_string_keys</strong>
1229
+ .<strong>optional_string_keys</strong> &#x21d2; <tt>Object</tt>
1176
1230
 
1177
1231
 
1178
1232
 
@@ -1184,12 +1238,12 @@ AWS usually, users do not need to care of this.</p>
1184
1238
  <pre class="lines">
1185
1239
 
1186
1240
 
1187
- 80
1188
- 81
1189
- 82</pre>
1241
+ 85
1242
+ 86
1243
+ 87</pre>
1190
1244
  </td>
1191
1245
  <td>
1192
- <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 80</span>
1246
+ <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 85</span>
1193
1247
 
1194
1248
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_optional_string_keys'>optional_string_keys</span>
1195
1249
  <span class='ivar'>@optional_string_keys</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_KEYS</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_KEYS</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>
@@ -1202,7 +1256,7 @@ AWS usually, users do not need to care of this.</p>
1202
1256
  <div class="method_details ">
1203
1257
  <h3 class="signature " id="optional_string_options-class_method">
1204
1258
 
1205
- + (<tt>Object</tt>) <strong>optional_string_options</strong>
1259
+ .<strong>optional_string_options</strong> &#x21d2; <tt>Object</tt>
1206
1260
 
1207
1261
 
1208
1262
 
@@ -1214,18 +1268,18 @@ AWS usually, users do not need to care of this.</p>
1214
1268
  <pre class="lines">
1215
1269
 
1216
1270
 
1217
- 110
1218
- 111
1219
- 112
1220
- 113
1221
- 114</pre>
1271
+ 115
1272
+ 116
1273
+ 117
1274
+ 118
1275
+ 119</pre>
1222
1276
  </td>
1223
1277
  <td>
1224
- <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 110</span>
1278
+ <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 115</span>
1225
1279
 
1226
1280
  <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>
1227
1281
  <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_keys'>optional_string_keys</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_key'>key</span><span class='op'>|</span>
1228
- <span class='lbracket'>[</span><span class='const'>StringUtil</span><span class='period'>.</span><span class='id identifier rubyid_underscore'>underscore</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span>
1282
+ <span class='lbracket'>[</span><span class='const'><span class='object_link'><a href="StringUtil.html" title="GCE::Host::StringUtil (module)">StringUtil</a></span></span><span class='period'>.</span><span class='id identifier rubyid_underscore'><span class='object_link'><a href="StringUtil.html#underscore-class_method" title="GCE::Host::StringUtil.underscore (method)">underscore</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span>
1229
1283
  <span class='rbrace'>}</span><span class='rbracket'>]</span>
1230
1284
  <span class='kw'>end</span></pre>
1231
1285
  </td>
@@ -1236,7 +1290,7 @@ AWS usually, users do not need to care of this.</p>
1236
1290
  <div class="method_details ">
1237
1291
  <h3 class="signature " id="project-class_method">
1238
1292
 
1239
- + (<tt>Object</tt>) <strong>project</strong>
1293
+ .<strong>project</strong> &#x21d2; <tt>Object</tt>
1240
1294
 
1241
1295
 
1242
1296
 
@@ -1248,14 +1302,14 @@ AWS usually, users do not need to care of this.</p>
1248
1302
  <pre class="lines">
1249
1303
 
1250
1304
 
1251
- 50
1252
- 51
1253
- 52
1254
- 53
1255
- 54</pre>
1305
+ 55
1306
+ 56
1307
+ 57
1308
+ 58
1309
+ 59</pre>
1256
1310
  </td>
1257
1311
  <td>
1258
- <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 50</span>
1312
+ <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 55</span>
1259
1313
 
1260
1314
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_project'>project</span>
1261
1315
  <span class='ivar'>@project</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'>GOOGLE_PROJECT</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'>GOOGLE_PROJECT</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='id identifier rubyid_credentials'>credentials</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>project_id</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span>
@@ -1270,7 +1324,7 @@ AWS usually, users do not need to care of this.</p>
1270
1324
  <div class="method_details ">
1271
1325
  <h3 class="signature " id="project_default-class_method">
1272
1326
 
1273
- + (<tt>Object</tt>) <strong>project_default</strong>
1327
+ .<strong>project_default</strong> &#x21d2; <tt>Object</tt>
1274
1328
 
1275
1329
 
1276
1330
 
@@ -1282,12 +1336,12 @@ AWS usually, users do not need to care of this.</p>
1282
1336
  <pre class="lines">
1283
1337
 
1284
1338
 
1285
- 46
1286
- 47
1287
- 48</pre>
1339
+ 51
1340
+ 52
1341
+ 53</pre>
1288
1342
  </td>
1289
1343
  <td>
1290
- <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 46</span>
1344
+ <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 51</span>
1291
1345
 
1292
1346
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_project_default'>project_default</span>
1293
1347
  <span class='lparen'>(</span><span class='id identifier rubyid_config_default'>config_default</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>core</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>project</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span>
@@ -1300,7 +1354,7 @@ AWS usually, users do not need to care of this.</p>
1300
1354
  <div class="method_details ">
1301
1355
  <h3 class="signature " id="retries-class_method">
1302
1356
 
1303
- + (<tt>Object</tt>) <strong>retries</strong>
1357
+ .<strong>retries</strong> &#x21d2; <tt>Object</tt>
1304
1358
 
1305
1359
 
1306
1360
 
@@ -1312,12 +1366,12 @@ AWS usually, users do not need to care of this.</p>
1312
1366
  <pre class="lines">
1313
1367
 
1314
1368
 
1315
- 60
1316
- 61
1317
- 62</pre>
1369
+ 65
1370
+ 66
1371
+ 67</pre>
1318
1372
  </td>
1319
1373
  <td>
1320
- <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 60</span>
1374
+ <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 65</span>
1321
1375
 
1322
1376
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_retries'>retries</span>
1323
1377
  <span class='ivar'>@retries</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'>RETRIES</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'>RETRIES</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='int'>5</span><span class='rparen'>)</span>
@@ -1330,7 +1384,7 @@ AWS usually, users do not need to care of this.</p>
1330
1384
  <div class="method_details ">
1331
1385
  <h3 class="signature " id="role_max_depth-class_method">
1332
1386
 
1333
- + (<tt>Object</tt>) <strong>role_max_depth</strong>
1387
+ .<strong>role_max_depth</strong> &#x21d2; <tt>Object</tt>
1334
1388
 
1335
1389
 
1336
1390
 
@@ -1342,12 +1396,12 @@ AWS usually, users do not need to care of this.</p>
1342
1396
  <pre class="lines">
1343
1397
 
1344
1398
 
1345
- 98
1346
- 99
1347
- 100</pre>
1399
+ 103
1400
+ 104
1401
+ 105</pre>
1348
1402
  </td>
1349
1403
  <td>
1350
- <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 98</span>
1404
+ <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 103</span>
1351
1405
 
1352
1406
  <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>
1353
1407
  <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>
@@ -1360,7 +1414,7 @@ AWS usually, users do not need to care of this.</p>
1360
1414
  <div class="method_details ">
1361
1415
  <h3 class="signature " id="role_value_delimiter-class_method">
1362
1416
 
1363
- + (<tt>Object</tt>) <strong>role_value_delimiter</strong>
1417
+ .<strong>role_value_delimiter</strong> &#x21d2; <tt>Object</tt>
1364
1418
 
1365
1419
 
1366
1420
 
@@ -1372,12 +1426,12 @@ AWS usually, users do not need to care of this.</p>
1372
1426
  <pre class="lines">
1373
1427
 
1374
1428
 
1375
- 84
1376
- 85
1377
- 86</pre>
1429
+ 89
1430
+ 90
1431
+ 91</pre>
1378
1432
  </td>
1379
1433
  <td>
1380
- <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 84</span>
1434
+ <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 89</span>
1381
1435
 
1382
1436
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_role_value_delimiter'>role_value_delimiter</span>
1383
1437
  <span class='ivar'>@role_value_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_VALUE_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_VALUE_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>
@@ -1390,7 +1444,7 @@ AWS usually, users do not need to care of this.</p>
1390
1444
  <div class="method_details ">
1391
1445
  <h3 class="signature " id="roles_key-class_method">
1392
1446
 
1393
- + (<tt>Object</tt>) <strong>roles_key</strong>
1447
+ .<strong>roles_key</strong> &#x21d2; <tt>Object</tt>
1394
1448
 
1395
1449
 
1396
1450
 
@@ -1402,12 +1456,12 @@ AWS usually, users do not need to care of this.</p>
1402
1456
  <pre class="lines">
1403
1457
 
1404
1458
 
1405
- 72
1406
- 73
1407
- 74</pre>
1459
+ 77
1460
+ 78
1461
+ 79</pre>
1408
1462
  </td>
1409
1463
  <td>
1410
- <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 72</span>
1464
+ <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 77</span>
1411
1465
 
1412
1466
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_roles_key'>roles_key</span>
1413
1467
  <span class='ivar'>@roles_key</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_KEY</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_KEY</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>
@@ -1420,7 +1474,7 @@ AWS usually, users do not need to care of this.</p>
1420
1474
  <div class="method_details ">
1421
1475
  <h3 class="signature " id="status-class_method">
1422
1476
 
1423
- + (<tt>Object</tt>) <strong>status</strong>
1477
+ .<strong>status</strong> &#x21d2; <tt>Object</tt>
1424
1478
 
1425
1479
 
1426
1480
 
@@ -1444,12 +1498,12 @@ AWS usually, users do not need to care of this</p>
1444
1498
  <pre class="lines">
1445
1499
 
1446
1500
 
1447
- 94
1448
- 95
1449
- 96</pre>
1501
+ 99
1502
+ 100
1503
+ 101</pre>
1450
1504
  </td>
1451
1505
  <td>
1452
- <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 94</span>
1506
+ <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 99</span>
1453
1507
 
1454
1508
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_status'>status</span>
1455
1509
  <span class='ivar'>@status</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'>STATUS</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'>STATUS</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'>status</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
@@ -1462,7 +1516,7 @@ AWS usually, users do not need to care of this</p>
1462
1516
  <div class="method_details ">
1463
1517
  <h3 class="signature " id="timeout_sec-class_method">
1464
1518
 
1465
- + (<tt>Object</tt>) <strong>timeout_sec</strong>
1519
+ .<strong>timeout_sec</strong> &#x21d2; <tt>Object</tt>
1466
1520
 
1467
1521
 
1468
1522
 
@@ -1474,12 +1528,12 @@ AWS usually, users do not need to care of this</p>
1474
1528
  <pre class="lines">
1475
1529
 
1476
1530
 
1477
- 64
1478
- 65
1479
- 66</pre>
1531
+ 69
1532
+ 70
1533
+ 71</pre>
1480
1534
  </td>
1481
1535
  <td>
1482
- <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 64</span>
1536
+ <pre class="code"><span class="info file"># File 'lib/gce/host/config.rb', line 69</span>
1483
1537
 
1484
1538
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_timeout_sec'>timeout_sec</span>
1485
1539
  <span class='ivar'>@timeout_sec</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'>TIMEOUT_SEC</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'>TIMEOUT_SEC</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='int'>300</span><span class='rparen'>)</span>
@@ -1493,11 +1547,12 @@ AWS usually, users do not need to care of this</p>
1493
1547
 
1494
1548
  </div>
1495
1549
 
1496
- <div id="footer">
1497
- Generated on Fri Dec 2 12:11:41 2016 by
1550
+ <div id="footer">
1551
+ Generated on Sat May 20 00:24:52 2017 by
1498
1552
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1499
- 0.8.7.6 (ruby-2.3.2).
1553
+ 0.9.9 (ruby-2.4.1).
1500
1554
  </div>
1501
1555
 
1556
+ </div>
1502
1557
  </body>
1503
1558
  </html>