bigbang 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,522 +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: BigBang::Provider
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 (P)</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">Provider</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::Provider
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::Provider</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/provider.rb</dd>
91
-
92
- </dl>
93
- <div class="clear"></div>
94
-
95
-
96
-
97
-
98
-
99
-
100
-
101
- <h2>
102
- Instance Method Summary
103
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
104
- </h2>
105
-
106
- <ul class="summary">
107
-
108
- <li class="public ">
109
- <span class="summary_signature">
110
-
111
- <a href="#configured_zone-instance_method" title="#configured_zone (instance method)">- (Object) <strong>configured_zone</strong> </a>
112
-
113
-
114
-
115
- </span>
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
- <span class="summary_desc"><div class='inline'></div></span>
125
-
126
- </li>
127
-
128
-
129
- <li class="public ">
130
- <span class="summary_signature">
131
-
132
- <a href="#create_dns-instance_method" title="#create_dns (instance method)">- (Object) <strong>create_dns</strong>(domain, addr) </a>
133
-
134
-
135
-
136
- </span>
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
- <span class="summary_desc"><div class='inline'></div></span>
146
-
147
- </li>
148
-
149
-
150
- <li class="public ">
151
- <span class="summary_signature">
152
-
153
- <a href="#dns-instance_method" title="#dns (instance method)">- (Object) <strong>dns</strong> </a>
154
-
155
-
156
-
157
- </span>
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
- <span class="summary_desc"><div class='inline'></div></span>
167
-
168
- </li>
169
-
170
-
171
- <li class="public ">
172
- <span class="summary_signature">
173
-
174
- <a href="#ec2-instance_method" title="#ec2 (instance method)">- (Object) <strong>ec2</strong> </a>
175
-
176
-
177
-
178
- </span>
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
- <span class="summary_desc"><div class='inline'></div></span>
188
-
189
- </li>
190
-
191
-
192
- <li class="public ">
193
- <span class="summary_signature">
194
-
195
- <a href="#eips-instance_method" title="#eips (instance method)">- (Object) <strong>eips</strong> </a>
196
-
197
-
198
-
199
- </span>
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
- <span class="summary_desc"><div class='inline'></div></span>
209
-
210
- </li>
211
-
212
-
213
- <li class="public ">
214
- <span class="summary_signature">
215
-
216
- <a href="#free_eips-instance_method" title="#free_eips (instance method)">- (Object) <strong>free_eips</strong> </a>
217
-
218
-
219
-
220
- </span>
221
-
222
-
223
-
224
-
225
-
226
-
227
-
228
-
229
- <span class="summary_desc"><div class='inline'></div></span>
230
-
231
- </li>
232
-
233
-
234
- <li class="public ">
235
- <span class="summary_signature">
236
-
237
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (Provider) <strong>initialize</strong>(config) </a>
238
-
239
-
240
-
241
- </span>
242
-
243
- <span class="note title constructor">constructor</span>
244
-
245
-
246
-
247
-
248
-
249
-
250
-
251
-
252
- <span class="summary_desc"><div class='inline'><p>
253
- A new instance of Provider.
254
- </p>
255
- </div></span>
256
-
257
- </li>
258
-
259
-
260
- </ul>
261
-
262
-
263
- <div id="constructor_details" class="method_details_list">
264
- <h2>Constructor Details</h2>
265
-
266
- <div class="method_details first">
267
- <p class="signature first" id="initialize-instance_method">
268
-
269
- - (<tt><span class='object_link'><a href="" title="BigBang::Provider (class)">Provider</a></span></tt>) <strong>initialize</strong>(config)
270
-
271
-
272
-
273
- </p><div class="docstring">
274
- <div class="discussion">
275
- <p>
276
- A new instance of Provider
277
- </p>
278
-
279
-
280
- </div>
281
- </div>
282
- <div class="tags">
283
-
284
- </div><table class="source_code">
285
- <tr>
286
- <td>
287
- <pre class="lines">
288
-
289
-
290
- 3
291
- 4
292
- 5</pre>
293
- </td>
294
- <td>
295
- <pre class="code"><span class="info file"># File 'lib/bigbang/provider.rb', line 3</span>
296
-
297
- <span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='config identifier id'>config</span><span class='rparen token'>)</span>
298
- <span class='@config ivar id'>@config</span> <span class='assign token'>=</span> <span class='config identifier id'>config</span>
299
- <span class='end end kw'>end</span>
300
- </pre>
301
- </td>
302
- </tr>
303
- </table>
304
- </div>
305
-
306
- </div>
307
-
308
-
309
- <div id="instance_method_details" class="method_details_list">
310
- <h2>Instance Method Details</h2>
311
-
312
-
313
- <div class="method_details first">
314
- <p class="signature first" id="configured_zone-instance_method">
315
-
316
- - (<tt>Object</tt>) <strong>configured_zone</strong>
317
-
318
-
319
-
320
- </p><table class="source_code">
321
- <tr>
322
- <td>
323
- <pre class="lines">
324
-
325
-
326
- 19
327
- 20
328
- 21</pre>
329
- </td>
330
- <td>
331
- <pre class="code"><span class="info file"># File 'lib/bigbang/provider.rb', line 19</span>
332
-
333
- <span class='def def kw'>def</span> <span class='configured_zone identifier id'>configured_zone</span>
334
- <span class='dns identifier id'>dns</span><span class='dot token'>.</span><span class='zones identifier id'>zones</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='z identifier id'>z</span><span class='bitor op'>|</span> <span class='z identifier id'>z</span><span class='dot token'>.</span><span class='domain identifier id'>domain</span> <span class='eq op'>==</span> <span class='@config ivar id'>@config</span><span class='dot token'>.</span><span class='domain identifier id'>domain</span> <span class='rbrace token'>}</span>
335
- <span class='end end kw'>end</span>
336
- </pre>
337
- </td>
338
- </tr>
339
- </table>
340
- </div>
341
-
342
- <div class="method_details ">
343
- <p class="signature " id="create_dns-instance_method">
344
-
345
- - (<tt>Object</tt>) <strong>create_dns</strong>(domain, addr)
346
-
347
-
348
-
349
- </p><table class="source_code">
350
- <tr>
351
- <td>
352
- <pre class="lines">
353
-
354
-
355
- 23
356
- 24
357
- 25
358
- 26
359
- 27
360
- 28</pre>
361
- </td>
362
- <td>
363
- <pre class="code"><span class="info file"># File 'lib/bigbang/provider.rb', line 23</span>
364
-
365
- <span class='def def kw'>def</span> <span class='create_dns identifier id'>create_dns</span><span class='lparen token'>(</span><span class='domain identifier id'>domain</span><span class='comma token'>,</span> <span class='addr identifier id'>addr</span><span class='rparen token'>)</span>
366
- <span class='configured_zone identifier id'>configured_zone</span><span class='dot token'>.</span><span class='records identifier id'>records</span><span class='dot token'>.</span><span class='create identifier id'>create</span><span class='lparen token'>(</span>
367
- <span class='symbol val'>:value</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='addr identifier id'>addr</span><span class='comma token'>,</span>
368
- <span class='symbol val'>:name</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='domain identifier id'>domain</span><span class='comma token'>,</span>
369
- <span class='symbol val'>:type</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>&quot;A&quot;</span><span class='rparen token'>)</span>
370
- <span class='end end kw'>end</span>
371
- </pre>
372
- </td>
373
- </tr>
374
- </table>
375
- </div>
376
-
377
- <div class="method_details ">
378
- <p class="signature " id="dns-instance_method">
379
-
380
- - (<tt>Object</tt>) <strong>dns</strong>
381
-
382
-
383
-
384
- </p><table class="source_code">
385
- <tr>
386
- <td>
387
- <pre class="lines">
388
-
389
-
390
- 14
391
- 15
392
- 16
393
- 17</pre>
394
- </td>
395
- <td>
396
- <pre class="code"><span class="info file"># File 'lib/bigbang/provider.rb', line 14</span>
397
-
398
- <span class='def def kw'>def</span> <span class='dns identifier id'>dns</span>
399
- <span class='return return kw'>return</span> <span class='@dns ivar id'>@dns</span> <span class='unless unless_mod kw'>unless</span> <span class='@dns ivar id'>@dns</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
400
- <span class='@dns ivar id'>@dns</span> <span class='assign token'>=</span> <span class='Fog constant id'>Fog</span><span class='colon2 op'>::</span><span class='DNS constant id'>DNS</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='@config ivar id'>@config</span><span class='dot token'>.</span><span class='dns_opts identifier id'>dns_opts</span><span class='rparen token'>)</span>
401
- <span class='end end kw'>end</span>
402
- </pre>
403
- </td>
404
- </tr>
405
- </table>
406
- </div>
407
-
408
- <div class="method_details ">
409
- <p class="signature " id="ec2-instance_method">
410
-
411
- - (<tt>Object</tt>) <strong>ec2</strong>
412
-
413
-
414
-
415
- </p><table class="source_code">
416
- <tr>
417
- <td>
418
- <pre class="lines">
419
-
420
-
421
- 7
422
- 8
423
- 9
424
- 10
425
- 11
426
- 12</pre>
427
- </td>
428
- <td>
429
- <pre class="code"><span class="info file"># File 'lib/bigbang/provider.rb', line 7</span>
430
-
431
- <span class='def def kw'>def</span> <span class='ec2 identifier id'>ec2</span>
432
- <span class='return return kw'>return</span> <span class='@ec2 ivar id'>@ec2</span> <span class='unless unless_mod kw'>unless</span> <span class='@ec2 ivar id'>@ec2</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
433
- <span class='@ec2 ivar id'>@ec2</span> <span class='assign token'>=</span> <span class='AWS constant id'>AWS</span><span class='colon2 op'>::</span><span class='EC2 constant id'>EC2</span><span class='colon2 op'>::</span><span class='Base constant id'>Base</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span>
434
- <span class='symbol val'>:access_key_id</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='@config ivar id'>@config</span><span class='dot token'>.</span><span class='access_key_id identifier id'>access_key_id</span><span class='comma token'>,</span>
435
- <span class='symbol val'>:secret_access_key</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='@config ivar id'>@config</span><span class='dot token'>.</span><span class='secret_key identifier id'>secret_key</span><span class='rparen token'>)</span>
436
- <span class='end end kw'>end</span>
437
- </pre>
438
- </td>
439
- </tr>
440
- </table>
441
- </div>
442
-
443
- <div class="method_details ">
444
- <p class="signature " id="eips-instance_method">
445
-
446
- - (<tt>Object</tt>) <strong>eips</strong>
447
-
448
-
449
-
450
- </p><table class="source_code">
451
- <tr>
452
- <td>
453
- <pre class="lines">
454
-
455
-
456
- 30
457
- 31
458
- 32
459
- 33
460
- 34
461
- 35
462
- 36
463
- 37</pre>
464
- </td>
465
- <td>
466
- <pre class="code"><span class="info file"># File 'lib/bigbang/provider.rb', line 30</span>
467
-
468
- <span class='def def kw'>def</span> <span class='eips identifier id'>eips</span>
469
- <span class='aset identifier id'>aset</span> <span class='assign token'>=</span> <span class='ec2 identifier id'>ec2</span><span class='dot token'>.</span><span class='describe_addresses identifier id'>describe_addresses</span><span class='dot token'>.</span><span class='addressesSet identifier id'>addressesSet</span>
470
- <span class='if if kw'>if</span> <span class='aset identifier id'>aset</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span>
471
- <span class='return return kw'>return</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
472
- <span class='else else kw'>else</span>
473
- <span class='return return kw'>return</span> <span class='aset identifier id'>aset</span><span class='dot token'>.</span><span class='item identifier id'>item</span>
474
- <span class='end end kw'>end</span>
475
- <span class='end end kw'>end</span>
476
- </pre>
477
- </td>
478
- </tr>
479
- </table>
480
- </div>
481
-
482
- <div class="method_details ">
483
- <p class="signature " id="free_eips-instance_method">
484
-
485
- - (<tt>Object</tt>) <strong>free_eips</strong>
486
-
487
-
488
-
489
- </p><table class="source_code">
490
- <tr>
491
- <td>
492
- <pre class="lines">
493
-
494
-
495
- 39
496
- 40
497
- 41</pre>
498
- </td>
499
- <td>
500
- <pre class="code"><span class="info file"># File 'lib/bigbang/provider.rb', line 39</span>
501
-
502
- <span class='def def kw'>def</span> <span class='free_eips identifier id'>free_eips</span>
503
- <span class='eips identifier id'>eips</span><span class='dot token'>.</span><span class='find_all identifier id'>find_all</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='eip identifier id'>eip</span><span class='bitor op'>|</span> <span class='eip identifier id'>eip</span><span class='dot token'>.</span><span class='instanceId identifier id'>instanceId</span><span class='dot token'>.</span><span class='nil? fid id'>nil?</span> <span class='rbrace token'>}</span>
504
- <span class='end end kw'>end</span>
505
- </pre>
506
- </td>
507
- </tr>
508
- </table>
509
- </div>
510
-
511
- </div>
512
-
513
- </div>
514
-
515
- <div id="footer">
516
- Generated on Sat Jul 16 01:05:15 2011 by
517
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
518
- 0.7.2 (ruby-1.8.7).
519
- </div>
520
-
521
- </body>
522
- </html>