elevage 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -1
- data/README.md +33 -11
- data/elevage.gemspec +15 -15
- data/features/archive +3 -22
- data/features/build.feature +2 -1
- data/features/generate.feature +3 -9
- data/features/health_env_failure.feature +2 -8
- data/features/health_failure.feature +1 -2
- data/features/health_success.feature +3 -9
- data/features/list.feature +3 -9
- data/features/step_definitions/elevage_steps.rb +2 -2
- data/lib/elevage/build.rb +4 -1
- data/lib/elevage/constants.rb +2 -2
- data/lib/elevage/environment.rb +66 -39
- data/lib/elevage/generate.rb +4 -3
- data/lib/elevage/health.rb +4 -0
- data/lib/elevage/new.rb +4 -2
- data/lib/elevage/platform.rb +11 -3
- data/lib/elevage/provisioner.rb +61 -21
- data/lib/elevage/provisionerrunqueue.rb +25 -10
- data/lib/elevage/templates/vcenter.yml.tt +7 -12
- data/lib/elevage/version.rb +1 -1
- data/lib/elevage.rb +5 -0
- metadata +58 -88
- data/.ruby-version +0 -1
- data/.yardoc/checksums +0 -12
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/.yardoc/proxy_types +0 -0
- data/doc/Elevage/Build.html +0 -435
- data/doc/Elevage/CLI.html +0 -282
- data/doc/Elevage/Environment.html +0 -950
- data/doc/Elevage/Generate.html +0 -346
- data/doc/Elevage/Health.html +0 -359
- data/doc/Elevage/New.html +0 -411
- data/doc/Elevage/Platform.html +0 -1119
- data/doc/Elevage/Provisioner.html +0 -804
- data/doc/Elevage/ProvisionerRunQueue.html +0 -765
- data/doc/Elevage/Runner.html +0 -319
- data/doc/Elevage.html +0 -501
- data/doc/_index.html +0 -239
- data/doc/class_list.html +0 -58
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -57
- data/doc/css/style.css +0 -339
- data/doc/file.README.html +0 -187
- data/doc/file_list.html +0 -60
- data/doc/frames.html +0 -26
- data/doc/index.html +0 -187
- data/doc/js/app.js +0 -219
- data/doc/js/full_list.js +0 -181
- data/doc/js/jquery.js +0 -4
- data/doc/method_list.html +0 -369
- data/doc/top-level-namespace.html +0 -112
data/doc/Elevage/Platform.html
DELETED
@@ -1,1119 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>
|
7
|
-
Class: Elevage::Platform
|
8
|
-
|
9
|
-
— Documentation by YARD 0.8.7.6
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
hasFrames = window.top.frames.main ? true : false;
|
19
|
-
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!Elevage/Platform.html";
|
21
|
-
</script>
|
22
|
-
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
25
|
-
|
26
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
27
|
-
|
28
|
-
|
29
|
-
</head>
|
30
|
-
<body>
|
31
|
-
<div id="header">
|
32
|
-
<div id="menu">
|
33
|
-
|
34
|
-
<a href="../_index.html">Index (P)</a> »
|
35
|
-
<span class='title'><span class='object_link'><a href="../Elevage.html" title="Elevage (module)">Elevage</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">Platform</span>
|
38
|
-
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
-
</div>
|
42
|
-
|
43
|
-
<div id="search">
|
44
|
-
|
45
|
-
<a class="full_list_link" id="class_list_link"
|
46
|
-
href="../class_list.html">
|
47
|
-
Class List
|
48
|
-
</a>
|
49
|
-
|
50
|
-
<a class="full_list_link" id="method_list_link"
|
51
|
-
href="../method_list.html">
|
52
|
-
Method List
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../file_list.html">
|
57
|
-
File List
|
58
|
-
</a>
|
59
|
-
|
60
|
-
</div>
|
61
|
-
<div class="clear"></div>
|
62
|
-
</div>
|
63
|
-
|
64
|
-
<iframe id="search_frame"></iframe>
|
65
|
-
|
66
|
-
<div id="content"><h1>Class: Elevage::Platform
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
73
|
-
|
74
|
-
<dt class="r1">Inherits:</dt>
|
75
|
-
<dd class="r1">
|
76
|
-
<span class="inheritName">Object</span>
|
77
|
-
|
78
|
-
<ul class="fullTree">
|
79
|
-
<li>Object</li>
|
80
|
-
|
81
|
-
<li class="next">Elevage::Platform</li>
|
82
|
-
|
83
|
-
</ul>
|
84
|
-
<a href="#" class="inheritanceTree">show all</a>
|
85
|
-
|
86
|
-
</dd>
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
<dt class="r2 last">Defined in:</dt>
|
97
|
-
<dd class="r2 last">lib/elevage/platform.rb</dd>
|
98
|
-
|
99
|
-
</dl>
|
100
|
-
<div class="clear"></div>
|
101
|
-
|
102
|
-
<h2>Overview</h2><div class="docstring">
|
103
|
-
<div class="discussion">
|
104
|
-
|
105
|
-
<p>Platform class</p>
|
106
|
-
|
107
|
-
|
108
|
-
</div>
|
109
|
-
</div>
|
110
|
-
<div class="tags">
|
111
|
-
|
112
|
-
|
113
|
-
</div>
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
118
|
-
<ul class="summary">
|
119
|
-
|
120
|
-
<li class="public ">
|
121
|
-
<span class="summary_signature">
|
122
|
-
|
123
|
-
<a href="#components-instance_method" title="#components (instance method)">- (Object) <strong>components</strong> </a>
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
</span>
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
<span class="summary_desc"><div class='inline'>
|
141
|
-
<p>Returns the value of attribute components.</p>
|
142
|
-
</div></span>
|
143
|
-
|
144
|
-
</li>
|
145
|
-
|
146
|
-
|
147
|
-
<li class="public ">
|
148
|
-
<span class="summary_signature">
|
149
|
-
|
150
|
-
<a href="#compute-instance_method" title="#compute (instance method)">- (Object) <strong>compute</strong> </a>
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
</span>
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
<span class="summary_desc"><div class='inline'>
|
168
|
-
<p>Returns the value of attribute compute.</p>
|
169
|
-
</div></span>
|
170
|
-
|
171
|
-
</li>
|
172
|
-
|
173
|
-
|
174
|
-
<li class="public ">
|
175
|
-
<span class="summary_signature">
|
176
|
-
|
177
|
-
<a href="#description-instance_method" title="#description (instance method)">- (Object) <strong>description</strong> </a>
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
</span>
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
<span class="summary_desc"><div class='inline'>
|
195
|
-
<p>Returns the value of attribute description.</p>
|
196
|
-
</div></span>
|
197
|
-
|
198
|
-
</li>
|
199
|
-
|
200
|
-
|
201
|
-
<li class="public ">
|
202
|
-
<span class="summary_signature">
|
203
|
-
|
204
|
-
<a href="#environments-instance_method" title="#environments (instance method)">- (Object) <strong>environments</strong> </a>
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
</span>
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
<span class="summary_desc"><div class='inline'>
|
222
|
-
<p>Returns the value of attribute environments.</p>
|
223
|
-
</div></span>
|
224
|
-
|
225
|
-
</li>
|
226
|
-
|
227
|
-
|
228
|
-
<li class="public ">
|
229
|
-
<span class="summary_signature">
|
230
|
-
|
231
|
-
<a href="#name-instance_method" title="#name (instance method)">- (Object) <strong>name</strong> </a>
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
</span>
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
<span class="summary_desc"><div class='inline'>
|
249
|
-
<p>Returns the value of attribute name.</p>
|
250
|
-
</div></span>
|
251
|
-
|
252
|
-
</li>
|
253
|
-
|
254
|
-
|
255
|
-
<li class="public ">
|
256
|
-
<span class="summary_signature">
|
257
|
-
|
258
|
-
<a href="#network-instance_method" title="#network (instance method)">- (Object) <strong>network</strong> </a>
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
</span>
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
<span class="summary_desc"><div class='inline'>
|
276
|
-
<p>Returns the value of attribute network.</p>
|
277
|
-
</div></span>
|
278
|
-
|
279
|
-
</li>
|
280
|
-
|
281
|
-
|
282
|
-
<li class="public ">
|
283
|
-
<span class="summary_signature">
|
284
|
-
|
285
|
-
<a href="#nodenameconvention-instance_method" title="#nodenameconvention (instance method)">- (Object) <strong>nodenameconvention</strong> </a>
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
</span>
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
<span class="summary_desc"><div class='inline'>
|
303
|
-
<p>Returns the value of attribute nodenameconvention.</p>
|
304
|
-
</div></span>
|
305
|
-
|
306
|
-
</li>
|
307
|
-
|
308
|
-
|
309
|
-
<li class="public ">
|
310
|
-
<span class="summary_signature">
|
311
|
-
|
312
|
-
<a href="#pools-instance_method" title="#pools (instance method)">- (Object) <strong>pools</strong> </a>
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
</span>
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
<span class="summary_desc"><div class='inline'>
|
330
|
-
<p>Returns the value of attribute pools.</p>
|
331
|
-
</div></span>
|
332
|
-
|
333
|
-
</li>
|
334
|
-
|
335
|
-
|
336
|
-
<li class="public ">
|
337
|
-
<span class="summary_signature">
|
338
|
-
|
339
|
-
<a href="#tiers-instance_method" title="#tiers (instance method)">- (Object) <strong>tiers</strong> </a>
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
</span>
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
<span class="summary_desc"><div class='inline'>
|
357
|
-
<p>Returns the value of attribute tiers.</p>
|
358
|
-
</div></span>
|
359
|
-
|
360
|
-
</li>
|
361
|
-
|
362
|
-
|
363
|
-
<li class="public ">
|
364
|
-
<span class="summary_signature">
|
365
|
-
|
366
|
-
<a href="#vcenter-instance_method" title="#vcenter (instance method)">- (Object) <strong>vcenter</strong> </a>
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
</span>
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
<span class="summary_desc"><div class='inline'>
|
384
|
-
<p>Returns the value of attribute vcenter.</p>
|
385
|
-
</div></span>
|
386
|
-
|
387
|
-
</li>
|
388
|
-
|
389
|
-
|
390
|
-
</ul>
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
<h2>
|
397
|
-
Instance Method Summary
|
398
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
399
|
-
</h2>
|
400
|
-
|
401
|
-
<ul class="summary">
|
402
|
-
|
403
|
-
<li class="public ">
|
404
|
-
<span class="summary_signature">
|
405
|
-
|
406
|
-
<a href="#healthy%3F-instance_method" title="#healthy? (instance method)">- (Boolean) <strong>healthy?</strong> </a>
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
</span>
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
<span class="summary_desc"><div class='inline'>
|
421
|
-
<p>rubocop:disable MethodLength, LineLength, CyclomaticComplexity,
|
422
|
-
PerceivedComplexity, AmbiguousOperator.</p>
|
423
|
-
</div></span>
|
424
|
-
|
425
|
-
</li>
|
426
|
-
|
427
|
-
|
428
|
-
<li class="public ">
|
429
|
-
<span class="summary_signature">
|
430
|
-
|
431
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Platform) <strong>initialize</strong> </a>
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
</span>
|
436
|
-
|
437
|
-
|
438
|
-
<span class="note title constructor">constructor</span>
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
<span class="summary_desc"><div class='inline'>
|
448
|
-
<p>rubocop:disable MethodLength.</p>
|
449
|
-
</div></span>
|
450
|
-
|
451
|
-
</li>
|
452
|
-
|
453
|
-
|
454
|
-
</ul>
|
455
|
-
|
456
|
-
|
457
|
-
<div id="constructor_details" class="method_details_list">
|
458
|
-
<h2>Constructor Details</h2>
|
459
|
-
|
460
|
-
<div class="method_details first">
|
461
|
-
<h3 class="signature first" id="initialize-instance_method">
|
462
|
-
|
463
|
-
- (<tt><span class='object_link'><a href="" title="Elevage::Platform (class)">Platform</a></span></tt>) <strong>initialize</strong>
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
</h3><div class="docstring">
|
470
|
-
<div class="discussion">
|
471
|
-
|
472
|
-
<p>rubocop:disable MethodLength</p>
|
473
|
-
|
474
|
-
|
475
|
-
</div>
|
476
|
-
</div>
|
477
|
-
<div class="tags">
|
478
|
-
|
479
|
-
|
480
|
-
</div><table class="source_code">
|
481
|
-
<tr>
|
482
|
-
<td>
|
483
|
-
<pre class="lines">
|
484
|
-
|
485
|
-
|
486
|
-
20
|
487
|
-
21
|
488
|
-
22
|
489
|
-
23
|
490
|
-
24
|
491
|
-
25
|
492
|
-
26
|
493
|
-
27
|
494
|
-
28
|
495
|
-
29
|
496
|
-
30
|
497
|
-
31
|
498
|
-
32
|
499
|
-
33</pre>
|
500
|
-
</td>
|
501
|
-
<td>
|
502
|
-
<pre class="code"><span class="info file"># File 'lib/elevage/platform.rb', line 20</span>
|
503
|
-
|
504
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
505
|
-
<span class='id identifier rubyid_fail'>fail</span> <span class='kw'>unless</span> <span class='id identifier rubyid_platform_files_exists?'>platform_files_exists?</span>
|
506
|
-
<span class='id identifier rubyid_platform'>platform</span> <span class='op'>=</span> <span class='const'>YAML</span><span class='period'>.</span><span class='id identifier rubyid_load_file'>load_file</span><span class='lparen'>(</span><span class='const'>YML_PLATFORM</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>platform</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
507
|
-
<span class='ivar'>@name</span> <span class='op'>=</span> <span class='id identifier rubyid_platform'>platform</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>name</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
508
|
-
<span class='ivar'>@description</span> <span class='op'>=</span> <span class='id identifier rubyid_platform'>platform</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>description</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
509
|
-
<span class='ivar'>@environments</span> <span class='op'>=</span> <span class='id identifier rubyid_platform'>platform</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>environments</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
510
|
-
<span class='ivar'>@tiers</span> <span class='op'>=</span> <span class='id identifier rubyid_platform'>platform</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>tiers</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
511
|
-
<span class='ivar'>@nodenameconvention</span> <span class='op'>=</span> <span class='id identifier rubyid_platform'>platform</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>nodenameconvention</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
512
|
-
<span class='ivar'>@pools</span> <span class='op'>=</span> <span class='id identifier rubyid_platform'>platform</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>pools</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
513
|
-
<span class='ivar'>@components</span> <span class='op'>=</span> <span class='id identifier rubyid_platform'>platform</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>components</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
514
|
-
<span class='ivar'>@vcenter</span> <span class='op'>=</span> <span class='const'>YAML</span><span class='period'>.</span><span class='id identifier rubyid_load_file'>load_file</span><span class='lparen'>(</span><span class='const'>YML_VCENTER</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>vcenter</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
515
|
-
<span class='ivar'>@network</span> <span class='op'>=</span> <span class='const'>YAML</span><span class='period'>.</span><span class='id identifier rubyid_load_file'>load_file</span><span class='lparen'>(</span><span class='const'>YML_NETWORK</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>network</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
516
|
-
<span class='ivar'>@compute</span> <span class='op'>=</span> <span class='const'>YAML</span><span class='period'>.</span><span class='id identifier rubyid_load_file'>load_file</span><span class='lparen'>(</span><span class='const'>YML_COMPUTE</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>compute</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
517
|
-
<span class='kw'>end</span></pre>
|
518
|
-
</td>
|
519
|
-
</tr>
|
520
|
-
</table>
|
521
|
-
</div>
|
522
|
-
|
523
|
-
</div>
|
524
|
-
|
525
|
-
<div id="instance_attr_details" class="attr_details">
|
526
|
-
<h2>Instance Attribute Details</h2>
|
527
|
-
|
528
|
-
|
529
|
-
<span id="components=-instance_method"></span>
|
530
|
-
<div class="method_details first">
|
531
|
-
<h3 class="signature first" id="components-instance_method">
|
532
|
-
|
533
|
-
- (<tt>Object</tt>) <strong>components</strong>
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
</h3><div class="docstring">
|
540
|
-
<div class="discussion">
|
541
|
-
|
542
|
-
<p>Returns the value of attribute components</p>
|
543
|
-
|
544
|
-
|
545
|
-
</div>
|
546
|
-
</div>
|
547
|
-
<div class="tags">
|
548
|
-
|
549
|
-
|
550
|
-
</div><table class="source_code">
|
551
|
-
<tr>
|
552
|
-
<td>
|
553
|
-
<pre class="lines">
|
554
|
-
|
555
|
-
|
556
|
-
14
|
557
|
-
15
|
558
|
-
16</pre>
|
559
|
-
</td>
|
560
|
-
<td>
|
561
|
-
<pre class="code"><span class="info file"># File 'lib/elevage/platform.rb', line 14</span>
|
562
|
-
|
563
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_components'>components</span>
|
564
|
-
<span class='ivar'>@components</span>
|
565
|
-
<span class='kw'>end</span></pre>
|
566
|
-
</td>
|
567
|
-
</tr>
|
568
|
-
</table>
|
569
|
-
</div>
|
570
|
-
|
571
|
-
|
572
|
-
<span id="compute=-instance_method"></span>
|
573
|
-
<div class="method_details ">
|
574
|
-
<h3 class="signature " id="compute-instance_method">
|
575
|
-
|
576
|
-
- (<tt>Object</tt>) <strong>compute</strong>
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
</h3><div class="docstring">
|
583
|
-
<div class="discussion">
|
584
|
-
|
585
|
-
<p>Returns the value of attribute compute</p>
|
586
|
-
|
587
|
-
|
588
|
-
</div>
|
589
|
-
</div>
|
590
|
-
<div class="tags">
|
591
|
-
|
592
|
-
|
593
|
-
</div><table class="source_code">
|
594
|
-
<tr>
|
595
|
-
<td>
|
596
|
-
<pre class="lines">
|
597
|
-
|
598
|
-
|
599
|
-
17
|
600
|
-
18
|
601
|
-
19</pre>
|
602
|
-
</td>
|
603
|
-
<td>
|
604
|
-
<pre class="code"><span class="info file"># File 'lib/elevage/platform.rb', line 17</span>
|
605
|
-
|
606
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_compute'>compute</span>
|
607
|
-
<span class='ivar'>@compute</span>
|
608
|
-
<span class='kw'>end</span></pre>
|
609
|
-
</td>
|
610
|
-
</tr>
|
611
|
-
</table>
|
612
|
-
</div>
|
613
|
-
|
614
|
-
|
615
|
-
<span id="description=-instance_method"></span>
|
616
|
-
<div class="method_details ">
|
617
|
-
<h3 class="signature " id="description-instance_method">
|
618
|
-
|
619
|
-
- (<tt>Object</tt>) <strong>description</strong>
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
</h3><div class="docstring">
|
626
|
-
<div class="discussion">
|
627
|
-
|
628
|
-
<p>Returns the value of attribute description</p>
|
629
|
-
|
630
|
-
|
631
|
-
</div>
|
632
|
-
</div>
|
633
|
-
<div class="tags">
|
634
|
-
|
635
|
-
|
636
|
-
</div><table class="source_code">
|
637
|
-
<tr>
|
638
|
-
<td>
|
639
|
-
<pre class="lines">
|
640
|
-
|
641
|
-
|
642
|
-
9
|
643
|
-
10
|
644
|
-
11</pre>
|
645
|
-
</td>
|
646
|
-
<td>
|
647
|
-
<pre class="code"><span class="info file"># File 'lib/elevage/platform.rb', line 9</span>
|
648
|
-
|
649
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_description'>description</span>
|
650
|
-
<span class='ivar'>@description</span>
|
651
|
-
<span class='kw'>end</span></pre>
|
652
|
-
</td>
|
653
|
-
</tr>
|
654
|
-
</table>
|
655
|
-
</div>
|
656
|
-
|
657
|
-
|
658
|
-
<span id="environments=-instance_method"></span>
|
659
|
-
<div class="method_details ">
|
660
|
-
<h3 class="signature " id="environments-instance_method">
|
661
|
-
|
662
|
-
- (<tt>Object</tt>) <strong>environments</strong>
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
</h3><div class="docstring">
|
669
|
-
<div class="discussion">
|
670
|
-
|
671
|
-
<p>Returns the value of attribute environments</p>
|
672
|
-
|
673
|
-
|
674
|
-
</div>
|
675
|
-
</div>
|
676
|
-
<div class="tags">
|
677
|
-
|
678
|
-
|
679
|
-
</div><table class="source_code">
|
680
|
-
<tr>
|
681
|
-
<td>
|
682
|
-
<pre class="lines">
|
683
|
-
|
684
|
-
|
685
|
-
10
|
686
|
-
11
|
687
|
-
12</pre>
|
688
|
-
</td>
|
689
|
-
<td>
|
690
|
-
<pre class="code"><span class="info file"># File 'lib/elevage/platform.rb', line 10</span>
|
691
|
-
|
692
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_environments'>environments</span>
|
693
|
-
<span class='ivar'>@environments</span>
|
694
|
-
<span class='kw'>end</span></pre>
|
695
|
-
</td>
|
696
|
-
</tr>
|
697
|
-
</table>
|
698
|
-
</div>
|
699
|
-
|
700
|
-
|
701
|
-
<span id="name=-instance_method"></span>
|
702
|
-
<div class="method_details ">
|
703
|
-
<h3 class="signature " id="name-instance_method">
|
704
|
-
|
705
|
-
- (<tt>Object</tt>) <strong>name</strong>
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
</h3><div class="docstring">
|
712
|
-
<div class="discussion">
|
713
|
-
|
714
|
-
<p>Returns the value of attribute name</p>
|
715
|
-
|
716
|
-
|
717
|
-
</div>
|
718
|
-
</div>
|
719
|
-
<div class="tags">
|
720
|
-
|
721
|
-
|
722
|
-
</div><table class="source_code">
|
723
|
-
<tr>
|
724
|
-
<td>
|
725
|
-
<pre class="lines">
|
726
|
-
|
727
|
-
|
728
|
-
9
|
729
|
-
10
|
730
|
-
11</pre>
|
731
|
-
</td>
|
732
|
-
<td>
|
733
|
-
<pre class="code"><span class="info file"># File 'lib/elevage/platform.rb', line 9</span>
|
734
|
-
|
735
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
|
736
|
-
<span class='ivar'>@name</span>
|
737
|
-
<span class='kw'>end</span></pre>
|
738
|
-
</td>
|
739
|
-
</tr>
|
740
|
-
</table>
|
741
|
-
</div>
|
742
|
-
|
743
|
-
|
744
|
-
<span id="network=-instance_method"></span>
|
745
|
-
<div class="method_details ">
|
746
|
-
<h3 class="signature " id="network-instance_method">
|
747
|
-
|
748
|
-
- (<tt>Object</tt>) <strong>network</strong>
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
</h3><div class="docstring">
|
755
|
-
<div class="discussion">
|
756
|
-
|
757
|
-
<p>Returns the value of attribute network</p>
|
758
|
-
|
759
|
-
|
760
|
-
</div>
|
761
|
-
</div>
|
762
|
-
<div class="tags">
|
763
|
-
|
764
|
-
|
765
|
-
</div><table class="source_code">
|
766
|
-
<tr>
|
767
|
-
<td>
|
768
|
-
<pre class="lines">
|
769
|
-
|
770
|
-
|
771
|
-
16
|
772
|
-
17
|
773
|
-
18</pre>
|
774
|
-
</td>
|
775
|
-
<td>
|
776
|
-
<pre class="code"><span class="info file"># File 'lib/elevage/platform.rb', line 16</span>
|
777
|
-
|
778
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_network'>network</span>
|
779
|
-
<span class='ivar'>@network</span>
|
780
|
-
<span class='kw'>end</span></pre>
|
781
|
-
</td>
|
782
|
-
</tr>
|
783
|
-
</table>
|
784
|
-
</div>
|
785
|
-
|
786
|
-
|
787
|
-
<span id="nodenameconvention=-instance_method"></span>
|
788
|
-
<div class="method_details ">
|
789
|
-
<h3 class="signature " id="nodenameconvention-instance_method">
|
790
|
-
|
791
|
-
- (<tt>Object</tt>) <strong>nodenameconvention</strong>
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
|
796
|
-
|
797
|
-
</h3><div class="docstring">
|
798
|
-
<div class="discussion">
|
799
|
-
|
800
|
-
<p>Returns the value of attribute nodenameconvention</p>
|
801
|
-
|
802
|
-
|
803
|
-
</div>
|
804
|
-
</div>
|
805
|
-
<div class="tags">
|
806
|
-
|
807
|
-
|
808
|
-
</div><table class="source_code">
|
809
|
-
<tr>
|
810
|
-
<td>
|
811
|
-
<pre class="lines">
|
812
|
-
|
813
|
-
|
814
|
-
12
|
815
|
-
13
|
816
|
-
14</pre>
|
817
|
-
</td>
|
818
|
-
<td>
|
819
|
-
<pre class="code"><span class="info file"># File 'lib/elevage/platform.rb', line 12</span>
|
820
|
-
|
821
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_nodenameconvention'>nodenameconvention</span>
|
822
|
-
<span class='ivar'>@nodenameconvention</span>
|
823
|
-
<span class='kw'>end</span></pre>
|
824
|
-
</td>
|
825
|
-
</tr>
|
826
|
-
</table>
|
827
|
-
</div>
|
828
|
-
|
829
|
-
|
830
|
-
<span id="pools=-instance_method"></span>
|
831
|
-
<div class="method_details ">
|
832
|
-
<h3 class="signature " id="pools-instance_method">
|
833
|
-
|
834
|
-
- (<tt>Object</tt>) <strong>pools</strong>
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
|
840
|
-
</h3><div class="docstring">
|
841
|
-
<div class="discussion">
|
842
|
-
|
843
|
-
<p>Returns the value of attribute pools</p>
|
844
|
-
|
845
|
-
|
846
|
-
</div>
|
847
|
-
</div>
|
848
|
-
<div class="tags">
|
849
|
-
|
850
|
-
|
851
|
-
</div><table class="source_code">
|
852
|
-
<tr>
|
853
|
-
<td>
|
854
|
-
<pre class="lines">
|
855
|
-
|
856
|
-
|
857
|
-
13
|
858
|
-
14
|
859
|
-
15</pre>
|
860
|
-
</td>
|
861
|
-
<td>
|
862
|
-
<pre class="code"><span class="info file"># File 'lib/elevage/platform.rb', line 13</span>
|
863
|
-
|
864
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_pools'>pools</span>
|
865
|
-
<span class='ivar'>@pools</span>
|
866
|
-
<span class='kw'>end</span></pre>
|
867
|
-
</td>
|
868
|
-
</tr>
|
869
|
-
</table>
|
870
|
-
</div>
|
871
|
-
|
872
|
-
|
873
|
-
<span id="tiers=-instance_method"></span>
|
874
|
-
<div class="method_details ">
|
875
|
-
<h3 class="signature " id="tiers-instance_method">
|
876
|
-
|
877
|
-
- (<tt>Object</tt>) <strong>tiers</strong>
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
</h3><div class="docstring">
|
884
|
-
<div class="discussion">
|
885
|
-
|
886
|
-
<p>Returns the value of attribute tiers</p>
|
887
|
-
|
888
|
-
|
889
|
-
</div>
|
890
|
-
</div>
|
891
|
-
<div class="tags">
|
892
|
-
|
893
|
-
|
894
|
-
</div><table class="source_code">
|
895
|
-
<tr>
|
896
|
-
<td>
|
897
|
-
<pre class="lines">
|
898
|
-
|
899
|
-
|
900
|
-
11
|
901
|
-
12
|
902
|
-
13</pre>
|
903
|
-
</td>
|
904
|
-
<td>
|
905
|
-
<pre class="code"><span class="info file"># File 'lib/elevage/platform.rb', line 11</span>
|
906
|
-
|
907
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_tiers'>tiers</span>
|
908
|
-
<span class='ivar'>@tiers</span>
|
909
|
-
<span class='kw'>end</span></pre>
|
910
|
-
</td>
|
911
|
-
</tr>
|
912
|
-
</table>
|
913
|
-
</div>
|
914
|
-
|
915
|
-
|
916
|
-
<span id="vcenter=-instance_method"></span>
|
917
|
-
<div class="method_details ">
|
918
|
-
<h3 class="signature " id="vcenter-instance_method">
|
919
|
-
|
920
|
-
- (<tt>Object</tt>) <strong>vcenter</strong>
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
</h3><div class="docstring">
|
927
|
-
<div class="discussion">
|
928
|
-
|
929
|
-
<p>Returns the value of attribute vcenter</p>
|
930
|
-
|
931
|
-
|
932
|
-
</div>
|
933
|
-
</div>
|
934
|
-
<div class="tags">
|
935
|
-
|
936
|
-
|
937
|
-
</div><table class="source_code">
|
938
|
-
<tr>
|
939
|
-
<td>
|
940
|
-
<pre class="lines">
|
941
|
-
|
942
|
-
|
943
|
-
15
|
944
|
-
16
|
945
|
-
17</pre>
|
946
|
-
</td>
|
947
|
-
<td>
|
948
|
-
<pre class="code"><span class="info file"># File 'lib/elevage/platform.rb', line 15</span>
|
949
|
-
|
950
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_vcenter'>vcenter</span>
|
951
|
-
<span class='ivar'>@vcenter</span>
|
952
|
-
<span class='kw'>end</span></pre>
|
953
|
-
</td>
|
954
|
-
</tr>
|
955
|
-
</table>
|
956
|
-
</div>
|
957
|
-
|
958
|
-
</div>
|
959
|
-
|
960
|
-
|
961
|
-
<div id="instance_method_details" class="method_details_list">
|
962
|
-
<h2>Instance Method Details</h2>
|
963
|
-
|
964
|
-
|
965
|
-
<div class="method_details first">
|
966
|
-
<h3 class="signature first" id="healthy?-instance_method">
|
967
|
-
|
968
|
-
- (<tt>Boolean</tt>) <strong>healthy?</strong>
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
</h3><div class="docstring">
|
975
|
-
<div class="discussion">
|
976
|
-
|
977
|
-
<p>rubocop:disable MethodLength, LineLength, CyclomaticComplexity,
|
978
|
-
PerceivedComplexity, AmbiguousOperator</p>
|
979
|
-
|
980
|
-
|
981
|
-
</div>
|
982
|
-
</div>
|
983
|
-
<div class="tags">
|
984
|
-
|
985
|
-
<p class="tag_title">Returns:</p>
|
986
|
-
<ul class="return">
|
987
|
-
|
988
|
-
<li>
|
989
|
-
|
990
|
-
|
991
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
</li>
|
996
|
-
|
997
|
-
</ul>
|
998
|
-
|
999
|
-
</div><table class="source_code">
|
1000
|
-
<tr>
|
1001
|
-
<td>
|
1002
|
-
<pre class="lines">
|
1003
|
-
|
1004
|
-
|
1005
|
-
37
|
1006
|
-
38
|
1007
|
-
39
|
1008
|
-
40
|
1009
|
-
41
|
1010
|
-
42
|
1011
|
-
43
|
1012
|
-
44
|
1013
|
-
45
|
1014
|
-
46
|
1015
|
-
47
|
1016
|
-
48
|
1017
|
-
49
|
1018
|
-
50
|
1019
|
-
51
|
1020
|
-
52
|
1021
|
-
53
|
1022
|
-
54
|
1023
|
-
55
|
1024
|
-
56
|
1025
|
-
57
|
1026
|
-
58
|
1027
|
-
59
|
1028
|
-
60
|
1029
|
-
61
|
1030
|
-
62
|
1031
|
-
63
|
1032
|
-
64
|
1033
|
-
65
|
1034
|
-
66
|
1035
|
-
67
|
1036
|
-
68
|
1037
|
-
69
|
1038
|
-
70
|
1039
|
-
71
|
1040
|
-
72
|
1041
|
-
73
|
1042
|
-
74
|
1043
|
-
75
|
1044
|
-
76
|
1045
|
-
77
|
1046
|
-
78
|
1047
|
-
79
|
1048
|
-
80
|
1049
|
-
81
|
1050
|
-
82
|
1051
|
-
83</pre>
|
1052
|
-
</td>
|
1053
|
-
<td>
|
1054
|
-
<pre class="code"><span class="info file"># File 'lib/elevage/platform.rb', line 37</span>
|
1055
|
-
|
1056
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_healthy?'>healthy?</span>
|
1057
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span>
|
1058
|
-
<span class='comment'># Array of string checked for empty values
|
1059
|
-
</span> <span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:empty_environments</span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='ivar'>@environments</span><span class='period'>.</span><span class='id identifier rubyid_all?'>all?</span>
|
1060
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:empty_tiers</span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='ivar'>@tiers</span><span class='period'>.</span><span class='id identifier rubyid_all?'>all?</span>
|
1061
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:empty_nodenameconvention</span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='ivar'>@nodenameconvention</span><span class='period'>.</span><span class='id identifier rubyid_all?'>all?</span>
|
1062
|
-
<span class='comment'># Loop through all pool definitions, check for valid settings
|
1063
|
-
</span> <span class='ivar'>@pools</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__pool'>_pool</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='op'>|</span>
|
1064
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:pool_count_size</span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='lparen'>(</span><span class='int'>0</span><span class='op'>..</span><span class='const'>POOL_LIMIT</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_member?'>member?</span><span class='lparen'>(</span><span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>count</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1065
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:invalid_tiers</span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='ivar'>@tiers</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>tier</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1066
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:no_image_ref</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>image</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1067
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:invalid_compute</span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='ivar'>@compute</span><span class='period'>.</span><span class='id identifier rubyid_key?'>key?</span><span class='lparen'>(</span><span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>compute</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1068
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:invalid_port</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>port</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1069
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:invalid_runlist</span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>runlist</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_all?'>all?</span>
|
1070
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:invalid_componentrole</span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>componentrole</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>#</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>componentrole</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
1071
|
-
<span class='kw'>end</span>
|
1072
|
-
<span class='comment'># Loop through all vcenter definitions, check for valid settings
|
1073
|
-
</span> <span class='ivar'>@vcenter</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__vcenter'>_vcenter</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='op'>|</span>
|
1074
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:invalid_geo</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>geo</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1075
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:invalid_timezone</span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='lparen'>(</span><span class='int'>0</span><span class='op'>..</span><span class='const'>TIMEZONE_LIMIT</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_member?'>member?</span><span class='lparen'>(</span><span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>timezone</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span><span class='rparen'>)</span>
|
1076
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:invalid_host</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>host</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1077
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:invalid_datacenter</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>datacenter</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1078
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:invalid_imagefolder</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>imagefolder</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1079
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:invalid_destfolder</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>destfolder</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1080
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:invalid_appendenv</span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>appendenv</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='kw'>true</span> <span class='op'>||</span> <span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>appendenv</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='kw'>false</span>
|
1081
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:invalid_appenddomain</span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>appenddomain</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='kw'>true</span> <span class='op'>||</span> <span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>appenddomain</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='kw'>false</span>
|
1082
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:empty_datastores</span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>datastores</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_all?'>all?</span>
|
1083
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:invalid_domain</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>domain</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1084
|
-
<span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>dnsips</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_ip'>ip</span><span class='op'>|</span> <span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:invalid_ip</span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='const'>Resolv</span><span class='op'>::</span><span class='const'>IPv4</span><span class='op'>::</span><span class='const'>Regex</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='id identifier rubyid_ip'>ip</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
|
1085
|
-
<span class='kw'>end</span>
|
1086
|
-
<span class='comment'># Loop through all network definitions, check for valid settings
|
1087
|
-
</span> <span class='ivar'>@network</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__network'>_network</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='op'>|</span>
|
1088
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:empty_network</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_values'>values</span><span class='period'>.</span><span class='id identifier rubyid_any?'>any?</span> <span class='op'>&</span><span class='symbol'>:nil?</span>
|
1089
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:invalid_gateway</span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='const'>Resolv</span><span class='op'>::</span><span class='const'>IPv4</span><span class='op'>::</span><span class='const'>Regex</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>gateway</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1090
|
-
<span class='kw'>end</span>
|
1091
|
-
<span class='comment'># Loop through all compute definitions, check for valid settings
|
1092
|
-
</span> <span class='ivar'>@compute</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__compute'>_compute</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='op'>|</span>
|
1093
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:invalid_cpu</span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='lparen'>(</span><span class='int'>0</span><span class='op'>..</span><span class='const'>CPU_LIMIT</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_member?'>member?</span><span class='lparen'>(</span><span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>cpu</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1094
|
-
<span class='id identifier rubyid_health'>health</span> <span class='op'>+=</span> <span class='const'>MSG</span><span class='lbracket'>[</span><span class='symbol'>:invalid_ram</span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='lparen'>(</span><span class='int'>0</span><span class='op'>..</span><span class='const'>RAM_LIMIT</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_member?'>member?</span><span class='lparen'>(</span><span class='id identifier rubyid_v'>v</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ram</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1095
|
-
<span class='kw'>end</span>
|
1096
|
-
<span class='kw'>if</span> <span class='id identifier rubyid_health'>health</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>></span> <span class='int'>0</span>
|
1097
|
-
<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_health'>health</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\n</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_health'>health</span><span class='period'>.</span><span class='id identifier rubyid_lines'>lines</span><span class='period'>.</span><span class='id identifier rubyid_count'>count</span><span class='embexpr_end'>}</span><span class='tstring_content'> platform offense(s) detected</span><span class='tstring_end'>"</span></span>
|
1098
|
-
<span class='kw'>false</span>
|
1099
|
-
<span class='kw'>else</span>
|
1100
|
-
<span class='kw'>true</span>
|
1101
|
-
<span class='kw'>end</span>
|
1102
|
-
<span class='kw'>end</span></pre>
|
1103
|
-
</td>
|
1104
|
-
</tr>
|
1105
|
-
</table>
|
1106
|
-
</div>
|
1107
|
-
|
1108
|
-
</div>
|
1109
|
-
|
1110
|
-
</div>
|
1111
|
-
|
1112
|
-
<div id="footer">
|
1113
|
-
Generated on Tue Nov 11 17:39:23 2014 by
|
1114
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1115
|
-
0.8.7.6 (ruby-2.1.2).
|
1116
|
-
</div>
|
1117
|
-
|
1118
|
-
</body>
|
1119
|
-
</html>
|