elevage 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -1
  3. data/README.md +33 -11
  4. data/elevage.gemspec +15 -15
  5. data/features/archive +3 -22
  6. data/features/build.feature +2 -1
  7. data/features/generate.feature +3 -9
  8. data/features/health_env_failure.feature +2 -8
  9. data/features/health_failure.feature +1 -2
  10. data/features/health_success.feature +3 -9
  11. data/features/list.feature +3 -9
  12. data/features/step_definitions/elevage_steps.rb +2 -2
  13. data/lib/elevage/build.rb +4 -1
  14. data/lib/elevage/constants.rb +2 -2
  15. data/lib/elevage/environment.rb +66 -39
  16. data/lib/elevage/generate.rb +4 -3
  17. data/lib/elevage/health.rb +4 -0
  18. data/lib/elevage/new.rb +4 -2
  19. data/lib/elevage/platform.rb +11 -3
  20. data/lib/elevage/provisioner.rb +61 -21
  21. data/lib/elevage/provisionerrunqueue.rb +25 -10
  22. data/lib/elevage/templates/vcenter.yml.tt +7 -12
  23. data/lib/elevage/version.rb +1 -1
  24. data/lib/elevage.rb +5 -0
  25. metadata +58 -88
  26. data/.ruby-version +0 -1
  27. data/.yardoc/checksums +0 -12
  28. data/.yardoc/object_types +0 -0
  29. data/.yardoc/objects/root.dat +0 -0
  30. data/.yardoc/proxy_types +0 -0
  31. data/doc/Elevage/Build.html +0 -435
  32. data/doc/Elevage/CLI.html +0 -282
  33. data/doc/Elevage/Environment.html +0 -950
  34. data/doc/Elevage/Generate.html +0 -346
  35. data/doc/Elevage/Health.html +0 -359
  36. data/doc/Elevage/New.html +0 -411
  37. data/doc/Elevage/Platform.html +0 -1119
  38. data/doc/Elevage/Provisioner.html +0 -804
  39. data/doc/Elevage/ProvisionerRunQueue.html +0 -765
  40. data/doc/Elevage/Runner.html +0 -319
  41. data/doc/Elevage.html +0 -501
  42. data/doc/_index.html +0 -239
  43. data/doc/class_list.html +0 -58
  44. data/doc/css/common.css +0 -1
  45. data/doc/css/full_list.css +0 -57
  46. data/doc/css/style.css +0 -339
  47. data/doc/file.README.html +0 -187
  48. data/doc/file_list.html +0 -60
  49. data/doc/frames.html +0 -26
  50. data/doc/index.html +0 -187
  51. data/doc/js/app.js +0 -219
  52. data/doc/js/full_list.js +0 -181
  53. data/doc/js/jquery.js +0 -4
  54. data/doc/method_list.html +0 -369
  55. data/doc/top-level-namespace.html +0 -112
@@ -1,359 +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::Health
8
-
9
- &mdash; Documentation by YARD 0.8.7.6
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
19
- relpath = '../';
20
- framesUrl = "../frames.html#!Elevage/Health.html";
21
- </script>
22
-
23
-
24
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <div id="header">
32
- <div id="menu">
33
-
34
- <a href="../_index.html">Index (H)</a> &raquo;
35
- <span class='title'><span class='object_link'><a href="../Elevage.html" title="Elevage (module)">Elevage</a></span></span>
36
- &raquo;
37
- <span class="title">Health</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::Health
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">Thor::Group</span>
77
-
78
- <ul class="fullTree">
79
- <li>Object</li>
80
-
81
- <li class="next">Thor::Group</li>
82
-
83
- <li class="next">Elevage::Health</li>
84
-
85
- </ul>
86
- <a href="#" class="inheritanceTree">show all</a>
87
-
88
- </dd>
89
-
90
-
91
-
92
-
93
-
94
-
95
- <dt class="r2">Includes:</dt>
96
- <dd class="r2">Thor::Actions</dd>
97
-
98
-
99
-
100
-
101
-
102
- <dt class="r1 last">Defined in:</dt>
103
- <dd class="r1 last">lib/elevage/health.rb</dd>
104
-
105
- </dl>
106
- <div class="clear"></div>
107
-
108
- <h2>Overview</h2><div class="docstring">
109
- <div class="discussion">
110
-
111
- <p>Evaluate health of platform definition files</p>
112
-
113
-
114
- </div>
115
- </div>
116
- <div class="tags">
117
-
118
-
119
- </div>
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
- <h2>
128
- Class Method Summary
129
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
130
- </h2>
131
-
132
- <ul class="summary">
133
-
134
- <li class="public ">
135
- <span class="summary_signature">
136
-
137
- <a href="#source_root-class_method" title="source_root (class method)">+ (Object) <strong>source_root</strong> </a>
138
-
139
-
140
-
141
- </span>
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
- <span class="summary_desc"><div class='inline'></div></span>
152
-
153
- </li>
154
-
155
-
156
- </ul>
157
-
158
- <h2>
159
- Instance Method Summary
160
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
161
- </h2>
162
-
163
- <ul class="summary">
164
-
165
- <li class="public ">
166
- <span class="summary_signature">
167
-
168
- <a href="#check_environments-instance_method" title="#check_environments (instance method)">- (Object) <strong>check_environments</strong> </a>
169
-
170
-
171
-
172
- </span>
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
- <span class="summary_desc"><div class='inline'>
183
- <p>rubocop:disable LineLength.</p>
184
- </div></span>
185
-
186
- </li>
187
-
188
-
189
- <li class="public ">
190
- <span class="summary_signature">
191
-
192
- <a href="#check_platform-instance_method" title="#check_platform (instance method)">- (Object) <strong>check_platform</strong> </a>
193
-
194
-
195
-
196
- </span>
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
- <span class="summary_desc"><div class='inline'>
207
- <p>rubocop:disable LineLength.</p>
208
- </div></span>
209
-
210
- </li>
211
-
212
-
213
- </ul>
214
-
215
-
216
-
217
-
218
-
219
-
220
- <div id="class_method_details" class="method_details_list">
221
- <h2>Class Method Details</h2>
222
-
223
-
224
- <div class="method_details first">
225
- <h3 class="signature first" id="source_root-class_method">
226
-
227
- + (<tt>Object</tt>) <strong>source_root</strong>
228
-
229
-
230
-
231
-
232
-
233
- </h3><table class="source_code">
234
- <tr>
235
- <td>
236
- <pre class="lines">
237
-
238
-
239
- 8
240
- 9
241
- 10</pre>
242
- </td>
243
- <td>
244
- <pre class="code"><span class="info file"># File 'lib/elevage/health.rb', line 8</span>
245
-
246
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_source_root'>source_root</span>
247
- <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span>
248
- <span class='kw'>end</span></pre>
249
- </td>
250
- </tr>
251
- </table>
252
- </div>
253
-
254
- </div>
255
-
256
- <div id="instance_method_details" class="method_details_list">
257
- <h2>Instance Method Details</h2>
258
-
259
-
260
- <div class="method_details first">
261
- <h3 class="signature first" id="check_environments-instance_method">
262
-
263
- - (<tt>Object</tt>) <strong>check_environments</strong>
264
-
265
-
266
-
267
-
268
-
269
- </h3><div class="docstring">
270
- <div class="discussion">
271
-
272
- <p>rubocop:disable LineLength</p>
273
-
274
-
275
- </div>
276
- </div>
277
- <div class="tags">
278
-
279
-
280
- </div><table class="source_code">
281
- <tr>
282
- <td>
283
- <pre class="lines">
284
-
285
-
286
- 20
287
- 21
288
- 22
289
- 23
290
- 24</pre>
291
- </td>
292
- <td>
293
- <pre class="code"><span class="info file"># File 'lib/elevage/health.rb', line 20</span>
294
-
295
- <span class='kw'>def</span> <span class='id identifier rubyid_check_environments'>check_environments</span>
296
- <span class='ivar'>@platform</span><span class='period'>.</span><span class='id identifier rubyid_environments'>environments</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_env'>env</span><span class='op'>|</span>
297
- <span class='id identifier rubyid_puts'>puts</span> <span class='const'>Elevage</span><span class='op'>::</span><span class='const'>Environment</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_env'>env</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_healthy?'>healthy?</span> <span class='op'>?</span> <span class='lparen'>(</span><span class='id identifier rubyid_env'>env</span> <span class='op'>+</span> <span class='const'>MSG_ENV_HEALTHY</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='id identifier rubyid_fail'>fail</span><span class='lparen'>(</span><span class='const'>IOError</span><span class='comma'>,</span> <span class='const'>ERR</span><span class='lbracket'>[</span><span class='symbol'>:fail_health_check</span><span class='rbracket'>]</span><span class='rparen'>)</span>
298
- <span class='kw'>end</span>
299
- <span class='kw'>end</span></pre>
300
- </td>
301
- </tr>
302
- </table>
303
- </div>
304
-
305
- <div class="method_details ">
306
- <h3 class="signature " id="check_platform-instance_method">
307
-
308
- - (<tt>Object</tt>) <strong>check_platform</strong>
309
-
310
-
311
-
312
-
313
-
314
- </h3><div class="docstring">
315
- <div class="discussion">
316
-
317
- <p>rubocop:disable LineLength</p>
318
-
319
-
320
- </div>
321
- </div>
322
- <div class="tags">
323
-
324
-
325
- </div><table class="source_code">
326
- <tr>
327
- <td>
328
- <pre class="lines">
329
-
330
-
331
- 13
332
- 14
333
- 15
334
- 16</pre>
335
- </td>
336
- <td>
337
- <pre class="code"><span class="info file"># File 'lib/elevage/health.rb', line 13</span>
338
-
339
- <span class='kw'>def</span> <span class='id identifier rubyid_check_platform'>check_platform</span>
340
- <span class='ivar'>@platform</span> <span class='op'>=</span> <span class='const'>Elevage</span><span class='op'>::</span><span class='const'>Platform</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
341
- <span class='id identifier rubyid_puts'>puts</span> <span class='ivar'>@platform</span><span class='period'>.</span><span class='id identifier rubyid_healthy?'>healthy?</span> <span class='op'>?</span> <span class='const'>MSG_HEALTHY</span> <span class='op'>:</span> <span class='id identifier rubyid_fail'>fail</span><span class='lparen'>(</span><span class='const'>IOError</span><span class='comma'>,</span> <span class='const'>ERR</span><span class='lbracket'>[</span><span class='symbol'>:fail_health_check</span><span class='rbracket'>]</span><span class='rparen'>)</span>
342
- <span class='kw'>end</span></pre>
343
- </td>
344
- </tr>
345
- </table>
346
- </div>
347
-
348
- </div>
349
-
350
- </div>
351
-
352
- <div id="footer">
353
- Generated on Tue Nov 11 17:39:23 2014 by
354
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
355
- 0.8.7.6 (ruby-2.1.2).
356
- </div>
357
-
358
- </body>
359
- </html>