elevage 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +21 -0
  4. data/.rubocop.yml +8 -0
  5. data/.ruby-version +1 -0
  6. data/.simplecov +8 -0
  7. data/.travis.yml +3 -0
  8. data/.yardoc/checksums +12 -0
  9. data/.yardoc/object_types +0 -0
  10. data/.yardoc/objects/root.dat +0 -0
  11. data/.yardoc/proxy_types +0 -0
  12. data/Gemfile +4 -0
  13. data/Guardfile +10 -0
  14. data/LICENSE.txt +203 -0
  15. data/README.md +112 -0
  16. data/Rakefile +20 -0
  17. data/bin/elevage +4 -0
  18. data/coverage/.resultset.json.lock +0 -0
  19. data/doc/Elevage/Build.html +435 -0
  20. data/doc/Elevage/CLI.html +282 -0
  21. data/doc/Elevage/Environment.html +950 -0
  22. data/doc/Elevage/Generate.html +346 -0
  23. data/doc/Elevage/Health.html +359 -0
  24. data/doc/Elevage/New.html +411 -0
  25. data/doc/Elevage/Platform.html +1119 -0
  26. data/doc/Elevage/Provisioner.html +804 -0
  27. data/doc/Elevage/ProvisionerRunQueue.html +765 -0
  28. data/doc/Elevage/Runner.html +319 -0
  29. data/doc/Elevage.html +501 -0
  30. data/doc/_index.html +239 -0
  31. data/doc/class_list.html +58 -0
  32. data/doc/css/common.css +1 -0
  33. data/doc/css/full_list.css +57 -0
  34. data/doc/css/style.css +339 -0
  35. data/doc/file.README.html +187 -0
  36. data/doc/file_list.html +60 -0
  37. data/doc/frames.html +26 -0
  38. data/doc/index.html +187 -0
  39. data/doc/js/app.js +219 -0
  40. data/doc/js/full_list.js +181 -0
  41. data/doc/js/jquery.js +4 -0
  42. data/doc/method_list.html +369 -0
  43. data/doc/top-level-namespace.html +112 -0
  44. data/elevage.gemspec +39 -0
  45. data/features/archive +314 -0
  46. data/features/build.feature +237 -0
  47. data/features/elevage.feature +24 -0
  48. data/features/generate.feature +235 -0
  49. data/features/health_env_failure.feature +292 -0
  50. data/features/health_failure.feature +291 -0
  51. data/features/health_success.feature +279 -0
  52. data/features/list.feature +315 -0
  53. data/features/new.feature +68 -0
  54. data/features/step_definitions/elevage_steps.rb +27 -0
  55. data/features/support/env.rb +9 -0
  56. data/lib/elevage/build.rb +109 -0
  57. data/lib/elevage/constants.rb +113 -0
  58. data/lib/elevage/environment.rb +223 -0
  59. data/lib/elevage/generate.rb +48 -0
  60. data/lib/elevage/health.rb +27 -0
  61. data/lib/elevage/new.rb +30 -0
  62. data/lib/elevage/platform.rb +105 -0
  63. data/lib/elevage/provisioner.rb +169 -0
  64. data/lib/elevage/provisionerrunqueue.rb +114 -0
  65. data/lib/elevage/runner.rb +39 -0
  66. data/lib/elevage/templates/compute.yml.tt +18 -0
  67. data/lib/elevage/templates/environment.yml.tt +20 -0
  68. data/lib/elevage/templates/network.yml.tt +16 -0
  69. data/lib/elevage/templates/platform.yml.tt +110 -0
  70. data/lib/elevage/templates/vcenter.yml.tt +77 -0
  71. data/lib/elevage/version.rb +4 -0
  72. data/lib/elevage.rb +45 -0
  73. data/spec/spec_helper.rb +4 -0
  74. metadata +357 -0
@@ -0,0 +1,765 @@
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::ProvisionerRunQueue
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/ProvisionerRunQueue.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> &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">ProvisionerRunQueue</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::ProvisionerRunQueue
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::ProvisionerRunQueue</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/provisionerrunqueue.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>ProvisionerRunQueue 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="#build_status_interval-instance_method" title="#build_status_interval (instance method)">- (Object) <strong>build_status_interval</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 build_status_interval.</p>
142
+ </div></span>
143
+
144
+ </li>
145
+
146
+
147
+ <li class="public ">
148
+ <span class="summary_signature">
149
+
150
+ <a href="#busy_wait_timeout-instance_method" title="#busy_wait_timeout (instance method)">- (Object) <strong>busy_wait_timeout</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 busy_wait_timeout.</p>
169
+ </div></span>
170
+
171
+ </li>
172
+
173
+
174
+ <li class="public ">
175
+ <span class="summary_signature">
176
+
177
+ <a href="#max_concurrent-instance_method" title="#max_concurrent (instance method)">- (Object) <strong>max_concurrent</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 max_concurrent.</p>
196
+ </div></span>
197
+
198
+ </li>
199
+
200
+
201
+ <li class="public ">
202
+ <span class="summary_signature">
203
+
204
+ <a href="#provisioners-instance_method" title="#provisioners (instance method)">- (Object) <strong>provisioners</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 provisioners.</p>
223
+ </div></span>
224
+
225
+ </li>
226
+
227
+
228
+ <li class="public ">
229
+ <span class="summary_signature">
230
+
231
+ <a href="#running_tasks-instance_method" title="#running_tasks (instance method)">- (Object) <strong>running_tasks</strong> </a>
232
+
233
+
234
+
235
+ </span>
236
+
237
+
238
+
239
+
240
+ <span class="note title readonly">readonly</span>
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+ <span class="summary_desc"><div class='inline'>
251
+ <p>Returns the value of attribute running_tasks.</p>
252
+ </div></span>
253
+
254
+ </li>
255
+
256
+
257
+ </ul>
258
+
259
+
260
+
261
+
262
+
263
+ <h2>
264
+ Instance Method Summary
265
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
266
+ </h2>
267
+
268
+ <ul class="summary">
269
+
270
+ <li class="public ">
271
+ <span class="summary_signature">
272
+
273
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (ProvisionerRunQueue) <strong>initialize</strong> </a>
274
+
275
+
276
+
277
+ </span>
278
+
279
+
280
+ <span class="note title constructor">constructor</span>
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+ <span class="summary_desc"><div class='inline'>
290
+ <p>Public: Initialize the object.</p>
291
+ </div></span>
292
+
293
+ </li>
294
+
295
+
296
+ <li class="public ">
297
+ <span class="summary_signature">
298
+
299
+ <a href="#run-instance_method" title="#run (instance method)">- (Object) <strong>run</strong> </a>
300
+
301
+
302
+
303
+ </span>
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+ <span class="summary_desc"><div class='inline'>
314
+ <p>Public: run() - Process the queue rubocop:disable MethodLength.</p>
315
+ </div></span>
316
+
317
+ </li>
318
+
319
+
320
+ <li class="public ">
321
+ <span class="summary_signature">
322
+
323
+ <a href="#to_s-instance_method" title="#to_s (instance method)">- (Object) <strong>to_s</strong> </a>
324
+
325
+
326
+
327
+ </span>
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+
337
+ <span class="summary_desc"><div class='inline'>
338
+ <p>Public: Display a string representation rubocop:disable MethodLength.</p>
339
+ </div></span>
340
+
341
+ </li>
342
+
343
+
344
+ </ul>
345
+
346
+
347
+ <div id="constructor_details" class="method_details_list">
348
+ <h2>Constructor Details</h2>
349
+
350
+ <div class="method_details first">
351
+ <h3 class="signature first" id="initialize-instance_method">
352
+
353
+ - (<tt><span class='object_link'><a href="" title="Elevage::ProvisionerRunQueue (class)">ProvisionerRunQueue</a></span></tt>) <strong>initialize</strong>
354
+
355
+
356
+
357
+
358
+
359
+ </h3><div class="docstring">
360
+ <div class="discussion">
361
+
362
+ <p>Public: Initialize the object</p>
363
+
364
+
365
+ </div>
366
+ </div>
367
+ <div class="tags">
368
+
369
+
370
+ </div><table class="source_code">
371
+ <tr>
372
+ <td>
373
+ <pre class="lines">
374
+
375
+
376
+ 13
377
+ 14
378
+ 15
379
+ 16
380
+ 17
381
+ 18
382
+ 19
383
+ 20</pre>
384
+ </td>
385
+ <td>
386
+ <pre class="code"><span class="info file"># File 'lib/elevage/provisionerrunqueue.rb', line 13</span>
387
+
388
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
389
+ <span class='ivar'>@running_tasks</span> <span class='op'>=</span> <span class='int'>0</span> <span class='comment'># We start out with nothing running
390
+ </span> <span class='ivar'>@max_concurrent</span> <span class='op'>=</span> <span class='const'>BUILD_CONCURRENT_DEFAULT</span>
391
+ <span class='ivar'>@busy_wait_timeout</span> <span class='op'>=</span> <span class='const'>BUILD_CHILD_WAIT_TIMEOUT</span>
392
+ <span class='ivar'>@build_status_interval</span> <span class='op'>=</span> <span class='const'>BUILD_STATUS_INTERVAL</span>
393
+ <span class='ivar'>@provisioners</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
394
+ <span class='ivar'>@children</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
395
+ <span class='kw'>end</span></pre>
396
+ </td>
397
+ </tr>
398
+ </table>
399
+ </div>
400
+
401
+ </div>
402
+
403
+ <div id="instance_attr_details" class="attr_details">
404
+ <h2>Instance Attribute Details</h2>
405
+
406
+
407
+ <span id="build_status_interval=-instance_method"></span>
408
+ <div class="method_details first">
409
+ <h3 class="signature first" id="build_status_interval-instance_method">
410
+
411
+ - (<tt>Object</tt>) <strong>build_status_interval</strong>
412
+
413
+
414
+
415
+
416
+
417
+ </h3><div class="docstring">
418
+ <div class="discussion">
419
+
420
+ <p>Returns the value of attribute build_status_interval</p>
421
+
422
+
423
+ </div>
424
+ </div>
425
+ <div class="tags">
426
+
427
+
428
+ </div><table class="source_code">
429
+ <tr>
430
+ <td>
431
+ <pre class="lines">
432
+
433
+
434
+ 10
435
+ 11
436
+ 12</pre>
437
+ </td>
438
+ <td>
439
+ <pre class="code"><span class="info file"># File 'lib/elevage/provisionerrunqueue.rb', line 10</span>
440
+
441
+ <span class='kw'>def</span> <span class='id identifier rubyid_build_status_interval'>build_status_interval</span>
442
+ <span class='ivar'>@build_status_interval</span>
443
+ <span class='kw'>end</span></pre>
444
+ </td>
445
+ </tr>
446
+ </table>
447
+ </div>
448
+
449
+
450
+ <span id="busy_wait_timeout=-instance_method"></span>
451
+ <div class="method_details ">
452
+ <h3 class="signature " id="busy_wait_timeout-instance_method">
453
+
454
+ - (<tt>Object</tt>) <strong>busy_wait_timeout</strong>
455
+
456
+
457
+
458
+
459
+
460
+ </h3><div class="docstring">
461
+ <div class="discussion">
462
+
463
+ <p>Returns the value of attribute busy_wait_timeout</p>
464
+
465
+
466
+ </div>
467
+ </div>
468
+ <div class="tags">
469
+
470
+
471
+ </div><table class="source_code">
472
+ <tr>
473
+ <td>
474
+ <pre class="lines">
475
+
476
+
477
+ 9
478
+ 10
479
+ 11</pre>
480
+ </td>
481
+ <td>
482
+ <pre class="code"><span class="info file"># File 'lib/elevage/provisionerrunqueue.rb', line 9</span>
483
+
484
+ <span class='kw'>def</span> <span class='id identifier rubyid_busy_wait_timeout'>busy_wait_timeout</span>
485
+ <span class='ivar'>@busy_wait_timeout</span>
486
+ <span class='kw'>end</span></pre>
487
+ </td>
488
+ </tr>
489
+ </table>
490
+ </div>
491
+
492
+
493
+ <span id="max_concurrent=-instance_method"></span>
494
+ <div class="method_details ">
495
+ <h3 class="signature " id="max_concurrent-instance_method">
496
+
497
+ - (<tt>Object</tt>) <strong>max_concurrent</strong>
498
+
499
+
500
+
501
+
502
+
503
+ </h3><div class="docstring">
504
+ <div class="discussion">
505
+
506
+ <p>Returns the value of attribute max_concurrent</p>
507
+
508
+
509
+ </div>
510
+ </div>
511
+ <div class="tags">
512
+
513
+
514
+ </div><table class="source_code">
515
+ <tr>
516
+ <td>
517
+ <pre class="lines">
518
+
519
+
520
+ 8
521
+ 9
522
+ 10</pre>
523
+ </td>
524
+ <td>
525
+ <pre class="code"><span class="info file"># File 'lib/elevage/provisionerrunqueue.rb', line 8</span>
526
+
527
+ <span class='kw'>def</span> <span class='id identifier rubyid_max_concurrent'>max_concurrent</span>
528
+ <span class='ivar'>@max_concurrent</span>
529
+ <span class='kw'>end</span></pre>
530
+ </td>
531
+ </tr>
532
+ </table>
533
+ </div>
534
+
535
+
536
+ <span id="provisioners=-instance_method"></span>
537
+ <div class="method_details ">
538
+ <h3 class="signature " id="provisioners-instance_method">
539
+
540
+ - (<tt>Object</tt>) <strong>provisioners</strong>
541
+
542
+
543
+
544
+
545
+
546
+ </h3><div class="docstring">
547
+ <div class="discussion">
548
+
549
+ <p>Returns the value of attribute provisioners</p>
550
+
551
+
552
+ </div>
553
+ </div>
554
+ <div class="tags">
555
+
556
+
557
+ </div><table class="source_code">
558
+ <tr>
559
+ <td>
560
+ <pre class="lines">
561
+
562
+
563
+ 7
564
+ 8
565
+ 9</pre>
566
+ </td>
567
+ <td>
568
+ <pre class="code"><span class="info file"># File 'lib/elevage/provisionerrunqueue.rb', line 7</span>
569
+
570
+ <span class='kw'>def</span> <span class='id identifier rubyid_provisioners'>provisioners</span>
571
+ <span class='ivar'>@provisioners</span>
572
+ <span class='kw'>end</span></pre>
573
+ </td>
574
+ </tr>
575
+ </table>
576
+ </div>
577
+
578
+
579
+ <span id=""></span>
580
+ <div class="method_details ">
581
+ <h3 class="signature " id="running_tasks-instance_method">
582
+
583
+ - (<tt>Object</tt>) <strong>running_tasks</strong> <span class="extras">(readonly)</span>
584
+
585
+
586
+
587
+
588
+
589
+ </h3><div class="docstring">
590
+ <div class="discussion">
591
+
592
+ <p>Returns the value of attribute running_tasks</p>
593
+
594
+
595
+ </div>
596
+ </div>
597
+ <div class="tags">
598
+
599
+
600
+ </div><table class="source_code">
601
+ <tr>
602
+ <td>
603
+ <pre class="lines">
604
+
605
+
606
+ 6
607
+ 7
608
+ 8</pre>
609
+ </td>
610
+ <td>
611
+ <pre class="code"><span class="info file"># File 'lib/elevage/provisionerrunqueue.rb', line 6</span>
612
+
613
+ <span class='kw'>def</span> <span class='id identifier rubyid_running_tasks'>running_tasks</span>
614
+ <span class='ivar'>@running_tasks</span>
615
+ <span class='kw'>end</span></pre>
616
+ </td>
617
+ </tr>
618
+ </table>
619
+ </div>
620
+
621
+ </div>
622
+
623
+
624
+ <div id="instance_method_details" class="method_details_list">
625
+ <h2>Instance Method Details</h2>
626
+
627
+
628
+ <div class="method_details first">
629
+ <h3 class="signature first" id="run-instance_method">
630
+
631
+ - (<tt>Object</tt>) <strong>run</strong>
632
+
633
+
634
+
635
+
636
+
637
+ </h3><div class="docstring">
638
+ <div class="discussion">
639
+
640
+ <p>Public: run() - Process the queue rubocop:disable MethodLength</p>
641
+
642
+
643
+ </div>
644
+ </div>
645
+ <div class="tags">
646
+
647
+
648
+ </div><table class="source_code">
649
+ <tr>
650
+ <td>
651
+ <pre class="lines">
652
+
653
+
654
+ 24
655
+ 25
656
+ 26
657
+ 27
658
+ 28
659
+ 29
660
+ 30
661
+ 31
662
+ 32
663
+ 33
664
+ 34
665
+ 35
666
+ 36
667
+ 37
668
+ 38</pre>
669
+ </td>
670
+ <td>
671
+ <pre class="code"><span class="info file"># File 'lib/elevage/provisionerrunqueue.rb', line 24</span>
672
+
673
+ <span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span>
674
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span><span class='embexpr_end'>}</span><span class='tstring_content'> [</span><span class='embexpr_beg'>#{</span><span class='gvar'>$$</span><span class='embexpr_end'>}</span><span class='tstring_content'>]: Provisioning started.</span><span class='tstring_end'>&quot;</span></span>
675
+ <span class='ivar'>@provisioners</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_provisioner'>provisioner</span><span class='op'>|</span>
676
+ <span class='comment'># Make sure we&#39;re not running more jobs than we&#39;re allowed
677
+ </span> <span class='id identifier rubyid_wait_for_tasks'>wait_for_tasks</span>
678
+ <span class='id identifier rubyid_child_pid'>child_pid</span> <span class='op'>=</span> <span class='id identifier rubyid_fork'>fork</span> <span class='kw'>do</span>
679
+ <span class='id identifier rubyid_provision_task'>provision_task</span> <span class='label'>task:</span> <span class='id identifier rubyid_provisioner'>provisioner</span>
680
+ <span class='kw'>end</span>
681
+ <span class='ivar'>@children</span><span class='lbracket'>[</span><span class='id identifier rubyid_child_pid'>child_pid</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_provisioner'>provisioner</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span>
682
+ <span class='ivar'>@running_tasks</span> <span class='op'>+=</span> <span class='int'>1</span>
683
+ <span class='kw'>end</span>
684
+ <span class='comment'># Hang around until we collect all the rest of the children
685
+ </span> <span class='id identifier rubyid_wait_for_tasks'>wait_for_tasks</span> <span class='label'>state:</span> <span class='symbol'>:collect</span>
686
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span><span class='embexpr_end'>}</span><span class='tstring_content'> [</span><span class='embexpr_beg'>#{</span><span class='gvar'>$$</span><span class='embexpr_end'>}</span><span class='tstring_content'>]: Provisioning completed.</span><span class='tstring_end'>&quot;</span></span>
687
+ <span class='kw'>end</span></pre>
688
+ </td>
689
+ </tr>
690
+ </table>
691
+ </div>
692
+
693
+ <div class="method_details ">
694
+ <h3 class="signature " id="to_s-instance_method">
695
+
696
+ - (<tt>Object</tt>) <strong>to_s</strong>
697
+
698
+
699
+
700
+
701
+
702
+ </h3><div class="docstring">
703
+ <div class="discussion">
704
+
705
+ <p>Public: Display a string representation rubocop:disable MethodLength</p>
706
+
707
+
708
+ </div>
709
+ </div>
710
+ <div class="tags">
711
+
712
+
713
+ </div><table class="source_code">
714
+ <tr>
715
+ <td>
716
+ <pre class="lines">
717
+
718
+
719
+ 43
720
+ 44
721
+ 45
722
+ 46
723
+ 47
724
+ 48
725
+ 49
726
+ 50
727
+ 51
728
+ 52
729
+ 53
730
+ 54
731
+ 55</pre>
732
+ </td>
733
+ <td>
734
+ <pre class="code"><span class="info file"># File 'lib/elevage/provisionerrunqueue.rb', line 43</span>
735
+
736
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
737
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Running Tasks: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@running_tasks</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
738
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Max Concurrency: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@max_concurrent</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
739
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Wait status interval: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@build_status_interval</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
740
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Current Child processes:</span><span class='tstring_end'>&#39;</span></span>
741
+ <span class='ivar'>@children</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_pid'>pid</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='op'>|</span>
742
+ <span class='id identifier rubyid_puts'>puts</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_pid'>pid</span><span class='embexpr_end'>}</span><span class='tstring_content'>]: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
743
+ <span class='kw'>end</span>
744
+ <span class='id identifier rubyid_puts'>puts</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Queued Provisioners:</span><span class='tstring_end'>&#39;</span></span>
745
+ <span class='ivar'>@provisioners</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_provisioner'>provisioner</span><span class='op'>|</span>
746
+ <span class='id identifier rubyid_puts'>puts</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_provisioner'>provisioner</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
747
+ <span class='kw'>end</span>
748
+ <span class='kw'>end</span></pre>
749
+ </td>
750
+ </tr>
751
+ </table>
752
+ </div>
753
+
754
+ </div>
755
+
756
+ </div>
757
+
758
+ <div id="footer">
759
+ Generated on Tue Nov 11 17:39:23 2014 by
760
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
761
+ 0.8.7.6 (ruby-2.1.2).
762
+ </div>
763
+
764
+ </body>
765
+ </html>