bigbang 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,814 @@
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: BigBang::Run
8
+
9
+ &mdash; Documentation by YARD 0.7.2
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '..';
19
+ if (relpath != '') relpath += '/';
20
+ </script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
32
+
33
+ <div id="header">
34
+ <div id="menu">
35
+
36
+ <a href="../_index.html">Index (R)</a> &raquo;
37
+ <span class='title'><span class='object_link'><a href="../BigBang.html" title="BigBang (module)">BigBang</a></span></span>
38
+ &raquo;
39
+ <span class="title">Run</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
45
+ <div id="search">
46
+
47
+ <a id="class_list_link" href="#">Class List</a>
48
+
49
+ <a id="method_list_link" href="#">Method List</a>
50
+
51
+ <a id="file_list_link" href="#">File List</a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Class: BigBang::Run
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+ <dt class="r1">Inherits:</dt>
68
+ <dd class="r1">
69
+ <span class="inheritName">Object</span>
70
+
71
+ <ul class="fullTree">
72
+ <li>Object</li>
73
+
74
+ <li class="next">BigBang::Run</li>
75
+
76
+ </ul>
77
+ <a href="#" class="inheritanceTree">show all</a>
78
+
79
+ </dd>
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+ <dt class="r2 last">Defined in:</dt>
90
+ <dd class="r2 last">lib/bigbang/run.rb</dd>
91
+
92
+ </dl>
93
+ <div class="clear"></div>
94
+
95
+ <div id="subclasses">
96
+ <h2>Direct Known Subclasses</h2>
97
+ <p class="children"><span class='object_link'><a href="ClusterRun.html" title="BigBang::ClusterRun (class)">ClusterRun</a></span></p>
98
+ </div>
99
+
100
+
101
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
102
+ <ul class="summary">
103
+
104
+ <li class="public ">
105
+ <span class="summary_signature">
106
+
107
+ <a href="#assigned_ips-instance_method" title="#assigned_ips (instance method)">- (Object) <strong>assigned_ips</strong> </a>
108
+
109
+
110
+
111
+ </span>
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+ <span class="summary_desc"><div class='inline'><p>
124
+ Returns the value of attribute assigned_ips.
125
+ </p>
126
+ </div></span>
127
+
128
+ </li>
129
+
130
+
131
+ <li class="public ">
132
+ <span class="summary_signature">
133
+
134
+ <a href="#domain-instance_method" title="#domain (instance method)">- (Object) <strong>domain</strong> </a>
135
+
136
+
137
+
138
+ </span>
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+ <span class="summary_desc"><div class='inline'><p>
151
+ Returns the value of attribute domain.
152
+ </p>
153
+ </div></span>
154
+
155
+ </li>
156
+
157
+
158
+ <li class="public ">
159
+ <span class="summary_signature">
160
+
161
+ <a href="#ec2_instances-instance_method" title="#ec2_instances (instance method)">- (Object) <strong>ec2_instances</strong> </a>
162
+
163
+
164
+
165
+ </span>
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+ <span class="summary_desc"><div class='inline'><p>
178
+ Returns the value of attribute ec2_instances.
179
+ </p>
180
+ </div></span>
181
+
182
+ </li>
183
+
184
+
185
+ <li class="public ">
186
+ <span class="summary_signature">
187
+
188
+ <a href="#elastic_ip-instance_method" title="#elastic_ip (instance method)">- (Object) <strong>elastic_ip</strong> </a>
189
+
190
+
191
+
192
+ </span>
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+ <span class="summary_desc"><div class='inline'><p>
205
+ Returns the value of attribute elastic_ip.
206
+ </p>
207
+ </div></span>
208
+
209
+ </li>
210
+
211
+
212
+ <li class="public ">
213
+ <span class="summary_signature">
214
+
215
+ <a href="#instance-instance_method" title="#instance (instance method)">- (Object) <strong>instance</strong> </a>
216
+
217
+
218
+
219
+ </span>
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+ <span class="summary_desc"><div class='inline'><p>
232
+ Returns the value of attribute instance.
233
+ </p>
234
+ </div></span>
235
+
236
+ </li>
237
+
238
+
239
+ <li class="public ">
240
+ <span class="summary_signature">
241
+
242
+ <a href="#wildcard_domain-instance_method" title="#wildcard_domain (instance method)">- (Object) <strong>wildcard_domain</strong> </a>
243
+
244
+
245
+
246
+ </span>
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+ <span class="summary_desc"><div class='inline'><p>
259
+ Returns the value of attribute wildcard_domain.
260
+ </p>
261
+ </div></span>
262
+
263
+ </li>
264
+
265
+
266
+ <li class="public ">
267
+ <span class="summary_signature">
268
+
269
+ <a href="#zone_sizes-instance_method" title="#zone_sizes (instance method)">- (Object) <strong>zone_sizes</strong> </a>
270
+
271
+
272
+
273
+ </span>
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+ <span class="summary_desc"><div class='inline'><p>
286
+ Returns the value of attribute zone_sizes.
287
+ </p>
288
+ </div></span>
289
+
290
+ </li>
291
+
292
+
293
+ </ul>
294
+
295
+
296
+
297
+
298
+
299
+ <h2>
300
+ Instance Method Summary
301
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
302
+ </h2>
303
+
304
+ <ul class="summary">
305
+
306
+ <li class="public ">
307
+ <span class="summary_signature">
308
+
309
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (Run) <strong>initialize</strong>(name, instances) </a>
310
+
311
+
312
+
313
+ </span>
314
+
315
+ <span class="note title constructor">constructor</span>
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+ <span class="summary_desc"><div class='inline'><p>
325
+ A new instance of Run.
326
+ </p>
327
+ </div></span>
328
+
329
+ </li>
330
+
331
+
332
+ <li class="public ">
333
+ <span class="summary_signature">
334
+
335
+ <a href="#instances_count-instance_method" title="#instances_count (instance method)">- (Object) <strong>instances_count</strong> </a>
336
+
337
+
338
+
339
+ </span>
340
+
341
+
342
+
343
+
344
+
345
+
346
+
347
+
348
+ <span class="summary_desc"><div class='inline'></div></span>
349
+
350
+ </li>
351
+
352
+
353
+ <li class="public ">
354
+ <span class="summary_signature">
355
+
356
+ <a href="#zones-instance_method" title="#zones (instance method)">- (Object) <strong>zones</strong> </a>
357
+
358
+
359
+
360
+ </span>
361
+
362
+
363
+
364
+
365
+
366
+
367
+
368
+
369
+ <span class="summary_desc"><div class='inline'></div></span>
370
+
371
+ </li>
372
+
373
+
374
+ </ul>
375
+
376
+
377
+ <div id="constructor_details" class="method_details_list">
378
+ <h2>Constructor Details</h2>
379
+
380
+ <div class="method_details first">
381
+ <p class="signature first" id="initialize-instance_method">
382
+
383
+ - (<tt><span class='object_link'><a href="" title="BigBang::Run (class)">Run</a></span></tt>) <strong>initialize</strong>(name, instances)
384
+
385
+
386
+
387
+ </p><div class="docstring">
388
+ <div class="discussion">
389
+ <p>
390
+ A new instance of Run
391
+ </p>
392
+
393
+
394
+ </div>
395
+ </div>
396
+ <div class="tags">
397
+
398
+ </div><table class="source_code">
399
+ <tr>
400
+ <td>
401
+ <pre class="lines">
402
+
403
+
404
+ 8
405
+ 9
406
+ 10
407
+ 11
408
+ 12
409
+ 13
410
+ 14</pre>
411
+ </td>
412
+ <td>
413
+ <pre class="code"><span class="info file"># File 'lib/bigbang/run.rb', line 8</span>
414
+
415
+ <span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='name identifier id'>name</span><span class='comma token'>,</span> <span class='instances identifier id'>instances</span><span class='rparen token'>)</span>
416
+ <span class='@zone_sizes ivar id'>@zone_sizes</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span>
417
+ <span class='@ec2_instances ivar id'>@ec2_instances</span> <span class='assign token'>=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
418
+ <span class='@assigned_ips ivar id'>@assigned_ips</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span>
419
+ <span class='@instance ivar id'>@instance</span> <span class='assign token'>=</span> <span class='instances identifier id'>instances</span><span class='dot token'>.</span><span class='find identifier id'>find</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='i identifier id'>i</span><span class='bitor op'>|</span> <span class='i identifier id'>i</span><span class='dot token'>.</span><span class='name identifier id'>name</span> <span class='eq op'>==</span> <span class='name identifier id'>name</span> <span class='rbrace token'>}</span>
420
+ <span class='raise identifier id'>raise</span> <span class='dstring node'>&quot;instance #{name} not found&quot;</span> <span class='if if_mod kw'>if</span> <span class='@instance ivar id'>@instance</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
421
+ <span class='end end kw'>end</span>
422
+ </pre>
423
+ </td>
424
+ </tr>
425
+ </table>
426
+ </div>
427
+
428
+ </div>
429
+
430
+ <div id="instance_attr_details" class="attr_details">
431
+ <h2>Instance Attribute Details</h2>
432
+
433
+
434
+ <span id="assigned_ips=-instance_method"></span>
435
+ <span id="assigned_ips-instance_method"></span>
436
+ <div class="method_details first">
437
+ <p class="signature first" id="assigned_ips-instance_method">
438
+
439
+ - (<tt>Object</tt>) <strong>assigned_ips</strong>
440
+
441
+
442
+
443
+ </p><div class="docstring">
444
+ <div class="discussion">
445
+ <p>
446
+ Returns the value of attribute assigned_ips
447
+ </p>
448
+
449
+
450
+ </div>
451
+ </div>
452
+ <div class="tags">
453
+
454
+ </div><table class="source_code">
455
+ <tr>
456
+ <td>
457
+ <pre class="lines">
458
+
459
+
460
+ 6
461
+ 7
462
+ 8</pre>
463
+ </td>
464
+ <td>
465
+ <pre class="code"><span class="info file"># File 'lib/bigbang/run.rb', line 6</span>
466
+
467
+ <span class='def def kw'>def</span> <span class='assigned_ips identifier id'>assigned_ips</span>
468
+ <span class='@assigned_ips ivar id'>@assigned_ips</span>
469
+ <span class='end end kw'>end</span>
470
+ </pre>
471
+ </td>
472
+ </tr>
473
+ </table>
474
+ </div>
475
+
476
+
477
+ <span id="domain=-instance_method"></span>
478
+ <span id="domain-instance_method"></span>
479
+ <div class="method_details ">
480
+ <p class="signature " id="domain-instance_method">
481
+
482
+ - (<tt>Object</tt>) <strong>domain</strong>
483
+
484
+
485
+
486
+ </p><div class="docstring">
487
+ <div class="discussion">
488
+ <p>
489
+ Returns the value of attribute domain
490
+ </p>
491
+
492
+
493
+ </div>
494
+ </div>
495
+ <div class="tags">
496
+
497
+ </div><table class="source_code">
498
+ <tr>
499
+ <td>
500
+ <pre class="lines">
501
+
502
+
503
+ 3
504
+ 4
505
+ 5</pre>
506
+ </td>
507
+ <td>
508
+ <pre class="code"><span class="info file"># File 'lib/bigbang/run.rb', line 3</span>
509
+
510
+ <span class='def def kw'>def</span> <span class='domain identifier id'>domain</span>
511
+ <span class='@domain ivar id'>@domain</span>
512
+ <span class='end end kw'>end</span>
513
+ </pre>
514
+ </td>
515
+ </tr>
516
+ </table>
517
+ </div>
518
+
519
+
520
+ <span id="ec2_instances=-instance_method"></span>
521
+ <span id="ec2_instances-instance_method"></span>
522
+ <div class="method_details ">
523
+ <p class="signature " id="ec2_instances-instance_method">
524
+
525
+ - (<tt>Object</tt>) <strong>ec2_instances</strong>
526
+
527
+
528
+
529
+ </p><div class="docstring">
530
+ <div class="discussion">
531
+ <p>
532
+ Returns the value of attribute ec2_instances
533
+ </p>
534
+
535
+
536
+ </div>
537
+ </div>
538
+ <div class="tags">
539
+
540
+ </div><table class="source_code">
541
+ <tr>
542
+ <td>
543
+ <pre class="lines">
544
+
545
+
546
+ 5
547
+ 6
548
+ 7</pre>
549
+ </td>
550
+ <td>
551
+ <pre class="code"><span class="info file"># File 'lib/bigbang/run.rb', line 5</span>
552
+
553
+ <span class='def def kw'>def</span> <span class='ec2_instances identifier id'>ec2_instances</span>
554
+ <span class='@ec2_instances ivar id'>@ec2_instances</span>
555
+ <span class='end end kw'>end</span>
556
+ </pre>
557
+ </td>
558
+ </tr>
559
+ </table>
560
+ </div>
561
+
562
+
563
+ <span id="elastic_ip=-instance_method"></span>
564
+ <span id="elastic_ip-instance_method"></span>
565
+ <div class="method_details ">
566
+ <p class="signature " id="elastic_ip-instance_method">
567
+
568
+ - (<tt>Object</tt>) <strong>elastic_ip</strong>
569
+
570
+
571
+
572
+ </p><div class="docstring">
573
+ <div class="discussion">
574
+ <p>
575
+ Returns the value of attribute elastic_ip
576
+ </p>
577
+
578
+
579
+ </div>
580
+ </div>
581
+ <div class="tags">
582
+
583
+ </div><table class="source_code">
584
+ <tr>
585
+ <td>
586
+ <pre class="lines">
587
+
588
+
589
+ 3
590
+ 4
591
+ 5</pre>
592
+ </td>
593
+ <td>
594
+ <pre class="code"><span class="info file"># File 'lib/bigbang/run.rb', line 3</span>
595
+
596
+ <span class='def def kw'>def</span> <span class='elastic_ip identifier id'>elastic_ip</span>
597
+ <span class='@elastic_ip ivar id'>@elastic_ip</span>
598
+ <span class='end end kw'>end</span>
599
+ </pre>
600
+ </td>
601
+ </tr>
602
+ </table>
603
+ </div>
604
+
605
+
606
+ <span id="instance=-instance_method"></span>
607
+ <span id="instance-instance_method"></span>
608
+ <div class="method_details ">
609
+ <p class="signature " id="instance-instance_method">
610
+
611
+ - (<tt>Object</tt>) <strong>instance</strong>
612
+
613
+
614
+
615
+ </p><div class="docstring">
616
+ <div class="discussion">
617
+ <p>
618
+ Returns the value of attribute instance
619
+ </p>
620
+
621
+
622
+ </div>
623
+ </div>
624
+ <div class="tags">
625
+
626
+ </div><table class="source_code">
627
+ <tr>
628
+ <td>
629
+ <pre class="lines">
630
+
631
+
632
+ 3
633
+ 4
634
+ 5</pre>
635
+ </td>
636
+ <td>
637
+ <pre class="code"><span class="info file"># File 'lib/bigbang/run.rb', line 3</span>
638
+
639
+ <span class='def def kw'>def</span> <span class='instance identifier id'>instance</span>
640
+ <span class='@instance ivar id'>@instance</span>
641
+ <span class='end end kw'>end</span>
642
+ </pre>
643
+ </td>
644
+ </tr>
645
+ </table>
646
+ </div>
647
+
648
+
649
+ <span id="wildcard_domain=-instance_method"></span>
650
+ <span id="wildcard_domain-instance_method"></span>
651
+ <div class="method_details ">
652
+ <p class="signature " id="wildcard_domain-instance_method">
653
+
654
+ - (<tt>Object</tt>) <strong>wildcard_domain</strong>
655
+
656
+
657
+
658
+ </p><div class="docstring">
659
+ <div class="discussion">
660
+ <p>
661
+ Returns the value of attribute wildcard_domain
662
+ </p>
663
+
664
+
665
+ </div>
666
+ </div>
667
+ <div class="tags">
668
+
669
+ </div><table class="source_code">
670
+ <tr>
671
+ <td>
672
+ <pre class="lines">
673
+
674
+
675
+ 3
676
+ 4
677
+ 5</pre>
678
+ </td>
679
+ <td>
680
+ <pre class="code"><span class="info file"># File 'lib/bigbang/run.rb', line 3</span>
681
+
682
+ <span class='def def kw'>def</span> <span class='wildcard_domain identifier id'>wildcard_domain</span>
683
+ <span class='@wildcard_domain ivar id'>@wildcard_domain</span>
684
+ <span class='end end kw'>end</span>
685
+ </pre>
686
+ </td>
687
+ </tr>
688
+ </table>
689
+ </div>
690
+
691
+
692
+ <span id="zone_sizes=-instance_method"></span>
693
+ <span id="zone_sizes-instance_method"></span>
694
+ <div class="method_details ">
695
+ <p class="signature " id="zone_sizes-instance_method">
696
+
697
+ - (<tt>Object</tt>) <strong>zone_sizes</strong>
698
+
699
+
700
+
701
+ </p><div class="docstring">
702
+ <div class="discussion">
703
+ <p>
704
+ Returns the value of attribute zone_sizes
705
+ </p>
706
+
707
+
708
+ </div>
709
+ </div>
710
+ <div class="tags">
711
+
712
+ </div><table class="source_code">
713
+ <tr>
714
+ <td>
715
+ <pre class="lines">
716
+
717
+
718
+ 4
719
+ 5
720
+ 6</pre>
721
+ </td>
722
+ <td>
723
+ <pre class="code"><span class="info file"># File 'lib/bigbang/run.rb', line 4</span>
724
+
725
+ <span class='def def kw'>def</span> <span class='zone_sizes identifier id'>zone_sizes</span>
726
+ <span class='@zone_sizes ivar id'>@zone_sizes</span>
727
+ <span class='end end kw'>end</span>
728
+ </pre>
729
+ </td>
730
+ </tr>
731
+ </table>
732
+ </div>
733
+
734
+ </div>
735
+
736
+
737
+ <div id="instance_method_details" class="method_details_list">
738
+ <h2>Instance Method Details</h2>
739
+
740
+
741
+ <div class="method_details first">
742
+ <p class="signature first" id="instances_count-instance_method">
743
+
744
+ - (<tt>Object</tt>) <strong>instances_count</strong>
745
+
746
+
747
+
748
+ </p><table class="source_code">
749
+ <tr>
750
+ <td>
751
+ <pre class="lines">
752
+
753
+
754
+ 22
755
+ 23
756
+ 24</pre>
757
+ </td>
758
+ <td>
759
+ <pre class="code"><span class="info file"># File 'lib/bigbang/run.rb', line 22</span>
760
+
761
+ <span class='def def kw'>def</span> <span class='instances_count identifier id'>instances_count</span>
762
+ <span class='zones identifier id'>zones</span><span class='dot token'>.</span><span class='values identifier id'>values</span><span class='dot token'>.</span><span class='inject identifier id'>inject</span><span class='lparen token'>(</span><span class='integer val'>0</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='m identifier id'>m</span><span class='comma token'>,</span><span class='v identifier id'>v</span><span class='bitor op'>|</span> <span class='m identifier id'>m</span> <span class='opasgn op'>+=</span> <span class='v identifier id'>v</span> <span class='rbrace token'>}</span>
763
+ <span class='end end kw'>end</span>
764
+ </pre>
765
+ </td>
766
+ </tr>
767
+ </table>
768
+ </div>
769
+
770
+ <div class="method_details ">
771
+ <p class="signature " id="zones-instance_method">
772
+
773
+ - (<tt>Object</tt>) <strong>zones</strong>
774
+
775
+
776
+
777
+ </p><table class="source_code">
778
+ <tr>
779
+ <td>
780
+ <pre class="lines">
781
+
782
+
783
+ 16
784
+ 17
785
+ 18
786
+ 19
787
+ 20</pre>
788
+ </td>
789
+ <td>
790
+ <pre class="code"><span class="info file"># File 'lib/bigbang/run.rb', line 16</span>
791
+
792
+ <span class='def def kw'>def</span> <span class='zones identifier id'>zones</span>
793
+ <span class='return return kw'>return</span> <span class='@zone_sizes ivar id'>@zone_sizes</span> <span class='unless unless_mod kw'>unless</span> <span class='@zone_sizes ivar id'>@zone_sizes</span><span class='dot token'>.</span><span class='empty? fid id'>empty?</span>
794
+
795
+ <span class='lbrace token'>{</span> <span class='nil nil kw'>nil</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>1</span> <span class='rbrace token'>}</span>
796
+ <span class='end end kw'>end</span>
797
+ </pre>
798
+ </td>
799
+ </tr>
800
+ </table>
801
+ </div>
802
+
803
+ </div>
804
+
805
+ </div>
806
+
807
+ <div id="footer">
808
+ Generated on Sat Jul 16 01:05:16 2011 by
809
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
810
+ 0.7.2 (ruby-1.8.7).
811
+ </div>
812
+
813
+ </body>
814
+ </html>