vagrant-cloudstack 0.10.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.travis.yml +1 -1
  4. data/CHANGELOG.md +8 -0
  5. data/Gemfile +5 -2
  6. data/README.md +48 -10
  7. data/build_rpm.sh +1 -1
  8. data/coverage/.last_run.json +5 -0
  9. data/coverage/.resultset.json +569 -0
  10. data/coverage/.resultset.json.lock +0 -0
  11. data/coverage/assets/0.10.0/application.css +799 -0
  12. data/coverage/assets/0.10.0/application.js +1707 -0
  13. data/coverage/assets/0.10.0/colorbox/border.png +0 -0
  14. data/coverage/assets/0.10.0/colorbox/controls.png +0 -0
  15. data/coverage/assets/0.10.0/colorbox/loading.gif +0 -0
  16. data/coverage/assets/0.10.0/colorbox/loading_background.png +0 -0
  17. data/coverage/assets/0.10.0/favicon_green.png +0 -0
  18. data/coverage/assets/0.10.0/favicon_red.png +0 -0
  19. data/coverage/assets/0.10.0/favicon_yellow.png +0 -0
  20. data/coverage/assets/0.10.0/loading.gif +0 -0
  21. data/coverage/assets/0.10.0/magnify.png +0 -0
  22. data/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  23. data/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  24. data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  25. data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  26. data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  27. data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  28. data/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  29. data/coverage/assets/0.10.0/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  30. data/coverage/assets/0.10.0/smoothness/images/ui-icons_222222_256x240.png +0 -0
  31. data/coverage/assets/0.10.0/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  32. data/coverage/assets/0.10.0/smoothness/images/ui-icons_454545_256x240.png +0 -0
  33. data/coverage/assets/0.10.0/smoothness/images/ui-icons_888888_256x240.png +0 -0
  34. data/coverage/assets/0.10.0/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  35. data/coverage/index.html +3438 -0
  36. data/lib/vagrant-cloudstack/action.rb +2 -3
  37. data/lib/vagrant-cloudstack/action/read_ssh_info.rb +14 -6
  38. data/lib/vagrant-cloudstack/action/run_instance.rb +205 -32
  39. data/lib/vagrant-cloudstack/action/terminate_instance.rb +78 -12
  40. data/lib/vagrant-cloudstack/config.rb +65 -1
  41. data/lib/vagrant-cloudstack/version.rb +1 -1
  42. data/locales/en.yml +10 -0
  43. data/spec/spec_helper.rb +5 -0
  44. data/spec/vagrant-cloudstack/config_spec.rb +67 -26
  45. data/vagrant-cloudstack.gemspec +3 -3
  46. metadata +60 -29
  47. data/lib/vagrant-cloudstack/action/sync_folders.rb +0 -88
Binary file
Binary file
@@ -0,0 +1,3438 @@
1
+ <!DOCTYPE html>
2
+ <html xmlns='http://www.w3.org/1999/xhtml'>
3
+ <head>
4
+ <title>Code coverage for Vagrant-cloudstack</title>
5
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
6
+ <script src='./assets/0.10.0/application.js' type='text/javascript'></script>
7
+ <link href='./assets/0.10.0/application.css' media='screen, projection, print' rel='stylesheet' type='text/css'>
8
+ <link rel="shortcut icon" type="image/png" href="./assets/0.10.0/favicon_yellow.png" />
9
+ <link rel="icon" type="image/png" href="./assets/0.10.0/favicon.png" />
10
+ </head>
11
+
12
+ <body>
13
+ <div id="loading">
14
+ <img src="./assets/0.10.0/loading.gif" alt="loading"/>
15
+ </div>
16
+ <div id="wrapper" style="display:none;">
17
+ <div class="timestamp">Generated <abbr class="timeago" title="2015-05-04T13:44:32+02:00">2015-05-04T13:44:32+02:00</abbr></div>
18
+ <ul class="group_tabs"></ul>
19
+
20
+ <div id="content">
21
+ <div class="file_list_container" id="AllFiles">
22
+ <h2>
23
+ <span class="group_name">All Files</span>
24
+ (<span class="covered_percent"><span class="yellow">84.1%</span></span>
25
+ covered at
26
+ <span class="covered_strength">
27
+ <span class="green">
28
+ 62.8
29
+ </span>
30
+ </span> hits/line)
31
+ </h2>
32
+ <a name="AllFiles"></a>
33
+ <div>
34
+ <b>3</b> files in total.
35
+ <b>195</b> relevant lines.
36
+ <span class="green"><b>164</b> lines covered</span> and
37
+ <span class="red"><b>31</b> lines missed </span>
38
+ </div>
39
+ <table class="file_list">
40
+ <thead>
41
+ <tr>
42
+ <th>File</th>
43
+ <th>% covered</th>
44
+ <th>Lines</th>
45
+ <th>Relevant Lines</th>
46
+ <th>Lines covered</th>
47
+ <th>Lines missed</th>
48
+ <th>Avg. Hits / Line</th>
49
+ </tr>
50
+ </thead>
51
+ <tbody>
52
+
53
+ <tr>
54
+ <td class="strong"><a href="#07aa22a4e9be695996a2ae0606db0cab9a06e016" class="src_link" title="lib/vagrant-cloudstack.rb">lib/vagrant-cloudstack.rb</a></td>
55
+ <td class="yellow strong">88.89 %</td>
56
+ <td>17</td>
57
+ <td>9</td>
58
+ <td>8</td>
59
+ <td>1</td>
60
+ <td>0.9</td>
61
+ </tr>
62
+
63
+ <tr>
64
+ <td class="strong"><a href="#b91a3fa13795cf34a5b58ce641216172f9227095" class="src_link" title="lib/vagrant-cloudstack/config.rb">lib/vagrant-cloudstack/config.rb</a></td>
65
+ <td class="green strong">94.12 %</td>
66
+ <td>458</td>
67
+ <td>153</td>
68
+ <td>144</td>
69
+ <td>9</td>
70
+ <td>79.9</td>
71
+ </tr>
72
+
73
+ <tr>
74
+ <td class="strong"><a href="#204f091153973f7609f21696da5701030ffc13c0" class="src_link" title="lib/vagrant-cloudstack/plugin.rb">lib/vagrant-cloudstack/plugin.rb</a></td>
75
+ <td class="red strong">36.36 %</td>
76
+ <td>72</td>
77
+ <td>33</td>
78
+ <td>12</td>
79
+ <td>21</td>
80
+ <td>0.4</td>
81
+ </tr>
82
+
83
+ </tbody>
84
+ </table>
85
+ </div>
86
+
87
+
88
+
89
+ </div>
90
+
91
+ <div id="footer">
92
+ Generated by <a href="http://github.com/colszowka/simplecov">simplecov</a> v0.10.0
93
+ and simplecov-html v0.10.0<br/>
94
+ using RSpec
95
+ </div>
96
+
97
+ <div class="source_files">
98
+
99
+ <div class="source_table" id="07aa22a4e9be695996a2ae0606db0cab9a06e016">
100
+ <div class="header">
101
+ <h3>lib/vagrant-cloudstack.rb</h3>
102
+ <h4><span class="yellow">88.89 %</span> covered</h4>
103
+ <div>
104
+ <b>9</b> relevant lines.
105
+ <span class="green"><b>8</b> lines covered</span> and
106
+ <span class="red"><b>1</b> lines missed.</span>
107
+ </div>
108
+ </div>
109
+
110
+ <pre>
111
+ <ol>
112
+
113
+ <li class="covered" data-hits="1" data-linenumber="1">
114
+ <span class="hits">1</span>
115
+
116
+ <code class="ruby">require &quot;pathname&quot;</code>
117
+ </li>
118
+
119
+ <li class="covered" data-hits="1" data-linenumber="2">
120
+ <span class="hits">1</span>
121
+
122
+ <code class="ruby">require &quot;vagrant-cloudstack/plugin&quot;</code>
123
+ </li>
124
+
125
+ <li class="never" data-hits="" data-linenumber="3">
126
+
127
+
128
+ <code class="ruby"></code>
129
+ </li>
130
+
131
+ <li class="covered" data-hits="1" data-linenumber="4">
132
+ <span class="hits">1</span>
133
+
134
+ <code class="ruby">module VagrantPlugins</code>
135
+ </li>
136
+
137
+ <li class="covered" data-hits="1" data-linenumber="5">
138
+ <span class="hits">1</span>
139
+
140
+ <code class="ruby"> module Cloudstack</code>
141
+ </li>
142
+
143
+ <li class="covered" data-hits="1" data-linenumber="6">
144
+ <span class="hits">1</span>
145
+
146
+ <code class="ruby"> lib_path = Pathname.new(File.expand_path(&quot;../vagrant-cloudstack&quot;, __FILE__))</code>
147
+ </li>
148
+
149
+ <li class="covered" data-hits="1" data-linenumber="7">
150
+ <span class="hits">1</span>
151
+
152
+ <code class="ruby"> autoload :Action, lib_path.join(&quot;action&quot;)</code>
153
+ </li>
154
+
155
+ <li class="covered" data-hits="1" data-linenumber="8">
156
+ <span class="hits">1</span>
157
+
158
+ <code class="ruby"> autoload :Errors, lib_path.join(&quot;errors&quot;)</code>
159
+ </li>
160
+
161
+ <li class="never" data-hits="" data-linenumber="9">
162
+
163
+
164
+ <code class="ruby"></code>
165
+ </li>
166
+
167
+ <li class="never" data-hits="" data-linenumber="10">
168
+
169
+
170
+ <code class="ruby"> # This returns the path to the source of this plugin.</code>
171
+ </li>
172
+
173
+ <li class="never" data-hits="" data-linenumber="11">
174
+
175
+
176
+ <code class="ruby"> #</code>
177
+ </li>
178
+
179
+ <li class="never" data-hits="" data-linenumber="12">
180
+
181
+
182
+ <code class="ruby"> # @return [Pathname]</code>
183
+ </li>
184
+
185
+ <li class="covered" data-hits="1" data-linenumber="13">
186
+ <span class="hits">1</span>
187
+
188
+ <code class="ruby"> def self.source_root</code>
189
+ </li>
190
+
191
+ <li class="missed" data-hits="0" data-linenumber="14">
192
+
193
+
194
+ <code class="ruby"> @source_root ||= Pathname.new(File.expand_path(&quot;../../&quot;, __FILE__))</code>
195
+ </li>
196
+
197
+ <li class="never" data-hits="" data-linenumber="15">
198
+
199
+
200
+ <code class="ruby"> end</code>
201
+ </li>
202
+
203
+ <li class="never" data-hits="" data-linenumber="16">
204
+
205
+
206
+ <code class="ruby"> end</code>
207
+ </li>
208
+
209
+ <li class="never" data-hits="" data-linenumber="17">
210
+
211
+
212
+ <code class="ruby">end</code>
213
+ </li>
214
+
215
+ </ol>
216
+ </pre>
217
+ </div>
218
+
219
+ <div class="source_table" id="b91a3fa13795cf34a5b58ce641216172f9227095">
220
+ <div class="header">
221
+ <h3>lib/vagrant-cloudstack/config.rb</h3>
222
+ <h4><span class="green">94.12 %</span> covered</h4>
223
+ <div>
224
+ <b>153</b> relevant lines.
225
+ <span class="green"><b>144</b> lines covered</span> and
226
+ <span class="red"><b>9</b> lines missed.</span>
227
+ </div>
228
+ </div>
229
+
230
+ <pre>
231
+ <ol>
232
+
233
+ <li class="covered" data-hits="1" data-linenumber="1">
234
+ <span class="hits">1</span>
235
+
236
+ <code class="ruby">require &quot;vagrant&quot;</code>
237
+ </li>
238
+
239
+ <li class="never" data-hits="" data-linenumber="2">
240
+
241
+
242
+ <code class="ruby"></code>
243
+ </li>
244
+
245
+ <li class="covered" data-hits="1" data-linenumber="3">
246
+ <span class="hits">1</span>
247
+
248
+ <code class="ruby">module VagrantPlugins</code>
249
+ </li>
250
+
251
+ <li class="covered" data-hits="1" data-linenumber="4">
252
+ <span class="hits">1</span>
253
+
254
+ <code class="ruby"> module Cloudstack</code>
255
+ </li>
256
+
257
+ <li class="covered" data-hits="1" data-linenumber="5">
258
+ <span class="hits">1</span>
259
+
260
+ <code class="ruby"> class Config &lt; Vagrant.plugin(&quot;2&quot;, :config)</code>
261
+ </li>
262
+
263
+ <li class="never" data-hits="" data-linenumber="6">
264
+
265
+
266
+ <code class="ruby"> # Cloudstack api host.</code>
267
+ </li>
268
+
269
+ <li class="never" data-hits="" data-linenumber="7">
270
+
271
+
272
+ <code class="ruby"> #</code>
273
+ </li>
274
+
275
+ <li class="never" data-hits="" data-linenumber="8">
276
+
277
+
278
+ <code class="ruby"> # @return [String]</code>
279
+ </li>
280
+
281
+ <li class="covered" data-hits="1" data-linenumber="9">
282
+ <span class="hits">1</span>
283
+
284
+ <code class="ruby"> attr_accessor :host</code>
285
+ </li>
286
+
287
+ <li class="never" data-hits="" data-linenumber="10">
288
+
289
+
290
+ <code class="ruby"></code>
291
+ </li>
292
+
293
+ <li class="never" data-hits="" data-linenumber="11">
294
+
295
+
296
+ <code class="ruby"> # Hostname for the machine instance</code>
297
+ </li>
298
+
299
+ <li class="never" data-hits="" data-linenumber="12">
300
+
301
+
302
+ <code class="ruby"> # This will be passed through to the api.</code>
303
+ </li>
304
+
305
+ <li class="never" data-hits="" data-linenumber="13">
306
+
307
+
308
+ <code class="ruby"> #</code>
309
+ </li>
310
+
311
+ <li class="never" data-hits="" data-linenumber="14">
312
+
313
+
314
+ <code class="ruby"> # @return [String]</code>
315
+ </li>
316
+
317
+ <li class="covered" data-hits="1" data-linenumber="15">
318
+ <span class="hits">1</span>
319
+
320
+ <code class="ruby"> attr_accessor :name</code>
321
+ </li>
322
+
323
+ <li class="never" data-hits="" data-linenumber="16">
324
+
325
+
326
+ <code class="ruby"></code>
327
+ </li>
328
+
329
+ <li class="never" data-hits="" data-linenumber="17">
330
+
331
+
332
+ <code class="ruby"> # Cloudstack api path.</code>
333
+ </li>
334
+
335
+ <li class="never" data-hits="" data-linenumber="18">
336
+
337
+
338
+ <code class="ruby"> #</code>
339
+ </li>
340
+
341
+ <li class="never" data-hits="" data-linenumber="19">
342
+
343
+
344
+ <code class="ruby"> # @return [String]</code>
345
+ </li>
346
+
347
+ <li class="covered" data-hits="1" data-linenumber="20">
348
+ <span class="hits">1</span>
349
+
350
+ <code class="ruby"> attr_accessor :path</code>
351
+ </li>
352
+
353
+ <li class="never" data-hits="" data-linenumber="21">
354
+
355
+
356
+ <code class="ruby"></code>
357
+ </li>
358
+
359
+ <li class="never" data-hits="" data-linenumber="22">
360
+
361
+
362
+ <code class="ruby"> # Cloudstack api port.</code>
363
+ </li>
364
+
365
+ <li class="never" data-hits="" data-linenumber="23">
366
+
367
+
368
+ <code class="ruby"> #</code>
369
+ </li>
370
+
371
+ <li class="never" data-hits="" data-linenumber="24">
372
+
373
+
374
+ <code class="ruby"> # @return [String]</code>
375
+ </li>
376
+
377
+ <li class="covered" data-hits="1" data-linenumber="25">
378
+ <span class="hits">1</span>
379
+
380
+ <code class="ruby"> attr_accessor :port</code>
381
+ </li>
382
+
383
+ <li class="never" data-hits="" data-linenumber="26">
384
+
385
+
386
+ <code class="ruby"></code>
387
+ </li>
388
+
389
+ <li class="never" data-hits="" data-linenumber="27">
390
+
391
+
392
+ <code class="ruby"> # Cloudstack api scheme</code>
393
+ </li>
394
+
395
+ <li class="never" data-hits="" data-linenumber="28">
396
+
397
+
398
+ <code class="ruby"> #</code>
399
+ </li>
400
+
401
+ <li class="never" data-hits="" data-linenumber="29">
402
+
403
+
404
+ <code class="ruby"> # @return [String]</code>
405
+ </li>
406
+
407
+ <li class="covered" data-hits="1" data-linenumber="30">
408
+ <span class="hits">1</span>
409
+
410
+ <code class="ruby"> attr_accessor :scheme</code>
411
+ </li>
412
+
413
+ <li class="never" data-hits="" data-linenumber="31">
414
+
415
+
416
+ <code class="ruby"></code>
417
+ </li>
418
+
419
+ <li class="never" data-hits="" data-linenumber="32">
420
+
421
+
422
+ <code class="ruby"> # The API key for accessing Cloudstack.</code>
423
+ </li>
424
+
425
+ <li class="never" data-hits="" data-linenumber="33">
426
+
427
+
428
+ <code class="ruby"> #</code>
429
+ </li>
430
+
431
+ <li class="never" data-hits="" data-linenumber="34">
432
+
433
+
434
+ <code class="ruby"> # @return [String]</code>
435
+ </li>
436
+
437
+ <li class="covered" data-hits="1" data-linenumber="35">
438
+ <span class="hits">1</span>
439
+
440
+ <code class="ruby"> attr_accessor :api_key</code>
441
+ </li>
442
+
443
+ <li class="never" data-hits="" data-linenumber="36">
444
+
445
+
446
+ <code class="ruby"></code>
447
+ </li>
448
+
449
+ <li class="never" data-hits="" data-linenumber="37">
450
+
451
+
452
+ <code class="ruby"> # The secret key for accessing Cloudstack.</code>
453
+ </li>
454
+
455
+ <li class="never" data-hits="" data-linenumber="38">
456
+
457
+
458
+ <code class="ruby"> #</code>
459
+ </li>
460
+
461
+ <li class="never" data-hits="" data-linenumber="39">
462
+
463
+
464
+ <code class="ruby"> # @return [String]</code>
465
+ </li>
466
+
467
+ <li class="covered" data-hits="1" data-linenumber="40">
468
+ <span class="hits">1</span>
469
+
470
+ <code class="ruby"> attr_accessor :secret_key</code>
471
+ </li>
472
+
473
+ <li class="never" data-hits="" data-linenumber="41">
474
+
475
+
476
+ <code class="ruby"></code>
477
+ </li>
478
+
479
+ <li class="never" data-hits="" data-linenumber="42">
480
+
481
+
482
+ <code class="ruby"> # The timeout to wait for an instance to become ready.</code>
483
+ </li>
484
+
485
+ <li class="never" data-hits="" data-linenumber="43">
486
+
487
+
488
+ <code class="ruby"> #</code>
489
+ </li>
490
+
491
+ <li class="never" data-hits="" data-linenumber="44">
492
+
493
+
494
+ <code class="ruby"> # @return [Fixnum]</code>
495
+ </li>
496
+
497
+ <li class="covered" data-hits="1" data-linenumber="45">
498
+ <span class="hits">1</span>
499
+
500
+ <code class="ruby"> attr_accessor :instance_ready_timeout</code>
501
+ </li>
502
+
503
+ <li class="never" data-hits="" data-linenumber="46">
504
+
505
+
506
+ <code class="ruby"></code>
507
+ </li>
508
+
509
+ <li class="never" data-hits="" data-linenumber="47">
510
+
511
+
512
+ <code class="ruby"> # Domain id to launch the instance into.</code>
513
+ </li>
514
+
515
+ <li class="never" data-hits="" data-linenumber="48">
516
+
517
+
518
+ <code class="ruby"> #</code>
519
+ </li>
520
+
521
+ <li class="never" data-hits="" data-linenumber="49">
522
+
523
+
524
+ <code class="ruby"> # @return [String]</code>
525
+ </li>
526
+
527
+ <li class="covered" data-hits="1" data-linenumber="50">
528
+ <span class="hits">1</span>
529
+
530
+ <code class="ruby"> attr_accessor :domain_id</code>
531
+ </li>
532
+
533
+ <li class="never" data-hits="" data-linenumber="51">
534
+
535
+
536
+ <code class="ruby"></code>
537
+ </li>
538
+
539
+ <li class="never" data-hits="" data-linenumber="52">
540
+
541
+
542
+ <code class="ruby"> # Network uuid that the instance should use</code>
543
+ </li>
544
+
545
+ <li class="never" data-hits="" data-linenumber="53">
546
+
547
+
548
+ <code class="ruby"> #</code>
549
+ </li>
550
+
551
+ <li class="never" data-hits="" data-linenumber="54">
552
+
553
+
554
+ <code class="ruby"> # @return [String]</code>
555
+ </li>
556
+
557
+ <li class="covered" data-hits="1" data-linenumber="55">
558
+ <span class="hits">1</span>
559
+
560
+ <code class="ruby"> attr_accessor :network_id</code>
561
+ </li>
562
+
563
+ <li class="never" data-hits="" data-linenumber="56">
564
+
565
+
566
+ <code class="ruby"></code>
567
+ </li>
568
+
569
+ <li class="never" data-hits="" data-linenumber="57">
570
+
571
+
572
+ <code class="ruby"> # Network name that the instance should use</code>
573
+ </li>
574
+
575
+ <li class="never" data-hits="" data-linenumber="58">
576
+
577
+
578
+ <code class="ruby"> #</code>
579
+ </li>
580
+
581
+ <li class="never" data-hits="" data-linenumber="59">
582
+
583
+
584
+ <code class="ruby"> # @return [String]</code>
585
+ </li>
586
+
587
+ <li class="covered" data-hits="1" data-linenumber="60">
588
+ <span class="hits">1</span>
589
+
590
+ <code class="ruby"> attr_accessor :network_name</code>
591
+ </li>
592
+
593
+ <li class="never" data-hits="" data-linenumber="61">
594
+
595
+
596
+ <code class="ruby"></code>
597
+ </li>
598
+
599
+ <li class="never" data-hits="" data-linenumber="62">
600
+
601
+
602
+ <code class="ruby"> # Network Type</code>
603
+ </li>
604
+
605
+ <li class="never" data-hits="" data-linenumber="63">
606
+
607
+
608
+ <code class="ruby"> #</code>
609
+ </li>
610
+
611
+ <li class="never" data-hits="" data-linenumber="64">
612
+
613
+
614
+ <code class="ruby"> # @return [String]</code>
615
+ </li>
616
+
617
+ <li class="covered" data-hits="1" data-linenumber="65">
618
+ <span class="hits">1</span>
619
+
620
+ <code class="ruby"> attr_accessor :network_type</code>
621
+ </li>
622
+
623
+ <li class="never" data-hits="" data-linenumber="66">
624
+
625
+
626
+ <code class="ruby"></code>
627
+ </li>
628
+
629
+ <li class="never" data-hits="" data-linenumber="67">
630
+
631
+
632
+ <code class="ruby"> # Project uuid that the instance should belong to</code>
633
+ </li>
634
+
635
+ <li class="never" data-hits="" data-linenumber="68">
636
+
637
+
638
+ <code class="ruby"> #</code>
639
+ </li>
640
+
641
+ <li class="never" data-hits="" data-linenumber="69">
642
+
643
+
644
+ <code class="ruby"> # @return [String]</code>
645
+ </li>
646
+
647
+ <li class="covered" data-hits="1" data-linenumber="70">
648
+ <span class="hits">1</span>
649
+
650
+ <code class="ruby"> attr_accessor :project_id</code>
651
+ </li>
652
+
653
+ <li class="never" data-hits="" data-linenumber="71">
654
+
655
+
656
+ <code class="ruby"></code>
657
+ </li>
658
+
659
+ <li class="never" data-hits="" data-linenumber="72">
660
+
661
+
662
+ <code class="ruby"> # Service offering uuid to use for the instance</code>
663
+ </li>
664
+
665
+ <li class="never" data-hits="" data-linenumber="73">
666
+
667
+
668
+ <code class="ruby"> #</code>
669
+ </li>
670
+
671
+ <li class="never" data-hits="" data-linenumber="74">
672
+
673
+
674
+ <code class="ruby"> # @return [String]</code>
675
+ </li>
676
+
677
+ <li class="covered" data-hits="1" data-linenumber="75">
678
+ <span class="hits">1</span>
679
+
680
+ <code class="ruby"> attr_accessor :service_offering_id</code>
681
+ </li>
682
+
683
+ <li class="never" data-hits="" data-linenumber="76">
684
+
685
+
686
+ <code class="ruby"></code>
687
+ </li>
688
+
689
+ <li class="never" data-hits="" data-linenumber="77">
690
+
691
+
692
+ <code class="ruby"> # Service offering name to use for the instance</code>
693
+ </li>
694
+
695
+ <li class="never" data-hits="" data-linenumber="78">
696
+
697
+
698
+ <code class="ruby"> #</code>
699
+ </li>
700
+
701
+ <li class="never" data-hits="" data-linenumber="79">
702
+
703
+
704
+ <code class="ruby"> # @return [String]</code>
705
+ </li>
706
+
707
+ <li class="covered" data-hits="1" data-linenumber="80">
708
+ <span class="hits">1</span>
709
+
710
+ <code class="ruby"> attr_accessor :service_offering_name</code>
711
+ </li>
712
+
713
+ <li class="never" data-hits="" data-linenumber="81">
714
+
715
+
716
+ <code class="ruby"></code>
717
+ </li>
718
+
719
+ <li class="never" data-hits="" data-linenumber="82">
720
+
721
+
722
+ <code class="ruby"> # Template uuid to use for the instance</code>
723
+ </li>
724
+
725
+ <li class="never" data-hits="" data-linenumber="83">
726
+
727
+
728
+ <code class="ruby"> #</code>
729
+ </li>
730
+
731
+ <li class="never" data-hits="" data-linenumber="84">
732
+
733
+
734
+ <code class="ruby"> # @return [String]</code>
735
+ </li>
736
+
737
+ <li class="covered" data-hits="1" data-linenumber="85">
738
+ <span class="hits">1</span>
739
+
740
+ <code class="ruby"> attr_accessor :template_id</code>
741
+ </li>
742
+
743
+ <li class="never" data-hits="" data-linenumber="86">
744
+
745
+
746
+ <code class="ruby"></code>
747
+ </li>
748
+
749
+ <li class="never" data-hits="" data-linenumber="87">
750
+
751
+
752
+ <code class="ruby"> # Template name to use for the instance</code>
753
+ </li>
754
+
755
+ <li class="never" data-hits="" data-linenumber="88">
756
+
757
+
758
+ <code class="ruby"> #</code>
759
+ </li>
760
+
761
+ <li class="never" data-hits="" data-linenumber="89">
762
+
763
+
764
+ <code class="ruby"> # @return [String]</code>
765
+ </li>
766
+
767
+ <li class="covered" data-hits="1" data-linenumber="90">
768
+ <span class="hits">1</span>
769
+
770
+ <code class="ruby"> attr_accessor :template_name</code>
771
+ </li>
772
+
773
+ <li class="never" data-hits="" data-linenumber="91">
774
+
775
+
776
+ <code class="ruby"></code>
777
+ </li>
778
+
779
+ <li class="never" data-hits="" data-linenumber="92">
780
+
781
+
782
+ <code class="ruby"> # Zone uuid to launch the instance into. If nil, it will</code>
783
+ </li>
784
+
785
+ <li class="never" data-hits="" data-linenumber="93">
786
+
787
+
788
+ <code class="ruby"> # launch in default project.</code>
789
+ </li>
790
+
791
+ <li class="never" data-hits="" data-linenumber="94">
792
+
793
+
794
+ <code class="ruby"> #</code>
795
+ </li>
796
+
797
+ <li class="never" data-hits="" data-linenumber="95">
798
+
799
+
800
+ <code class="ruby"> # @return [String]</code>
801
+ </li>
802
+
803
+ <li class="covered" data-hits="1" data-linenumber="96">
804
+ <span class="hits">1</span>
805
+
806
+ <code class="ruby"> attr_accessor :zone_id</code>
807
+ </li>
808
+
809
+ <li class="never" data-hits="" data-linenumber="97">
810
+
811
+
812
+ <code class="ruby"></code>
813
+ </li>
814
+
815
+ <li class="never" data-hits="" data-linenumber="98">
816
+
817
+
818
+ <code class="ruby"> # Zone name to launch the instance into. If nil, it will</code>
819
+ </li>
820
+
821
+ <li class="never" data-hits="" data-linenumber="99">
822
+
823
+
824
+ <code class="ruby"> # launch in default project.</code>
825
+ </li>
826
+
827
+ <li class="never" data-hits="" data-linenumber="100">
828
+
829
+
830
+ <code class="ruby"> #</code>
831
+ </li>
832
+
833
+ <li class="never" data-hits="" data-linenumber="101">
834
+
835
+
836
+ <code class="ruby"> # @return [String]</code>
837
+ </li>
838
+
839
+ <li class="covered" data-hits="1" data-linenumber="102">
840
+ <span class="hits">1</span>
841
+
842
+ <code class="ruby"> attr_accessor :zone_name</code>
843
+ </li>
844
+
845
+ <li class="never" data-hits="" data-linenumber="103">
846
+
847
+
848
+ <code class="ruby"></code>
849
+ </li>
850
+
851
+ <li class="never" data-hits="" data-linenumber="104">
852
+
853
+
854
+ <code class="ruby"> # The name of the keypair to use.</code>
855
+ </li>
856
+
857
+ <li class="never" data-hits="" data-linenumber="105">
858
+
859
+
860
+ <code class="ruby"> #</code>
861
+ </li>
862
+
863
+ <li class="never" data-hits="" data-linenumber="106">
864
+
865
+
866
+ <code class="ruby"> # @return [String]</code>
867
+ </li>
868
+
869
+ <li class="covered" data-hits="1" data-linenumber="107">
870
+ <span class="hits">1</span>
871
+
872
+ <code class="ruby"> attr_accessor :keypair</code>
873
+ </li>
874
+
875
+ <li class="never" data-hits="" data-linenumber="108">
876
+
877
+
878
+ <code class="ruby"></code>
879
+ </li>
880
+
881
+ <li class="never" data-hits="" data-linenumber="109">
882
+
883
+
884
+ <code class="ruby"> # Paramters for Static NAT</code>
885
+ </li>
886
+
887
+ <li class="never" data-hits="" data-linenumber="110">
888
+
889
+
890
+ <code class="ruby"> #</code>
891
+ </li>
892
+
893
+ <li class="never" data-hits="" data-linenumber="111">
894
+
895
+
896
+ <code class="ruby"> # @return [String]</code>
897
+ </li>
898
+
899
+ <li class="covered" data-hits="1" data-linenumber="112">
900
+ <span class="hits">1</span>
901
+
902
+ <code class="ruby"> attr_accessor :static_nat</code>
903
+ </li>
904
+
905
+ <li class="never" data-hits="" data-linenumber="113">
906
+
907
+
908
+ <code class="ruby"></code>
909
+ </li>
910
+
911
+ <li class="never" data-hits="" data-linenumber="114">
912
+
913
+
914
+ <code class="ruby"> # IP address id to use for port forwarding rule</code>
915
+ </li>
916
+
917
+ <li class="never" data-hits="" data-linenumber="115">
918
+
919
+
920
+ <code class="ruby"> #</code>
921
+ </li>
922
+
923
+ <li class="never" data-hits="" data-linenumber="116">
924
+
925
+
926
+ <code class="ruby"> # @return [String]</code>
927
+ </li>
928
+
929
+ <li class="covered" data-hits="1" data-linenumber="117">
930
+ <span class="hits">1</span>
931
+
932
+ <code class="ruby"> attr_accessor :pf_ip_address_id</code>
933
+ </li>
934
+
935
+ <li class="never" data-hits="" data-linenumber="118">
936
+
937
+
938
+ <code class="ruby"></code>
939
+ </li>
940
+
941
+ <li class="never" data-hits="" data-linenumber="119">
942
+
943
+
944
+ <code class="ruby"> # IP address to use for port forwarding rule</code>
945
+ </li>
946
+
947
+ <li class="never" data-hits="" data-linenumber="120">
948
+
949
+
950
+ <code class="ruby"> #</code>
951
+ </li>
952
+
953
+ <li class="never" data-hits="" data-linenumber="121">
954
+
955
+
956
+ <code class="ruby"> # @return [String]</code>
957
+ </li>
958
+
959
+ <li class="covered" data-hits="1" data-linenumber="122">
960
+ <span class="hits">1</span>
961
+
962
+ <code class="ruby"> attr_accessor :pf_ip_address</code>
963
+ </li>
964
+
965
+ <li class="never" data-hits="" data-linenumber="123">
966
+
967
+
968
+ <code class="ruby"></code>
969
+ </li>
970
+
971
+ <li class="never" data-hits="" data-linenumber="124">
972
+
973
+
974
+ <code class="ruby"> # public port to use for port forwarding rule</code>
975
+ </li>
976
+
977
+ <li class="never" data-hits="" data-linenumber="125">
978
+
979
+
980
+ <code class="ruby"> #</code>
981
+ </li>
982
+
983
+ <li class="never" data-hits="" data-linenumber="126">
984
+
985
+
986
+ <code class="ruby"> # @return [String]</code>
987
+ </li>
988
+
989
+ <li class="covered" data-hits="1" data-linenumber="127">
990
+ <span class="hits">1</span>
991
+
992
+ <code class="ruby"> attr_accessor :pf_public_port</code>
993
+ </li>
994
+
995
+ <li class="never" data-hits="" data-linenumber="128">
996
+
997
+
998
+ <code class="ruby"></code>
999
+ </li>
1000
+
1001
+ <li class="never" data-hits="" data-linenumber="129">
1002
+
1003
+
1004
+ <code class="ruby"> # private port to use for port forwarding rule</code>
1005
+ </li>
1006
+
1007
+ <li class="never" data-hits="" data-linenumber="130">
1008
+
1009
+
1010
+ <code class="ruby"> #</code>
1011
+ </li>
1012
+
1013
+ <li class="never" data-hits="" data-linenumber="131">
1014
+
1015
+
1016
+ <code class="ruby"> # @return [String]</code>
1017
+ </li>
1018
+
1019
+ <li class="covered" data-hits="1" data-linenumber="132">
1020
+ <span class="hits">1</span>
1021
+
1022
+ <code class="ruby"> attr_accessor :pf_private_port</code>
1023
+ </li>
1024
+
1025
+ <li class="never" data-hits="" data-linenumber="133">
1026
+
1027
+
1028
+ <code class="ruby"></code>
1029
+ </li>
1030
+
1031
+ <li class="never" data-hits="" data-linenumber="134">
1032
+
1033
+
1034
+ <code class="ruby"> # comma separated list of port forwarding rules</code>
1035
+ </li>
1036
+
1037
+ <li class="never" data-hits="" data-linenumber="135">
1038
+
1039
+
1040
+ <code class="ruby"> # (hash with rule parameters)</code>
1041
+ </li>
1042
+
1043
+ <li class="never" data-hits="" data-linenumber="136">
1044
+
1045
+
1046
+ <code class="ruby"> #</code>
1047
+ </li>
1048
+
1049
+ <li class="never" data-hits="" data-linenumber="137">
1050
+
1051
+
1052
+ <code class="ruby"> # @return [Array]</code>
1053
+ </li>
1054
+
1055
+ <li class="covered" data-hits="1" data-linenumber="138">
1056
+ <span class="hits">1</span>
1057
+
1058
+ <code class="ruby"> attr_accessor :port_forwarding_rules</code>
1059
+ </li>
1060
+
1061
+ <li class="never" data-hits="" data-linenumber="139">
1062
+
1063
+
1064
+ <code class="ruby"></code>
1065
+ </li>
1066
+
1067
+ <li class="never" data-hits="" data-linenumber="140">
1068
+
1069
+
1070
+ <code class="ruby"> # comma separated list of firewall rules</code>
1071
+ </li>
1072
+
1073
+ <li class="never" data-hits="" data-linenumber="141">
1074
+
1075
+
1076
+ <code class="ruby"> # (hash with rule parameters)</code>
1077
+ </li>
1078
+
1079
+ <li class="never" data-hits="" data-linenumber="142">
1080
+
1081
+
1082
+ <code class="ruby"> #</code>
1083
+ </li>
1084
+
1085
+ <li class="never" data-hits="" data-linenumber="143">
1086
+
1087
+
1088
+ <code class="ruby"> # @return [Array]</code>
1089
+ </li>
1090
+
1091
+ <li class="covered" data-hits="1" data-linenumber="144">
1092
+ <span class="hits">1</span>
1093
+
1094
+ <code class="ruby"> attr_accessor :firewall_rules</code>
1095
+ </li>
1096
+
1097
+ <li class="never" data-hits="" data-linenumber="145">
1098
+
1099
+
1100
+ <code class="ruby"></code>
1101
+ </li>
1102
+
1103
+ <li class="never" data-hits="" data-linenumber="146">
1104
+
1105
+
1106
+ <code class="ruby"> # comma separated list of security groups id that going</code>
1107
+ </li>
1108
+
1109
+ <li class="never" data-hits="" data-linenumber="147">
1110
+
1111
+
1112
+ <code class="ruby"> # to be applied to the virtual machine.</code>
1113
+ </li>
1114
+
1115
+ <li class="never" data-hits="" data-linenumber="148">
1116
+
1117
+
1118
+ <code class="ruby"> #</code>
1119
+ </li>
1120
+
1121
+ <li class="never" data-hits="" data-linenumber="149">
1122
+
1123
+
1124
+ <code class="ruby"> # @return [Array]</code>
1125
+ </li>
1126
+
1127
+ <li class="covered" data-hits="1" data-linenumber="150">
1128
+ <span class="hits">1</span>
1129
+
1130
+ <code class="ruby"> attr_accessor :security_group_ids</code>
1131
+ </li>
1132
+
1133
+ <li class="never" data-hits="" data-linenumber="151">
1134
+
1135
+
1136
+ <code class="ruby"></code>
1137
+ </li>
1138
+
1139
+ <li class="never" data-hits="" data-linenumber="152">
1140
+
1141
+
1142
+ <code class="ruby"> # comma separated list of security groups name that going</code>
1143
+ </li>
1144
+
1145
+ <li class="never" data-hits="" data-linenumber="153">
1146
+
1147
+
1148
+ <code class="ruby"> # to be applied to the virtual machine.</code>
1149
+ </li>
1150
+
1151
+ <li class="never" data-hits="" data-linenumber="154">
1152
+
1153
+
1154
+ <code class="ruby"> #</code>
1155
+ </li>
1156
+
1157
+ <li class="never" data-hits="" data-linenumber="155">
1158
+
1159
+
1160
+ <code class="ruby"> # @return [Array]</code>
1161
+ </li>
1162
+
1163
+ <li class="covered" data-hits="1" data-linenumber="156">
1164
+ <span class="hits">1</span>
1165
+
1166
+ <code class="ruby"> attr_accessor :security_group_names</code>
1167
+ </li>
1168
+
1169
+ <li class="never" data-hits="" data-linenumber="157">
1170
+
1171
+
1172
+ <code class="ruby"></code>
1173
+ </li>
1174
+
1175
+ <li class="never" data-hits="" data-linenumber="158">
1176
+
1177
+
1178
+ <code class="ruby"> # comma separated list of security groups</code>
1179
+ </li>
1180
+
1181
+ <li class="never" data-hits="" data-linenumber="159">
1182
+
1183
+
1184
+ <code class="ruby"> # (hash with ingress/egress rules)</code>
1185
+ </li>
1186
+
1187
+ <li class="never" data-hits="" data-linenumber="160">
1188
+
1189
+
1190
+ <code class="ruby"> # to be applied to the virtual machine.</code>
1191
+ </li>
1192
+
1193
+ <li class="never" data-hits="" data-linenumber="161">
1194
+
1195
+
1196
+ <code class="ruby"> #</code>
1197
+ </li>
1198
+
1199
+ <li class="never" data-hits="" data-linenumber="162">
1200
+
1201
+
1202
+ <code class="ruby"> # @return [Array]</code>
1203
+ </li>
1204
+
1205
+ <li class="covered" data-hits="1" data-linenumber="163">
1206
+ <span class="hits">1</span>
1207
+
1208
+ <code class="ruby"> attr_accessor :security_groups</code>
1209
+ </li>
1210
+
1211
+ <li class="never" data-hits="" data-linenumber="164">
1212
+
1213
+
1214
+ <code class="ruby"></code>
1215
+ </li>
1216
+
1217
+ <li class="never" data-hits="" data-linenumber="165">
1218
+
1219
+
1220
+ <code class="ruby"> # display name for the instance</code>
1221
+ </li>
1222
+
1223
+ <li class="never" data-hits="" data-linenumber="166">
1224
+
1225
+
1226
+ <code class="ruby"> #</code>
1227
+ </li>
1228
+
1229
+ <li class="never" data-hits="" data-linenumber="167">
1230
+
1231
+
1232
+ <code class="ruby"> # @return [String]</code>
1233
+ </li>
1234
+
1235
+ <li class="covered" data-hits="1" data-linenumber="168">
1236
+ <span class="hits">1</span>
1237
+
1238
+ <code class="ruby"> attr_accessor :display_name</code>
1239
+ </li>
1240
+
1241
+ <li class="never" data-hits="" data-linenumber="169">
1242
+
1243
+
1244
+ <code class="ruby"></code>
1245
+ </li>
1246
+
1247
+ <li class="never" data-hits="" data-linenumber="170">
1248
+
1249
+
1250
+ <code class="ruby"> # group for the instance</code>
1251
+ </li>
1252
+
1253
+ <li class="never" data-hits="" data-linenumber="171">
1254
+
1255
+
1256
+ <code class="ruby"> #</code>
1257
+ </li>
1258
+
1259
+ <li class="never" data-hits="" data-linenumber="172">
1260
+
1261
+
1262
+ <code class="ruby"> # @return [String]</code>
1263
+ </li>
1264
+
1265
+ <li class="covered" data-hits="1" data-linenumber="173">
1266
+ <span class="hits">1</span>
1267
+
1268
+ <code class="ruby"> attr_accessor :group</code>
1269
+ </li>
1270
+
1271
+ <li class="never" data-hits="" data-linenumber="174">
1272
+
1273
+
1274
+ <code class="ruby"></code>
1275
+ </li>
1276
+
1277
+ <li class="never" data-hits="" data-linenumber="175">
1278
+
1279
+
1280
+ <code class="ruby"> # The user data string</code>
1281
+ </li>
1282
+
1283
+ <li class="never" data-hits="" data-linenumber="176">
1284
+
1285
+
1286
+ <code class="ruby"> #</code>
1287
+ </li>
1288
+
1289
+ <li class="never" data-hits="" data-linenumber="177">
1290
+
1291
+
1292
+ <code class="ruby"> # @return [String]</code>
1293
+ </li>
1294
+
1295
+ <li class="covered" data-hits="1" data-linenumber="178">
1296
+ <span class="hits">1</span>
1297
+
1298
+ <code class="ruby"> attr_accessor :user_data</code>
1299
+ </li>
1300
+
1301
+ <li class="never" data-hits="" data-linenumber="179">
1302
+
1303
+
1304
+ <code class="ruby"></code>
1305
+ </li>
1306
+
1307
+ <li class="never" data-hits="" data-linenumber="180">
1308
+
1309
+
1310
+ <code class="ruby"> # The key to be used when loging in to the vm via ssh</code>
1311
+ </li>
1312
+
1313
+ <li class="never" data-hits="" data-linenumber="181">
1314
+
1315
+
1316
+ <code class="ruby"> #</code>
1317
+ </li>
1318
+
1319
+ <li class="never" data-hits="" data-linenumber="182">
1320
+
1321
+
1322
+ <code class="ruby"> # @return [String]</code>
1323
+ </li>
1324
+
1325
+ <li class="covered" data-hits="1" data-linenumber="183">
1326
+ <span class="hits">1</span>
1327
+
1328
+ <code class="ruby"> attr_accessor :ssh_key</code>
1329
+ </li>
1330
+
1331
+ <li class="never" data-hits="" data-linenumber="184">
1332
+
1333
+
1334
+ <code class="ruby"></code>
1335
+ </li>
1336
+
1337
+ <li class="never" data-hits="" data-linenumber="185">
1338
+
1339
+
1340
+ <code class="ruby"> # The username to be used when loging in to the vm via ssh</code>
1341
+ </li>
1342
+
1343
+ <li class="never" data-hits="" data-linenumber="186">
1344
+
1345
+
1346
+ <code class="ruby"> #</code>
1347
+ </li>
1348
+
1349
+ <li class="never" data-hits="" data-linenumber="187">
1350
+
1351
+
1352
+ <code class="ruby"> # @return [String]</code>
1353
+ </li>
1354
+
1355
+ <li class="covered" data-hits="1" data-linenumber="188">
1356
+ <span class="hits">1</span>
1357
+
1358
+ <code class="ruby"> attr_accessor :ssh_user</code>
1359
+ </li>
1360
+
1361
+ <li class="never" data-hits="" data-linenumber="189">
1362
+
1363
+
1364
+ <code class="ruby"></code>
1365
+ </li>
1366
+
1367
+ <li class="never" data-hits="" data-linenumber="190">
1368
+
1369
+
1370
+ <code class="ruby"></code>
1371
+ </li>
1372
+
1373
+ <li class="covered" data-hits="1" data-linenumber="191">
1374
+ <span class="hits">1</span>
1375
+
1376
+ <code class="ruby"> def initialize(domain_specific=false)</code>
1377
+ </li>
1378
+
1379
+ <li class="covered" data-hits="166" data-linenumber="192">
1380
+ <span class="hits">166</span>
1381
+
1382
+ <code class="ruby"> @host = UNSET_VALUE</code>
1383
+ </li>
1384
+
1385
+ <li class="covered" data-hits="166" data-linenumber="193">
1386
+ <span class="hits">166</span>
1387
+
1388
+ <code class="ruby"> @name = UNSET_VALUE</code>
1389
+ </li>
1390
+
1391
+ <li class="covered" data-hits="166" data-linenumber="194">
1392
+ <span class="hits">166</span>
1393
+
1394
+ <code class="ruby"> @path = UNSET_VALUE</code>
1395
+ </li>
1396
+
1397
+ <li class="covered" data-hits="166" data-linenumber="195">
1398
+ <span class="hits">166</span>
1399
+
1400
+ <code class="ruby"> @port = UNSET_VALUE</code>
1401
+ </li>
1402
+
1403
+ <li class="covered" data-hits="166" data-linenumber="196">
1404
+ <span class="hits">166</span>
1405
+
1406
+ <code class="ruby"> @scheme = UNSET_VALUE</code>
1407
+ </li>
1408
+
1409
+ <li class="covered" data-hits="166" data-linenumber="197">
1410
+ <span class="hits">166</span>
1411
+
1412
+ <code class="ruby"> @api_key = UNSET_VALUE</code>
1413
+ </li>
1414
+
1415
+ <li class="covered" data-hits="166" data-linenumber="198">
1416
+ <span class="hits">166</span>
1417
+
1418
+ <code class="ruby"> @secret_key = UNSET_VALUE</code>
1419
+ </li>
1420
+
1421
+ <li class="covered" data-hits="166" data-linenumber="199">
1422
+ <span class="hits">166</span>
1423
+
1424
+ <code class="ruby"> @instance_ready_timeout = UNSET_VALUE</code>
1425
+ </li>
1426
+
1427
+ <li class="covered" data-hits="166" data-linenumber="200">
1428
+ <span class="hits">166</span>
1429
+
1430
+ <code class="ruby"> @domain_id = UNSET_VALUE</code>
1431
+ </li>
1432
+
1433
+ <li class="covered" data-hits="166" data-linenumber="201">
1434
+ <span class="hits">166</span>
1435
+
1436
+ <code class="ruby"> @network_id = UNSET_VALUE</code>
1437
+ </li>
1438
+
1439
+ <li class="covered" data-hits="166" data-linenumber="202">
1440
+ <span class="hits">166</span>
1441
+
1442
+ <code class="ruby"> @network_name = UNSET_VALUE</code>
1443
+ </li>
1444
+
1445
+ <li class="covered" data-hits="166" data-linenumber="203">
1446
+ <span class="hits">166</span>
1447
+
1448
+ <code class="ruby"> @network_type = UNSET_VALUE</code>
1449
+ </li>
1450
+
1451
+ <li class="covered" data-hits="166" data-linenumber="204">
1452
+ <span class="hits">166</span>
1453
+
1454
+ <code class="ruby"> @project_id = UNSET_VALUE</code>
1455
+ </li>
1456
+
1457
+ <li class="covered" data-hits="166" data-linenumber="205">
1458
+ <span class="hits">166</span>
1459
+
1460
+ <code class="ruby"> @service_offering_id = UNSET_VALUE</code>
1461
+ </li>
1462
+
1463
+ <li class="covered" data-hits="166" data-linenumber="206">
1464
+ <span class="hits">166</span>
1465
+
1466
+ <code class="ruby"> @service_offering_name = UNSET_VALUE</code>
1467
+ </li>
1468
+
1469
+ <li class="covered" data-hits="166" data-linenumber="207">
1470
+ <span class="hits">166</span>
1471
+
1472
+ <code class="ruby"> @template_id = UNSET_VALUE</code>
1473
+ </li>
1474
+
1475
+ <li class="covered" data-hits="166" data-linenumber="208">
1476
+ <span class="hits">166</span>
1477
+
1478
+ <code class="ruby"> @template_name = UNSET_VALUE</code>
1479
+ </li>
1480
+
1481
+ <li class="covered" data-hits="166" data-linenumber="209">
1482
+ <span class="hits">166</span>
1483
+
1484
+ <code class="ruby"> @zone_id = UNSET_VALUE</code>
1485
+ </li>
1486
+
1487
+ <li class="covered" data-hits="166" data-linenumber="210">
1488
+ <span class="hits">166</span>
1489
+
1490
+ <code class="ruby"> @zone_name = UNSET_VALUE</code>
1491
+ </li>
1492
+
1493
+ <li class="covered" data-hits="166" data-linenumber="211">
1494
+ <span class="hits">166</span>
1495
+
1496
+ <code class="ruby"> @keypair = UNSET_VALUE</code>
1497
+ </li>
1498
+
1499
+ <li class="covered" data-hits="166" data-linenumber="212">
1500
+ <span class="hits">166</span>
1501
+
1502
+ <code class="ruby"> @static_nat = UNSET_VALUE</code>
1503
+ </li>
1504
+
1505
+ <li class="covered" data-hits="166" data-linenumber="213">
1506
+ <span class="hits">166</span>
1507
+
1508
+ <code class="ruby"> @pf_ip_address_id = UNSET_VALUE</code>
1509
+ </li>
1510
+
1511
+ <li class="covered" data-hits="166" data-linenumber="214">
1512
+ <span class="hits">166</span>
1513
+
1514
+ <code class="ruby"> @pf_ip_address = UNSET_VALUE</code>
1515
+ </li>
1516
+
1517
+ <li class="covered" data-hits="166" data-linenumber="215">
1518
+ <span class="hits">166</span>
1519
+
1520
+ <code class="ruby"> @pf_public_port = UNSET_VALUE</code>
1521
+ </li>
1522
+
1523
+ <li class="covered" data-hits="166" data-linenumber="216">
1524
+ <span class="hits">166</span>
1525
+
1526
+ <code class="ruby"> @pf_private_port = UNSET_VALUE</code>
1527
+ </li>
1528
+
1529
+ <li class="covered" data-hits="166" data-linenumber="217">
1530
+ <span class="hits">166</span>
1531
+
1532
+ <code class="ruby"> @port_forwarding_rules = UNSET_VALUE</code>
1533
+ </li>
1534
+
1535
+ <li class="covered" data-hits="166" data-linenumber="218">
1536
+ <span class="hits">166</span>
1537
+
1538
+ <code class="ruby"> @firewall_rules = UNSET_VALUE</code>
1539
+ </li>
1540
+
1541
+ <li class="covered" data-hits="166" data-linenumber="219">
1542
+ <span class="hits">166</span>
1543
+
1544
+ <code class="ruby"> @security_group_ids = UNSET_VALUE</code>
1545
+ </li>
1546
+
1547
+ <li class="covered" data-hits="166" data-linenumber="220">
1548
+ <span class="hits">166</span>
1549
+
1550
+ <code class="ruby"> @display_name = UNSET_VALUE</code>
1551
+ </li>
1552
+
1553
+ <li class="covered" data-hits="166" data-linenumber="221">
1554
+ <span class="hits">166</span>
1555
+
1556
+ <code class="ruby"> @group = UNSET_VALUE</code>
1557
+ </li>
1558
+
1559
+ <li class="covered" data-hits="166" data-linenumber="222">
1560
+ <span class="hits">166</span>
1561
+
1562
+ <code class="ruby"> @security_group_names = UNSET_VALUE</code>
1563
+ </li>
1564
+
1565
+ <li class="covered" data-hits="166" data-linenumber="223">
1566
+ <span class="hits">166</span>
1567
+
1568
+ <code class="ruby"> @security_groups = UNSET_VALUE</code>
1569
+ </li>
1570
+
1571
+ <li class="covered" data-hits="166" data-linenumber="224">
1572
+ <span class="hits">166</span>
1573
+
1574
+ <code class="ruby"> @user_data = UNSET_VALUE</code>
1575
+ </li>
1576
+
1577
+ <li class="covered" data-hits="166" data-linenumber="225">
1578
+ <span class="hits">166</span>
1579
+
1580
+ <code class="ruby"> @ssh_key = UNSET_VALUE</code>
1581
+ </li>
1582
+
1583
+ <li class="covered" data-hits="166" data-linenumber="226">
1584
+ <span class="hits">166</span>
1585
+
1586
+ <code class="ruby"> @ssh_user = UNSET_VALUE</code>
1587
+ </li>
1588
+
1589
+ <li class="never" data-hits="" data-linenumber="227">
1590
+
1591
+
1592
+ <code class="ruby"></code>
1593
+ </li>
1594
+
1595
+ <li class="never" data-hits="" data-linenumber="228">
1596
+
1597
+
1598
+ <code class="ruby"> # Internal state (prefix with __ so they aren&#39;t automatically</code>
1599
+ </li>
1600
+
1601
+ <li class="never" data-hits="" data-linenumber="229">
1602
+
1603
+
1604
+ <code class="ruby"> # merged)</code>
1605
+ </li>
1606
+
1607
+ <li class="covered" data-hits="166" data-linenumber="230">
1608
+ <span class="hits">166</span>
1609
+
1610
+ <code class="ruby"> @__compiled_domain_configs = {}</code>
1611
+ </li>
1612
+
1613
+ <li class="covered" data-hits="166" data-linenumber="231">
1614
+ <span class="hits">166</span>
1615
+
1616
+ <code class="ruby"> @__finalized = false</code>
1617
+ </li>
1618
+
1619
+ <li class="covered" data-hits="166" data-linenumber="232">
1620
+ <span class="hits">166</span>
1621
+
1622
+ <code class="ruby"> @__domain_config = {}</code>
1623
+ </li>
1624
+
1625
+ <li class="covered" data-hits="166" data-linenumber="233">
1626
+ <span class="hits">166</span>
1627
+
1628
+ <code class="ruby"> @__domain_specific = domain_specific</code>
1629
+ </li>
1630
+
1631
+ <li class="never" data-hits="" data-linenumber="234">
1632
+
1633
+
1634
+ <code class="ruby"> end</code>
1635
+ </li>
1636
+
1637
+ <li class="never" data-hits="" data-linenumber="235">
1638
+
1639
+
1640
+ <code class="ruby"></code>
1641
+ </li>
1642
+
1643
+ <li class="never" data-hits="" data-linenumber="236">
1644
+
1645
+
1646
+ <code class="ruby"> # Allows domain-specific overrides of any of the settings on this</code>
1647
+ </li>
1648
+
1649
+ <li class="never" data-hits="" data-linenumber="237">
1650
+
1651
+
1652
+ <code class="ruby"> # configuration object. This allows the user to override things like</code>
1653
+ </li>
1654
+
1655
+ <li class="never" data-hits="" data-linenumber="238">
1656
+
1657
+
1658
+ <code class="ruby"> # template and keypair name for domains. Example:</code>
1659
+ </li>
1660
+
1661
+ <li class="never" data-hits="" data-linenumber="239">
1662
+
1663
+
1664
+ <code class="ruby"> #</code>
1665
+ </li>
1666
+
1667
+ <li class="never" data-hits="" data-linenumber="240">
1668
+
1669
+
1670
+ <code class="ruby"> # cloudstack.domain_config &quot;abcd-ef01-2345-6789&quot; do |domain|</code>
1671
+ </li>
1672
+
1673
+ <li class="never" data-hits="" data-linenumber="241">
1674
+
1675
+
1676
+ <code class="ruby"> # domain.template_id = &quot;1234-5678-90ab-cdef&quot;</code>
1677
+ </li>
1678
+
1679
+ <li class="never" data-hits="" data-linenumber="242">
1680
+
1681
+
1682
+ <code class="ruby"> # domain.keypair_name = &quot;company-east&quot;</code>
1683
+ </li>
1684
+
1685
+ <li class="never" data-hits="" data-linenumber="243">
1686
+
1687
+
1688
+ <code class="ruby"> # end</code>
1689
+ </li>
1690
+
1691
+ <li class="never" data-hits="" data-linenumber="244">
1692
+
1693
+
1694
+ <code class="ruby"> #</code>
1695
+ </li>
1696
+
1697
+ <li class="never" data-hits="" data-linenumber="245">
1698
+
1699
+
1700
+ <code class="ruby"> # @param [String] domain The Domain name to configure.</code>
1701
+ </li>
1702
+
1703
+ <li class="never" data-hits="" data-linenumber="246">
1704
+
1705
+
1706
+ <code class="ruby"> # @param [Hash] attributes Direct attributes to set on the configuration</code>
1707
+ </li>
1708
+
1709
+ <li class="never" data-hits="" data-linenumber="247">
1710
+
1711
+
1712
+ <code class="ruby"> # as a shortcut instead of specifying a full block.</code>
1713
+ </li>
1714
+
1715
+ <li class="never" data-hits="" data-linenumber="248">
1716
+
1717
+
1718
+ <code class="ruby"> # @yield [config] Yields a new domain configuration.</code>
1719
+ </li>
1720
+
1721
+ <li class="covered" data-hits="1" data-linenumber="249">
1722
+ <span class="hits">1</span>
1723
+
1724
+ <code class="ruby"> def domain_config(domain, attributes=nil, &amp;block)</code>
1725
+ </li>
1726
+
1727
+ <li class="never" data-hits="" data-linenumber="250">
1728
+
1729
+
1730
+ <code class="ruby"> # Append the block to the list of domain configs for that domain.</code>
1731
+ </li>
1732
+
1733
+ <li class="never" data-hits="" data-linenumber="251">
1734
+
1735
+
1736
+ <code class="ruby"> # We&#39;ll evaluate these upon finalization.</code>
1737
+ </li>
1738
+
1739
+ <li class="covered" data-hits="31" data-linenumber="252">
1740
+ <span class="hits">31</span>
1741
+
1742
+ <code class="ruby"> @__domain_config[domain] ||= []</code>
1743
+ </li>
1744
+
1745
+ <li class="never" data-hits="" data-linenumber="253">
1746
+
1747
+
1748
+ <code class="ruby"></code>
1749
+ </li>
1750
+
1751
+ <li class="never" data-hits="" data-linenumber="254">
1752
+
1753
+
1754
+ <code class="ruby"> # Append a block that sets attributes if we got one</code>
1755
+ </li>
1756
+
1757
+ <li class="covered" data-hits="31" data-linenumber="255">
1758
+ <span class="hits">31</span>
1759
+
1760
+ <code class="ruby"> if attributes</code>
1761
+ </li>
1762
+
1763
+ <li class="covered" data-hits="1" data-linenumber="256">
1764
+ <span class="hits">1</span>
1765
+
1766
+ <code class="ruby"> attr_block = lambda do |config|</code>
1767
+ </li>
1768
+
1769
+ <li class="covered" data-hits="1" data-linenumber="257">
1770
+ <span class="hits">1</span>
1771
+
1772
+ <code class="ruby"> config.set_options(attributes)</code>
1773
+ </li>
1774
+
1775
+ <li class="never" data-hits="" data-linenumber="258">
1776
+
1777
+
1778
+ <code class="ruby"> end</code>
1779
+ </li>
1780
+
1781
+ <li class="never" data-hits="" data-linenumber="259">
1782
+
1783
+
1784
+ <code class="ruby"></code>
1785
+ </li>
1786
+
1787
+ <li class="covered" data-hits="1" data-linenumber="260">
1788
+ <span class="hits">1</span>
1789
+
1790
+ <code class="ruby"> @__domain_config[domain] &lt;&lt; attr_block</code>
1791
+ </li>
1792
+
1793
+ <li class="never" data-hits="" data-linenumber="261">
1794
+
1795
+
1796
+ <code class="ruby"> end</code>
1797
+ </li>
1798
+
1799
+ <li class="never" data-hits="" data-linenumber="262">
1800
+
1801
+
1802
+ <code class="ruby"></code>
1803
+ </li>
1804
+
1805
+ <li class="never" data-hits="" data-linenumber="263">
1806
+
1807
+
1808
+ <code class="ruby"> # Append a block if we got one</code>
1809
+ </li>
1810
+
1811
+ <li class="covered" data-hits="31" data-linenumber="264">
1812
+ <span class="hits">31</span>
1813
+
1814
+ <code class="ruby"> @__domain_config[domain] &lt;&lt; block if block_given?</code>
1815
+ </li>
1816
+
1817
+ <li class="never" data-hits="" data-linenumber="265">
1818
+
1819
+
1820
+ <code class="ruby"> end</code>
1821
+ </li>
1822
+
1823
+ <li class="never" data-hits="" data-linenumber="266">
1824
+
1825
+
1826
+ <code class="ruby"></code>
1827
+ </li>
1828
+
1829
+ <li class="never" data-hits="" data-linenumber="267">
1830
+
1831
+
1832
+ <code class="ruby"> #-------------------------------------------------------------------</code>
1833
+ </li>
1834
+
1835
+ <li class="never" data-hits="" data-linenumber="268">
1836
+
1837
+
1838
+ <code class="ruby"> # Internal methods.</code>
1839
+ </li>
1840
+
1841
+ <li class="never" data-hits="" data-linenumber="269">
1842
+
1843
+
1844
+ <code class="ruby"> #-------------------------------------------------------------------</code>
1845
+ </li>
1846
+
1847
+ <li class="never" data-hits="" data-linenumber="270">
1848
+
1849
+
1850
+ <code class="ruby"></code>
1851
+ </li>
1852
+
1853
+ <li class="covered" data-hits="1" data-linenumber="271">
1854
+ <span class="hits">1</span>
1855
+
1856
+ <code class="ruby"> def merge(other)</code>
1857
+ </li>
1858
+
1859
+ <li class="covered" data-hits="31" data-linenumber="272">
1860
+ <span class="hits">31</span>
1861
+
1862
+ <code class="ruby"> super.tap do |result|</code>
1863
+ </li>
1864
+
1865
+ <li class="never" data-hits="" data-linenumber="273">
1866
+
1867
+
1868
+ <code class="ruby"> # Copy over the domain specific flag. &quot;True&quot; is retained if either</code>
1869
+ </li>
1870
+
1871
+ <li class="never" data-hits="" data-linenumber="274">
1872
+
1873
+
1874
+ <code class="ruby"> # has it.</code>
1875
+ </li>
1876
+
1877
+ <li class="covered" data-hits="31" data-linenumber="275">
1878
+ <span class="hits">31</span>
1879
+
1880
+ <code class="ruby"> new_domain_specific = other.instance_variable_get(:@__domain_specific)</code>
1881
+ </li>
1882
+
1883
+ <li class="covered" data-hits="31" data-linenumber="276">
1884
+ <span class="hits">31</span>
1885
+
1886
+ <code class="ruby"> result.instance_variable_set(</code>
1887
+ </li>
1888
+
1889
+ <li class="never" data-hits="" data-linenumber="277">
1890
+
1891
+
1892
+ <code class="ruby"> :@__domain_specific, new_domain_specific || @__domain_specific)</code>
1893
+ </li>
1894
+
1895
+ <li class="never" data-hits="" data-linenumber="278">
1896
+
1897
+
1898
+ <code class="ruby"></code>
1899
+ </li>
1900
+
1901
+ <li class="never" data-hits="" data-linenumber="279">
1902
+
1903
+
1904
+ <code class="ruby"> # Go through all the domain configs and prepend ours onto</code>
1905
+ </li>
1906
+
1907
+ <li class="never" data-hits="" data-linenumber="280">
1908
+
1909
+
1910
+ <code class="ruby"> # theirs.</code>
1911
+ </li>
1912
+
1913
+ <li class="covered" data-hits="31" data-linenumber="281">
1914
+ <span class="hits">31</span>
1915
+
1916
+ <code class="ruby"> new_domain_config = other.instance_variable_get(:@__domain_config)</code>
1917
+ </li>
1918
+
1919
+ <li class="covered" data-hits="31" data-linenumber="282">
1920
+ <span class="hits">31</span>
1921
+
1922
+ <code class="ruby"> @__domain_config.each do |key, value|</code>
1923
+ </li>
1924
+
1925
+ <li class="missed" data-hits="0" data-linenumber="283">
1926
+
1927
+
1928
+ <code class="ruby"> new_domain_config[key] ||= []</code>
1929
+ </li>
1930
+
1931
+ <li class="missed" data-hits="0" data-linenumber="284">
1932
+
1933
+
1934
+ <code class="ruby"> new_domain_config[key] = value + new_domain_config[key]</code>
1935
+ </li>
1936
+
1937
+ <li class="never" data-hits="" data-linenumber="285">
1938
+
1939
+
1940
+ <code class="ruby"> end</code>
1941
+ </li>
1942
+
1943
+ <li class="never" data-hits="" data-linenumber="286">
1944
+
1945
+
1946
+ <code class="ruby"></code>
1947
+ </li>
1948
+
1949
+ <li class="never" data-hits="" data-linenumber="287">
1950
+
1951
+
1952
+ <code class="ruby"> # Set it</code>
1953
+ </li>
1954
+
1955
+ <li class="covered" data-hits="31" data-linenumber="288">
1956
+ <span class="hits">31</span>
1957
+
1958
+ <code class="ruby"> result.instance_variable_set(:@__domain_config, new_domain_config)</code>
1959
+ </li>
1960
+
1961
+ <li class="never" data-hits="" data-linenumber="289">
1962
+
1963
+
1964
+ <code class="ruby"></code>
1965
+ </li>
1966
+
1967
+ <li class="never" data-hits="" data-linenumber="290">
1968
+
1969
+
1970
+ <code class="ruby"> # Merge in the tags</code>
1971
+ </li>
1972
+
1973
+ <li class="covered" data-hits="31" data-linenumber="291">
1974
+ <span class="hits">31</span>
1975
+
1976
+ <code class="ruby"> result.tags.merge!(self.tags)</code>
1977
+ </li>
1978
+
1979
+ <li class="covered" data-hits="31" data-linenumber="292">
1980
+ <span class="hits">31</span>
1981
+
1982
+ <code class="ruby"> result.tags.merge!(other.tags)</code>
1983
+ </li>
1984
+
1985
+ <li class="never" data-hits="" data-linenumber="293">
1986
+
1987
+
1988
+ <code class="ruby"> end</code>
1989
+ </li>
1990
+
1991
+ <li class="never" data-hits="" data-linenumber="294">
1992
+
1993
+
1994
+ <code class="ruby"> end</code>
1995
+ </li>
1996
+
1997
+ <li class="never" data-hits="" data-linenumber="295">
1998
+
1999
+
2000
+ <code class="ruby"></code>
2001
+ </li>
2002
+
2003
+ <li class="covered" data-hits="1" data-linenumber="296">
2004
+ <span class="hits">1</span>
2005
+
2006
+ <code class="ruby"> def finalize!</code>
2007
+ </li>
2008
+
2009
+ <li class="never" data-hits="" data-linenumber="297">
2010
+
2011
+
2012
+ <code class="ruby"> # Host must be nil, since we can&#39;t default that</code>
2013
+ </li>
2014
+
2015
+ <li class="covered" data-hits="134" data-linenumber="298">
2016
+ <span class="hits">134</span>
2017
+
2018
+ <code class="ruby"> @host = nil if @host == UNSET_VALUE</code>
2019
+ </li>
2020
+
2021
+ <li class="never" data-hits="" data-linenumber="299">
2022
+
2023
+
2024
+ <code class="ruby"></code>
2025
+ </li>
2026
+
2027
+ <li class="never" data-hits="" data-linenumber="300">
2028
+
2029
+
2030
+ <code class="ruby"> # Name must be nil, since we can&#39;t default that</code>
2031
+ </li>
2032
+
2033
+ <li class="covered" data-hits="134" data-linenumber="301">
2034
+ <span class="hits">134</span>
2035
+
2036
+ <code class="ruby"> @name = nil if @name == UNSET_VALUE</code>
2037
+ </li>
2038
+
2039
+ <li class="never" data-hits="" data-linenumber="302">
2040
+
2041
+
2042
+ <code class="ruby"></code>
2043
+ </li>
2044
+
2045
+ <li class="never" data-hits="" data-linenumber="303">
2046
+
2047
+
2048
+ <code class="ruby"> # Path must be nil, since we can&#39;t default that</code>
2049
+ </li>
2050
+
2051
+ <li class="covered" data-hits="134" data-linenumber="304">
2052
+ <span class="hits">134</span>
2053
+
2054
+ <code class="ruby"> @path = nil if @path == UNSET_VALUE</code>
2055
+ </li>
2056
+
2057
+ <li class="never" data-hits="" data-linenumber="305">
2058
+
2059
+
2060
+ <code class="ruby"></code>
2061
+ </li>
2062
+
2063
+ <li class="never" data-hits="" data-linenumber="306">
2064
+
2065
+
2066
+ <code class="ruby"> # Port must be nil, since we can&#39;t default that</code>
2067
+ </li>
2068
+
2069
+ <li class="covered" data-hits="134" data-linenumber="307">
2070
+ <span class="hits">134</span>
2071
+
2072
+ <code class="ruby"> @port = nil if @port == UNSET_VALUE</code>
2073
+ </li>
2074
+
2075
+ <li class="never" data-hits="" data-linenumber="308">
2076
+
2077
+
2078
+ <code class="ruby"></code>
2079
+ </li>
2080
+
2081
+ <li class="never" data-hits="" data-linenumber="309">
2082
+
2083
+
2084
+ <code class="ruby"> # We default the scheme to whatever the user has specifid in the .fog file</code>
2085
+ </li>
2086
+
2087
+ <li class="never" data-hits="" data-linenumber="310">
2088
+
2089
+
2090
+ <code class="ruby"> # *OR* whatever is default for the provider in the fog library</code>
2091
+ </li>
2092
+
2093
+ <li class="covered" data-hits="134" data-linenumber="311">
2094
+ <span class="hits">134</span>
2095
+
2096
+ <code class="ruby"> @scheme = nil if @scheme == UNSET_VALUE</code>
2097
+ </li>
2098
+
2099
+ <li class="never" data-hits="" data-linenumber="312">
2100
+
2101
+
2102
+ <code class="ruby"></code>
2103
+ </li>
2104
+
2105
+ <li class="never" data-hits="" data-linenumber="313">
2106
+
2107
+
2108
+ <code class="ruby"> # Try to get access keys from environment variables, they will</code>
2109
+ </li>
2110
+
2111
+ <li class="never" data-hits="" data-linenumber="314">
2112
+
2113
+
2114
+ <code class="ruby"> # default to nil if the environment variables are not present</code>
2115
+ </li>
2116
+
2117
+ <li class="covered" data-hits="134" data-linenumber="315">
2118
+ <span class="hits">134</span>
2119
+
2120
+ <code class="ruby"> @api_key = ENV[&#39;CLOUDSTACK_API_KEY&#39;] if @api_key == UNSET_VALUE</code>
2121
+ </li>
2122
+
2123
+ <li class="covered" data-hits="134" data-linenumber="316">
2124
+ <span class="hits">134</span>
2125
+
2126
+ <code class="ruby"> @secret_key = ENV[&#39;CLOUDSTACK_SECRET_KEY&#39;] if @secret_key == UNSET_VALUE</code>
2127
+ </li>
2128
+
2129
+ <li class="never" data-hits="" data-linenumber="317">
2130
+
2131
+
2132
+ <code class="ruby"></code>
2133
+ </li>
2134
+
2135
+ <li class="never" data-hits="" data-linenumber="318">
2136
+
2137
+
2138
+ <code class="ruby"> # Set the default timeout for waiting for an instance to be ready</code>
2139
+ </li>
2140
+
2141
+ <li class="covered" data-hits="134" data-linenumber="319">
2142
+ <span class="hits">134</span>
2143
+
2144
+ <code class="ruby"> @instance_ready_timeout = 120 if @instance_ready_timeout == UNSET_VALUE</code>
2145
+ </li>
2146
+
2147
+ <li class="never" data-hits="" data-linenumber="320">
2148
+
2149
+
2150
+ <code class="ruby"></code>
2151
+ </li>
2152
+
2153
+ <li class="never" data-hits="" data-linenumber="321">
2154
+
2155
+
2156
+ <code class="ruby"> # Domain id must be nil, since we can&#39;t default that</code>
2157
+ </li>
2158
+
2159
+ <li class="covered" data-hits="134" data-linenumber="322">
2160
+ <span class="hits">134</span>
2161
+
2162
+ <code class="ruby"> @domain_id = nil if @domain_id == UNSET_VALUE</code>
2163
+ </li>
2164
+
2165
+ <li class="never" data-hits="" data-linenumber="323">
2166
+
2167
+
2168
+ <code class="ruby"></code>
2169
+ </li>
2170
+
2171
+ <li class="never" data-hits="" data-linenumber="324">
2172
+
2173
+
2174
+ <code class="ruby"> # Network uuid must be nil, since we can&#39;t default that</code>
2175
+ </li>
2176
+
2177
+ <li class="covered" data-hits="134" data-linenumber="325">
2178
+ <span class="hits">134</span>
2179
+
2180
+ <code class="ruby"> @network_id = nil if @network_id == UNSET_VALUE</code>
2181
+ </li>
2182
+
2183
+ <li class="never" data-hits="" data-linenumber="326">
2184
+
2185
+
2186
+ <code class="ruby"></code>
2187
+ </li>
2188
+
2189
+ <li class="never" data-hits="" data-linenumber="327">
2190
+
2191
+
2192
+ <code class="ruby"> # Network uuid must be nil, since we can&#39;t default that</code>
2193
+ </li>
2194
+
2195
+ <li class="covered" data-hits="134" data-linenumber="328">
2196
+ <span class="hits">134</span>
2197
+
2198
+ <code class="ruby"> @network_name = nil if @network_name == UNSET_VALUE</code>
2199
+ </li>
2200
+
2201
+ <li class="never" data-hits="" data-linenumber="329">
2202
+
2203
+
2204
+ <code class="ruby"></code>
2205
+ </li>
2206
+
2207
+ <li class="never" data-hits="" data-linenumber="330">
2208
+
2209
+
2210
+ <code class="ruby"> # NetworkType is &#39;Advanced&#39; by default</code>
2211
+ </li>
2212
+
2213
+ <li class="covered" data-hits="134" data-linenumber="331">
2214
+ <span class="hits">134</span>
2215
+
2216
+ <code class="ruby"> @network_type = &quot;Advanced&quot; if @network_type == UNSET_VALUE</code>
2217
+ </li>
2218
+
2219
+ <li class="never" data-hits="" data-linenumber="332">
2220
+
2221
+
2222
+ <code class="ruby"></code>
2223
+ </li>
2224
+
2225
+ <li class="never" data-hits="" data-linenumber="333">
2226
+
2227
+
2228
+ <code class="ruby"> # Project uuid must be nil, since we can&#39;t default that</code>
2229
+ </li>
2230
+
2231
+ <li class="covered" data-hits="134" data-linenumber="334">
2232
+ <span class="hits">134</span>
2233
+
2234
+ <code class="ruby"> @project_id = nil if @project_id == UNSET_VALUE</code>
2235
+ </li>
2236
+
2237
+ <li class="never" data-hits="" data-linenumber="335">
2238
+
2239
+
2240
+ <code class="ruby"></code>
2241
+ </li>
2242
+
2243
+ <li class="never" data-hits="" data-linenumber="336">
2244
+
2245
+
2246
+ <code class="ruby"> # Service offering uuid must be nil, since we can&#39;t default that</code>
2247
+ </li>
2248
+
2249
+ <li class="covered" data-hits="134" data-linenumber="337">
2250
+ <span class="hits">134</span>
2251
+
2252
+ <code class="ruby"> @service_offering_id = nil if @service_offering_id == UNSET_VALUE</code>
2253
+ </li>
2254
+
2255
+ <li class="never" data-hits="" data-linenumber="338">
2256
+
2257
+
2258
+ <code class="ruby"></code>
2259
+ </li>
2260
+
2261
+ <li class="never" data-hits="" data-linenumber="339">
2262
+
2263
+
2264
+ <code class="ruby"> # Service offering name must be nil, since we can&#39;t default that</code>
2265
+ </li>
2266
+
2267
+ <li class="covered" data-hits="134" data-linenumber="340">
2268
+ <span class="hits">134</span>
2269
+
2270
+ <code class="ruby"> @service_offering_name = nil if @service_offering_name == UNSET_VALUE</code>
2271
+ </li>
2272
+
2273
+ <li class="never" data-hits="" data-linenumber="341">
2274
+
2275
+
2276
+ <code class="ruby"></code>
2277
+ </li>
2278
+
2279
+ <li class="never" data-hits="" data-linenumber="342">
2280
+
2281
+
2282
+ <code class="ruby"> # Template uuid must be nil, since we can&#39;t default that</code>
2283
+ </li>
2284
+
2285
+ <li class="covered" data-hits="134" data-linenumber="343">
2286
+ <span class="hits">134</span>
2287
+
2288
+ <code class="ruby"> @template_id = nil if @template_id == UNSET_VALUE</code>
2289
+ </li>
2290
+
2291
+ <li class="never" data-hits="" data-linenumber="344">
2292
+
2293
+
2294
+ <code class="ruby"></code>
2295
+ </li>
2296
+
2297
+ <li class="never" data-hits="" data-linenumber="345">
2298
+
2299
+
2300
+ <code class="ruby"> # Template name must be nil, since we can&#39;t default that</code>
2301
+ </li>
2302
+
2303
+ <li class="covered" data-hits="134" data-linenumber="346">
2304
+ <span class="hits">134</span>
2305
+
2306
+ <code class="ruby"> @template_name = nil if @template_name == UNSET_VALUE</code>
2307
+ </li>
2308
+
2309
+ <li class="never" data-hits="" data-linenumber="347">
2310
+
2311
+
2312
+ <code class="ruby"></code>
2313
+ </li>
2314
+
2315
+ <li class="never" data-hits="" data-linenumber="348">
2316
+
2317
+
2318
+ <code class="ruby"> # Zone uuid must be nil, since we can&#39;t default that</code>
2319
+ </li>
2320
+
2321
+ <li class="covered" data-hits="134" data-linenumber="349">
2322
+ <span class="hits">134</span>
2323
+
2324
+ <code class="ruby"> @zone_id = nil if @zone_id == UNSET_VALUE</code>
2325
+ </li>
2326
+
2327
+ <li class="never" data-hits="" data-linenumber="350">
2328
+
2329
+
2330
+ <code class="ruby"></code>
2331
+ </li>
2332
+
2333
+ <li class="never" data-hits="" data-linenumber="351">
2334
+
2335
+
2336
+ <code class="ruby"> # Zone uuid must be nil, since we can&#39;t default that</code>
2337
+ </li>
2338
+
2339
+ <li class="covered" data-hits="134" data-linenumber="352">
2340
+ <span class="hits">134</span>
2341
+
2342
+ <code class="ruby"> @zone_name = nil if @zone_name == UNSET_VALUE</code>
2343
+ </li>
2344
+
2345
+ <li class="never" data-hits="" data-linenumber="353">
2346
+
2347
+
2348
+ <code class="ruby"></code>
2349
+ </li>
2350
+
2351
+ <li class="never" data-hits="" data-linenumber="354">
2352
+
2353
+
2354
+ <code class="ruby"> # Keypair defaults to nil</code>
2355
+ </li>
2356
+
2357
+ <li class="covered" data-hits="134" data-linenumber="355">
2358
+ <span class="hits">134</span>
2359
+
2360
+ <code class="ruby"> @keypair = nil if @keypair == UNSET_VALUE</code>
2361
+ </li>
2362
+
2363
+ <li class="never" data-hits="" data-linenumber="356">
2364
+
2365
+
2366
+ <code class="ruby"></code>
2367
+ </li>
2368
+
2369
+ <li class="never" data-hits="" data-linenumber="357">
2370
+
2371
+
2372
+ <code class="ruby"> # Static NAT must be empty array </code>
2373
+ </li>
2374
+
2375
+ <li class="covered" data-hits="134" data-linenumber="358">
2376
+ <span class="hits">134</span>
2377
+
2378
+ <code class="ruby"> @static_nat = [] if @static_nat == UNSET_VALUE</code>
2379
+ </li>
2380
+
2381
+ <li class="never" data-hits="" data-linenumber="359">
2382
+
2383
+
2384
+ <code class="ruby"></code>
2385
+ </li>
2386
+
2387
+ <li class="never" data-hits="" data-linenumber="360">
2388
+
2389
+
2390
+ <code class="ruby"> # IP address id must be nil, since we can&#39;t default that</code>
2391
+ </li>
2392
+
2393
+ <li class="covered" data-hits="134" data-linenumber="361">
2394
+ <span class="hits">134</span>
2395
+
2396
+ <code class="ruby"> @pf_ip_address_id = nil if @pf_ip_address_id == UNSET_VALUE</code>
2397
+ </li>
2398
+
2399
+ <li class="never" data-hits="" data-linenumber="362">
2400
+
2401
+
2402
+ <code class="ruby"></code>
2403
+ </li>
2404
+
2405
+ <li class="never" data-hits="" data-linenumber="363">
2406
+
2407
+
2408
+ <code class="ruby"> # IP address must be nil, since we can&#39;t default that</code>
2409
+ </li>
2410
+
2411
+ <li class="covered" data-hits="134" data-linenumber="364">
2412
+ <span class="hits">134</span>
2413
+
2414
+ <code class="ruby"> @pf_ip_address = nil if @pf_ip_address == UNSET_VALUE</code>
2415
+ </li>
2416
+
2417
+ <li class="never" data-hits="" data-linenumber="365">
2418
+
2419
+
2420
+ <code class="ruby"></code>
2421
+ </li>
2422
+
2423
+ <li class="never" data-hits="" data-linenumber="366">
2424
+
2425
+
2426
+ <code class="ruby"> # Public port must be nil, since we can&#39;t default that</code>
2427
+ </li>
2428
+
2429
+ <li class="covered" data-hits="134" data-linenumber="367">
2430
+ <span class="hits">134</span>
2431
+
2432
+ <code class="ruby"> @pf_public_port = nil if @pf_public_port == UNSET_VALUE</code>
2433
+ </li>
2434
+
2435
+ <li class="never" data-hits="" data-linenumber="368">
2436
+
2437
+
2438
+ <code class="ruby"></code>
2439
+ </li>
2440
+
2441
+ <li class="never" data-hits="" data-linenumber="369">
2442
+
2443
+
2444
+ <code class="ruby"> # Private port must be nil, since we can&#39;t default that</code>
2445
+ </li>
2446
+
2447
+ <li class="covered" data-hits="134" data-linenumber="370">
2448
+ <span class="hits">134</span>
2449
+
2450
+ <code class="ruby"> @pf_private_port = nil if @pf_private_port == UNSET_VALUE</code>
2451
+ </li>
2452
+
2453
+ <li class="never" data-hits="" data-linenumber="371">
2454
+
2455
+
2456
+ <code class="ruby"></code>
2457
+ </li>
2458
+
2459
+ <li class="never" data-hits="" data-linenumber="372">
2460
+
2461
+
2462
+ <code class="ruby"> # Port forwarding rules must be empty array </code>
2463
+ </li>
2464
+
2465
+ <li class="covered" data-hits="134" data-linenumber="373">
2466
+ <span class="hits">134</span>
2467
+
2468
+ <code class="ruby"> @port_forwarding_rules = [] if @port_forwarding_rules == UNSET_VALUE</code>
2469
+ </li>
2470
+
2471
+ <li class="never" data-hits="" data-linenumber="374">
2472
+
2473
+
2474
+ <code class="ruby"></code>
2475
+ </li>
2476
+
2477
+ <li class="never" data-hits="" data-linenumber="375">
2478
+
2479
+
2480
+ <code class="ruby"> # Firewall rules must be empty array </code>
2481
+ </li>
2482
+
2483
+ <li class="covered" data-hits="134" data-linenumber="376">
2484
+ <span class="hits">134</span>
2485
+
2486
+ <code class="ruby"> @firewall_rules = [] if @firewall_rules == UNSET_VALUE</code>
2487
+ </li>
2488
+
2489
+ <li class="never" data-hits="" data-linenumber="377">
2490
+
2491
+
2492
+ <code class="ruby"></code>
2493
+ </li>
2494
+
2495
+ <li class="never" data-hits="" data-linenumber="378">
2496
+
2497
+
2498
+ <code class="ruby"> # Security Group IDs must be nil, since we can&#39;t default that</code>
2499
+ </li>
2500
+
2501
+ <li class="covered" data-hits="134" data-linenumber="379">
2502
+ <span class="hits">134</span>
2503
+
2504
+ <code class="ruby"> @security_group_ids = [] if @security_group_ids == UNSET_VALUE</code>
2505
+ </li>
2506
+
2507
+ <li class="never" data-hits="" data-linenumber="380">
2508
+
2509
+
2510
+ <code class="ruby"></code>
2511
+ </li>
2512
+
2513
+ <li class="never" data-hits="" data-linenumber="381">
2514
+
2515
+
2516
+ <code class="ruby"> # Security Group Names must be nil, since we can&#39;t default that</code>
2517
+ </li>
2518
+
2519
+ <li class="covered" data-hits="134" data-linenumber="382">
2520
+ <span class="hits">134</span>
2521
+
2522
+ <code class="ruby"> @security_group_names = [] if @security_group_names == UNSET_VALUE</code>
2523
+ </li>
2524
+
2525
+ <li class="never" data-hits="" data-linenumber="383">
2526
+
2527
+
2528
+ <code class="ruby"></code>
2529
+ </li>
2530
+
2531
+ <li class="never" data-hits="" data-linenumber="384">
2532
+
2533
+
2534
+ <code class="ruby"> # Security Groups must be nil, since we can&#39;t default that</code>
2535
+ </li>
2536
+
2537
+ <li class="covered" data-hits="134" data-linenumber="385">
2538
+ <span class="hits">134</span>
2539
+
2540
+ <code class="ruby"> @security_groups = [] if @security_groups == UNSET_VALUE</code>
2541
+ </li>
2542
+
2543
+ <li class="never" data-hits="" data-linenumber="386">
2544
+
2545
+
2546
+ <code class="ruby"></code>
2547
+ </li>
2548
+
2549
+ <li class="never" data-hits="" data-linenumber="387">
2550
+
2551
+
2552
+ <code class="ruby"> # Display name must be nil, since we can&#39;t default that</code>
2553
+ </li>
2554
+
2555
+ <li class="covered" data-hits="134" data-linenumber="388">
2556
+ <span class="hits">134</span>
2557
+
2558
+ <code class="ruby"> @display_name = nil if @display_name == UNSET_VALUE</code>
2559
+ </li>
2560
+
2561
+ <li class="never" data-hits="" data-linenumber="389">
2562
+
2563
+
2564
+ <code class="ruby"></code>
2565
+ </li>
2566
+
2567
+ <li class="never" data-hits="" data-linenumber="390">
2568
+
2569
+
2570
+ <code class="ruby"> # Group must be nil, since we can&#39;t default that</code>
2571
+ </li>
2572
+
2573
+ <li class="covered" data-hits="134" data-linenumber="391">
2574
+ <span class="hits">134</span>
2575
+
2576
+ <code class="ruby"> @group = nil if @group == UNSET_VALUE</code>
2577
+ </li>
2578
+
2579
+ <li class="never" data-hits="" data-linenumber="392">
2580
+
2581
+
2582
+ <code class="ruby"></code>
2583
+ </li>
2584
+
2585
+ <li class="never" data-hits="" data-linenumber="393">
2586
+
2587
+
2588
+ <code class="ruby"> # User Data is nil by default</code>
2589
+ </li>
2590
+
2591
+ <li class="covered" data-hits="134" data-linenumber="394">
2592
+ <span class="hits">134</span>
2593
+
2594
+ <code class="ruby"> @user_data = nil if @user_data == UNSET_VALUE</code>
2595
+ </li>
2596
+
2597
+ <li class="never" data-hits="" data-linenumber="395">
2598
+
2599
+
2600
+ <code class="ruby"></code>
2601
+ </li>
2602
+
2603
+ <li class="never" data-hits="" data-linenumber="396">
2604
+
2605
+
2606
+ <code class="ruby"> # ssh key is nil by default</code>
2607
+ </li>
2608
+
2609
+ <li class="covered" data-hits="134" data-linenumber="397">
2610
+ <span class="hits">134</span>
2611
+
2612
+ <code class="ruby"> @ssh_key = nil if @ssh_key == UNSET_VALUE</code>
2613
+ </li>
2614
+
2615
+ <li class="never" data-hits="" data-linenumber="398">
2616
+
2617
+
2618
+ <code class="ruby"></code>
2619
+ </li>
2620
+
2621
+ <li class="never" data-hits="" data-linenumber="399">
2622
+
2623
+
2624
+ <code class="ruby"> # ssh key is nil by default</code>
2625
+ </li>
2626
+
2627
+ <li class="covered" data-hits="134" data-linenumber="400">
2628
+ <span class="hits">134</span>
2629
+
2630
+ <code class="ruby"> @ssh_user = nil if @ssh_user == UNSET_VALUE</code>
2631
+ </li>
2632
+
2633
+ <li class="never" data-hits="" data-linenumber="401">
2634
+
2635
+
2636
+ <code class="ruby"></code>
2637
+ </li>
2638
+
2639
+ <li class="never" data-hits="" data-linenumber="402">
2640
+
2641
+
2642
+ <code class="ruby"> # Compile our domain specific configurations only within</code>
2643
+ </li>
2644
+
2645
+ <li class="never" data-hits="" data-linenumber="403">
2646
+
2647
+
2648
+ <code class="ruby"> # NON-DOMAIN-SPECIFIC configurations.</code>
2649
+ </li>
2650
+
2651
+ <li class="covered" data-hits="134" data-linenumber="404">
2652
+ <span class="hits">134</span>
2653
+
2654
+ <code class="ruby"> if !@__domain_specific</code>
2655
+ </li>
2656
+
2657
+ <li class="covered" data-hits="103" data-linenumber="405">
2658
+ <span class="hits">103</span>
2659
+
2660
+ <code class="ruby"> @__domain_config.each do |domain, blocks|</code>
2661
+ </li>
2662
+
2663
+ <li class="covered" data-hits="31" data-linenumber="406">
2664
+ <span class="hits">31</span>
2665
+
2666
+ <code class="ruby"> config = self.class.new(true).merge(self)</code>
2667
+ </li>
2668
+
2669
+ <li class="never" data-hits="" data-linenumber="407">
2670
+
2671
+
2672
+ <code class="ruby"></code>
2673
+ </li>
2674
+
2675
+ <li class="never" data-hits="" data-linenumber="408">
2676
+
2677
+
2678
+ <code class="ruby"> # Execute the configuration for each block</code>
2679
+ </li>
2680
+
2681
+ <li class="covered" data-hits="62" data-linenumber="409">
2682
+ <span class="hits">62</span>
2683
+
2684
+ <code class="ruby"> blocks.each { |b| b.call(config) }</code>
2685
+ </li>
2686
+
2687
+ <li class="never" data-hits="" data-linenumber="410">
2688
+
2689
+
2690
+ <code class="ruby"></code>
2691
+ </li>
2692
+
2693
+ <li class="never" data-hits="" data-linenumber="411">
2694
+
2695
+
2696
+ <code class="ruby"> # The domain name of the configuration always equals the</code>
2697
+ </li>
2698
+
2699
+ <li class="never" data-hits="" data-linenumber="412">
2700
+
2701
+
2702
+ <code class="ruby"> # domain config name:</code>
2703
+ </li>
2704
+
2705
+ <li class="covered" data-hits="31" data-linenumber="413">
2706
+ <span class="hits">31</span>
2707
+
2708
+ <code class="ruby"> config.domain = domain</code>
2709
+ </li>
2710
+
2711
+ <li class="never" data-hits="" data-linenumber="414">
2712
+
2713
+
2714
+ <code class="ruby"></code>
2715
+ </li>
2716
+
2717
+ <li class="never" data-hits="" data-linenumber="415">
2718
+
2719
+
2720
+ <code class="ruby"> # Finalize the configuration</code>
2721
+ </li>
2722
+
2723
+ <li class="covered" data-hits="31" data-linenumber="416">
2724
+ <span class="hits">31</span>
2725
+
2726
+ <code class="ruby"> config.finalize!</code>
2727
+ </li>
2728
+
2729
+ <li class="never" data-hits="" data-linenumber="417">
2730
+
2731
+
2732
+ <code class="ruby"></code>
2733
+ </li>
2734
+
2735
+ <li class="never" data-hits="" data-linenumber="418">
2736
+
2737
+
2738
+ <code class="ruby"> # Store it for retrieval</code>
2739
+ </li>
2740
+
2741
+ <li class="covered" data-hits="31" data-linenumber="419">
2742
+ <span class="hits">31</span>
2743
+
2744
+ <code class="ruby"> @__compiled_domain_configs[domain] = config</code>
2745
+ </li>
2746
+
2747
+ <li class="never" data-hits="" data-linenumber="420">
2748
+
2749
+
2750
+ <code class="ruby"> end</code>
2751
+ </li>
2752
+
2753
+ <li class="never" data-hits="" data-linenumber="421">
2754
+
2755
+
2756
+ <code class="ruby"> end</code>
2757
+ </li>
2758
+
2759
+ <li class="never" data-hits="" data-linenumber="422">
2760
+
2761
+
2762
+ <code class="ruby"></code>
2763
+ </li>
2764
+
2765
+ <li class="never" data-hits="" data-linenumber="423">
2766
+
2767
+
2768
+ <code class="ruby"> # Mark that we finalized</code>
2769
+ </li>
2770
+
2771
+ <li class="covered" data-hits="134" data-linenumber="424">
2772
+ <span class="hits">134</span>
2773
+
2774
+ <code class="ruby"> @__finalized = true</code>
2775
+ </li>
2776
+
2777
+ <li class="never" data-hits="" data-linenumber="425">
2778
+
2779
+
2780
+ <code class="ruby"> end</code>
2781
+ </li>
2782
+
2783
+ <li class="never" data-hits="" data-linenumber="426">
2784
+
2785
+
2786
+ <code class="ruby"></code>
2787
+ </li>
2788
+
2789
+ <li class="covered" data-hits="1" data-linenumber="427">
2790
+ <span class="hits">1</span>
2791
+
2792
+ <code class="ruby"> def validate(machine)</code>
2793
+ </li>
2794
+
2795
+ <li class="missed" data-hits="0" data-linenumber="428">
2796
+
2797
+
2798
+ <code class="ruby"> errors = []</code>
2799
+ </li>
2800
+
2801
+ <li class="never" data-hits="" data-linenumber="429">
2802
+
2803
+
2804
+ <code class="ruby"></code>
2805
+ </li>
2806
+
2807
+ <li class="missed" data-hits="0" data-linenumber="430">
2808
+
2809
+
2810
+ <code class="ruby"> if @domain</code>
2811
+ </li>
2812
+
2813
+ <li class="never" data-hits="" data-linenumber="431">
2814
+
2815
+
2816
+ <code class="ruby"> # Get the configuration for the domain we&#39;re using and validate only</code>
2817
+ </li>
2818
+
2819
+ <li class="never" data-hits="" data-linenumber="432">
2820
+
2821
+
2822
+ <code class="ruby"> # that domain.</code>
2823
+ </li>
2824
+
2825
+ <li class="missed" data-hits="0" data-linenumber="433">
2826
+
2827
+
2828
+ <code class="ruby"> config = get_domain_config(@domain)</code>
2829
+ </li>
2830
+
2831
+ <li class="never" data-hits="" data-linenumber="434">
2832
+
2833
+
2834
+ <code class="ruby"></code>
2835
+ </li>
2836
+
2837
+ <li class="missed" data-hits="0" data-linenumber="435">
2838
+
2839
+
2840
+ <code class="ruby"> if !config.use_fog_profile</code>
2841
+ </li>
2842
+
2843
+ <li class="never" data-hits="" data-linenumber="436">
2844
+
2845
+
2846
+ <code class="ruby"> errors &lt;&lt; I18n.t(&quot;vagrant_cloudstack.config.api_key_required&quot;) if \</code>
2847
+ </li>
2848
+
2849
+ <li class="missed" data-hits="0" data-linenumber="437">
2850
+
2851
+
2852
+ <code class="ruby"> config.access_key_id.nil?</code>
2853
+ </li>
2854
+
2855
+ <li class="never" data-hits="" data-linenumber="438">
2856
+
2857
+
2858
+ <code class="ruby"> errors &lt;&lt; I18n.t(&quot;vagrant_cloudstack.config.secret_key_required&quot;) if \</code>
2859
+ </li>
2860
+
2861
+ <li class="missed" data-hits="0" data-linenumber="439">
2862
+
2863
+
2864
+ <code class="ruby"> config.secret_access_key.nil?</code>
2865
+ </li>
2866
+
2867
+ <li class="never" data-hits="" data-linenumber="440">
2868
+
2869
+
2870
+ <code class="ruby"> end</code>
2871
+ </li>
2872
+
2873
+ <li class="never" data-hits="" data-linenumber="441">
2874
+
2875
+
2876
+ <code class="ruby"> end</code>
2877
+ </li>
2878
+
2879
+ <li class="never" data-hits="" data-linenumber="442">
2880
+
2881
+
2882
+ <code class="ruby"></code>
2883
+ </li>
2884
+
2885
+ <li class="missed" data-hits="0" data-linenumber="443">
2886
+
2887
+
2888
+ <code class="ruby"> {&quot;Cloudstack Provider&quot; =&gt; errors}</code>
2889
+ </li>
2890
+
2891
+ <li class="never" data-hits="" data-linenumber="444">
2892
+
2893
+
2894
+ <code class="ruby"> end</code>
2895
+ </li>
2896
+
2897
+ <li class="never" data-hits="" data-linenumber="445">
2898
+
2899
+
2900
+ <code class="ruby"></code>
2901
+ </li>
2902
+
2903
+ <li class="never" data-hits="" data-linenumber="446">
2904
+
2905
+
2906
+ <code class="ruby"> # This gets the configuration for a specific domain. It shouldn&#39;t</code>
2907
+ </li>
2908
+
2909
+ <li class="never" data-hits="" data-linenumber="447">
2910
+
2911
+
2912
+ <code class="ruby"> # be called by the general public and is only used internally.</code>
2913
+ </li>
2914
+
2915
+ <li class="covered" data-hits="1" data-linenumber="448">
2916
+ <span class="hits">1</span>
2917
+
2918
+ <code class="ruby"> def get_domain_config(name)</code>
2919
+ </li>
2920
+
2921
+ <li class="covered" data-hits="60" data-linenumber="449">
2922
+ <span class="hits">60</span>
2923
+
2924
+ <code class="ruby"> if !@__finalized</code>
2925
+ </li>
2926
+
2927
+ <li class="covered" data-hits="1" data-linenumber="450">
2928
+ <span class="hits">1</span>
2929
+
2930
+ <code class="ruby"> raise &quot;Configuration must be finalized before calling this method.&quot;</code>
2931
+ </li>
2932
+
2933
+ <li class="never" data-hits="" data-linenumber="451">
2934
+
2935
+
2936
+ <code class="ruby"> end</code>
2937
+ </li>
2938
+
2939
+ <li class="never" data-hits="" data-linenumber="452">
2940
+
2941
+
2942
+ <code class="ruby"></code>
2943
+ </li>
2944
+
2945
+ <li class="never" data-hits="" data-linenumber="453">
2946
+
2947
+
2948
+ <code class="ruby"> # Return the compiled domain config</code>
2949
+ </li>
2950
+
2951
+ <li class="covered" data-hits="59" data-linenumber="454">
2952
+ <span class="hits">59</span>
2953
+
2954
+ <code class="ruby"> @__compiled_domain_configs[name] || self</code>
2955
+ </li>
2956
+
2957
+ <li class="never" data-hits="" data-linenumber="455">
2958
+
2959
+
2960
+ <code class="ruby"> end</code>
2961
+ </li>
2962
+
2963
+ <li class="never" data-hits="" data-linenumber="456">
2964
+
2965
+
2966
+ <code class="ruby"> end</code>
2967
+ </li>
2968
+
2969
+ <li class="never" data-hits="" data-linenumber="457">
2970
+
2971
+
2972
+ <code class="ruby"> end</code>
2973
+ </li>
2974
+
2975
+ <li class="never" data-hits="" data-linenumber="458">
2976
+
2977
+
2978
+ <code class="ruby">end</code>
2979
+ </li>
2980
+
2981
+ </ol>
2982
+ </pre>
2983
+ </div>
2984
+
2985
+ <div class="source_table" id="204f091153973f7609f21696da5701030ffc13c0">
2986
+ <div class="header">
2987
+ <h3>lib/vagrant-cloudstack/plugin.rb</h3>
2988
+ <h4><span class="red">36.36 %</span> covered</h4>
2989
+ <div>
2990
+ <b>33</b> relevant lines.
2991
+ <span class="green"><b>12</b> lines covered</span> and
2992
+ <span class="red"><b>21</b> lines missed.</span>
2993
+ </div>
2994
+ </div>
2995
+
2996
+ <pre>
2997
+ <ol>
2998
+
2999
+ <li class="covered" data-hits="1" data-linenumber="1">
3000
+ <span class="hits">1</span>
3001
+
3002
+ <code class="ruby">begin</code>
3003
+ </li>
3004
+
3005
+ <li class="covered" data-hits="1" data-linenumber="2">
3006
+ <span class="hits">1</span>
3007
+
3008
+ <code class="ruby"> require &quot;vagrant&quot;</code>
3009
+ </li>
3010
+
3011
+ <li class="never" data-hits="" data-linenumber="3">
3012
+
3013
+
3014
+ <code class="ruby">rescue LoadError</code>
3015
+ </li>
3016
+
3017
+ <li class="missed" data-hits="0" data-linenumber="4">
3018
+
3019
+
3020
+ <code class="ruby"> raise &quot;The Vagrant Cloudstack plugin must be run within Vagrant.&quot;</code>
3021
+ </li>
3022
+
3023
+ <li class="never" data-hits="" data-linenumber="5">
3024
+
3025
+
3026
+ <code class="ruby">end</code>
3027
+ </li>
3028
+
3029
+ <li class="never" data-hits="" data-linenumber="6">
3030
+
3031
+
3032
+ <code class="ruby"></code>
3033
+ </li>
3034
+
3035
+ <li class="never" data-hits="" data-linenumber="7">
3036
+
3037
+
3038
+ <code class="ruby"># This is a sanity check to make sure no one is attempting to install</code>
3039
+ </li>
3040
+
3041
+ <li class="never" data-hits="" data-linenumber="8">
3042
+
3043
+
3044
+ <code class="ruby"># this into an early Vagrant version.</code>
3045
+ </li>
3046
+
3047
+ <li class="covered" data-hits="1" data-linenumber="9">
3048
+ <span class="hits">1</span>
3049
+
3050
+ <code class="ruby">if Vagrant::VERSION &lt; &quot;1.5.0&quot;</code>
3051
+ </li>
3052
+
3053
+ <li class="missed" data-hits="0" data-linenumber="10">
3054
+
3055
+
3056
+ <code class="ruby"> raise &quot;The Vagrant Cloudstack plugin is only compatible with Vagrant 1.5+&quot;</code>
3057
+ </li>
3058
+
3059
+ <li class="never" data-hits="" data-linenumber="11">
3060
+
3061
+
3062
+ <code class="ruby">end</code>
3063
+ </li>
3064
+
3065
+ <li class="never" data-hits="" data-linenumber="12">
3066
+
3067
+
3068
+ <code class="ruby"></code>
3069
+ </li>
3070
+
3071
+ <li class="covered" data-hits="1" data-linenumber="13">
3072
+ <span class="hits">1</span>
3073
+
3074
+ <code class="ruby">module VagrantPlugins</code>
3075
+ </li>
3076
+
3077
+ <li class="covered" data-hits="1" data-linenumber="14">
3078
+ <span class="hits">1</span>
3079
+
3080
+ <code class="ruby"> module Cloudstack</code>
3081
+ </li>
3082
+
3083
+ <li class="covered" data-hits="1" data-linenumber="15">
3084
+ <span class="hits">1</span>
3085
+
3086
+ <code class="ruby"> class Plugin &lt; Vagrant.plugin(&quot;2&quot;)</code>
3087
+ </li>
3088
+
3089
+ <li class="covered" data-hits="1" data-linenumber="16">
3090
+ <span class="hits">1</span>
3091
+
3092
+ <code class="ruby"> name &quot;Cloudstack&quot;</code>
3093
+ </li>
3094
+
3095
+ <li class="covered" data-hits="1" data-linenumber="17">
3096
+ <span class="hits">1</span>
3097
+
3098
+ <code class="ruby"> description &lt;&lt;-DESC</code>
3099
+ </li>
3100
+
3101
+ <li class="never" data-hits="" data-linenumber="18">
3102
+
3103
+
3104
+ <code class="ruby"> This plugin installs a provider that allows Vagrant to manage</code>
3105
+ </li>
3106
+
3107
+ <li class="never" data-hits="" data-linenumber="19">
3108
+
3109
+
3110
+ <code class="ruby"> machines in Cloudstack.</code>
3111
+ </li>
3112
+
3113
+ <li class="never" data-hits="" data-linenumber="20">
3114
+
3115
+
3116
+ <code class="ruby"> DESC</code>
3117
+ </li>
3118
+
3119
+ <li class="never" data-hits="" data-linenumber="21">
3120
+
3121
+
3122
+ <code class="ruby"></code>
3123
+ </li>
3124
+
3125
+ <li class="covered" data-hits="1" data-linenumber="22">
3126
+ <span class="hits">1</span>
3127
+
3128
+ <code class="ruby"> config(:cloudstack, :provider) do</code>
3129
+ </li>
3130
+
3131
+ <li class="missed" data-hits="0" data-linenumber="23">
3132
+
3133
+
3134
+ <code class="ruby"> require_relative &quot;config&quot;</code>
3135
+ </li>
3136
+
3137
+ <li class="missed" data-hits="0" data-linenumber="24">
3138
+
3139
+
3140
+ <code class="ruby"> Config</code>
3141
+ </li>
3142
+
3143
+ <li class="never" data-hits="" data-linenumber="25">
3144
+
3145
+
3146
+ <code class="ruby"> end</code>
3147
+ </li>
3148
+
3149
+ <li class="never" data-hits="" data-linenumber="26">
3150
+
3151
+
3152
+ <code class="ruby"></code>
3153
+ </li>
3154
+
3155
+ <li class="covered" data-hits="1" data-linenumber="27">
3156
+ <span class="hits">1</span>
3157
+
3158
+ <code class="ruby"> provider(:cloudstack, parallel: true) do # Setup logging and i18n</code>
3159
+ </li>
3160
+
3161
+ <li class="missed" data-hits="0" data-linenumber="28">
3162
+
3163
+
3164
+ <code class="ruby"> setup_logging</code>
3165
+ </li>
3166
+
3167
+ <li class="missed" data-hits="0" data-linenumber="29">
3168
+
3169
+
3170
+ <code class="ruby"> setup_i18n</code>
3171
+ </li>
3172
+
3173
+ <li class="never" data-hits="" data-linenumber="30">
3174
+
3175
+
3176
+ <code class="ruby"></code>
3177
+ </li>
3178
+
3179
+ <li class="never" data-hits="" data-linenumber="31">
3180
+
3181
+
3182
+ <code class="ruby"> # Return the provider</code>
3183
+ </li>
3184
+
3185
+ <li class="missed" data-hits="0" data-linenumber="32">
3186
+
3187
+
3188
+ <code class="ruby"> require_relative &quot;provider&quot;</code>
3189
+ </li>
3190
+
3191
+ <li class="missed" data-hits="0" data-linenumber="33">
3192
+
3193
+
3194
+ <code class="ruby"> Provider</code>
3195
+ </li>
3196
+
3197
+ <li class="never" data-hits="" data-linenumber="34">
3198
+
3199
+
3200
+ <code class="ruby"> end</code>
3201
+ </li>
3202
+
3203
+ <li class="never" data-hits="" data-linenumber="35">
3204
+
3205
+
3206
+ <code class="ruby"></code>
3207
+ </li>
3208
+
3209
+ <li class="never" data-hits="" data-linenumber="36">
3210
+
3211
+
3212
+ <code class="ruby"> # This initializes the internationalization strings.</code>
3213
+ </li>
3214
+
3215
+ <li class="covered" data-hits="1" data-linenumber="37">
3216
+ <span class="hits">1</span>
3217
+
3218
+ <code class="ruby"> def self.setup_i18n</code>
3219
+ </li>
3220
+
3221
+ <li class="missed" data-hits="0" data-linenumber="38">
3222
+
3223
+
3224
+ <code class="ruby"> I18n.load_path &lt;&lt; File.expand_path(&quot;locales/en.yml&quot;, Cloudstack.source_root)</code>
3225
+ </li>
3226
+
3227
+ <li class="missed" data-hits="0" data-linenumber="39">
3228
+
3229
+
3230
+ <code class="ruby"> I18n.reload!</code>
3231
+ </li>
3232
+
3233
+ <li class="never" data-hits="" data-linenumber="40">
3234
+
3235
+
3236
+ <code class="ruby"> end</code>
3237
+ </li>
3238
+
3239
+ <li class="never" data-hits="" data-linenumber="41">
3240
+
3241
+
3242
+ <code class="ruby"></code>
3243
+ </li>
3244
+
3245
+ <li class="never" data-hits="" data-linenumber="42">
3246
+
3247
+
3248
+ <code class="ruby"> # This sets up our log level to be whatever VAGRANT_LOG is.</code>
3249
+ </li>
3250
+
3251
+ <li class="covered" data-hits="1" data-linenumber="43">
3252
+ <span class="hits">1</span>
3253
+
3254
+ <code class="ruby"> def self.setup_logging</code>
3255
+ </li>
3256
+
3257
+ <li class="missed" data-hits="0" data-linenumber="44">
3258
+
3259
+
3260
+ <code class="ruby"> require &quot;log4r&quot;</code>
3261
+ </li>
3262
+
3263
+ <li class="never" data-hits="" data-linenumber="45">
3264
+
3265
+
3266
+ <code class="ruby"></code>
3267
+ </li>
3268
+
3269
+ <li class="missed" data-hits="0" data-linenumber="46">
3270
+
3271
+
3272
+ <code class="ruby"> level = nil</code>
3273
+ </li>
3274
+
3275
+ <li class="missed" data-hits="0" data-linenumber="47">
3276
+
3277
+
3278
+ <code class="ruby"> begin</code>
3279
+ </li>
3280
+
3281
+ <li class="missed" data-hits="0" data-linenumber="48">
3282
+
3283
+
3284
+ <code class="ruby"> level = Log4r.const_get(ENV[&quot;VAGRANT_LOG&quot;].upcase)</code>
3285
+ </li>
3286
+
3287
+ <li class="never" data-hits="" data-linenumber="49">
3288
+
3289
+
3290
+ <code class="ruby"> rescue NameError</code>
3291
+ </li>
3292
+
3293
+ <li class="never" data-hits="" data-linenumber="50">
3294
+
3295
+
3296
+ <code class="ruby"> # This means that the logging constant wasn&#39;t found,</code>
3297
+ </li>
3298
+
3299
+ <li class="never" data-hits="" data-linenumber="51">
3300
+
3301
+
3302
+ <code class="ruby"> # which is fine. We just keep `level` as `nil`. But</code>
3303
+ </li>
3304
+
3305
+ <li class="never" data-hits="" data-linenumber="52">
3306
+
3307
+
3308
+ <code class="ruby"> # we tell the user.</code>
3309
+ </li>
3310
+
3311
+ <li class="missed" data-hits="0" data-linenumber="53">
3312
+
3313
+
3314
+ <code class="ruby"> level = nil</code>
3315
+ </li>
3316
+
3317
+ <li class="never" data-hits="" data-linenumber="54">
3318
+
3319
+
3320
+ <code class="ruby"> end</code>
3321
+ </li>
3322
+
3323
+ <li class="never" data-hits="" data-linenumber="55">
3324
+
3325
+
3326
+ <code class="ruby"></code>
3327
+ </li>
3328
+
3329
+ <li class="never" data-hits="" data-linenumber="56">
3330
+
3331
+
3332
+ <code class="ruby"> # Some constants, such as &quot;true&quot; resolve to booleans, so the</code>
3333
+ </li>
3334
+
3335
+ <li class="never" data-hits="" data-linenumber="57">
3336
+
3337
+
3338
+ <code class="ruby"> # above error checking doesn&#39;t catch it. This will check to make</code>
3339
+ </li>
3340
+
3341
+ <li class="never" data-hits="" data-linenumber="58">
3342
+
3343
+
3344
+ <code class="ruby"> # sure that the log level is an integer, as Log4r requires.</code>
3345
+ </li>
3346
+
3347
+ <li class="missed" data-hits="0" data-linenumber="59">
3348
+
3349
+
3350
+ <code class="ruby"> level = nil if !level.is_a?(Integer)</code>
3351
+ </li>
3352
+
3353
+ <li class="never" data-hits="" data-linenumber="60">
3354
+
3355
+
3356
+ <code class="ruby"></code>
3357
+ </li>
3358
+
3359
+ <li class="never" data-hits="" data-linenumber="61">
3360
+
3361
+
3362
+ <code class="ruby"> # Set the logging level on all &quot;vagrant&quot; namespaced</code>
3363
+ </li>
3364
+
3365
+ <li class="never" data-hits="" data-linenumber="62">
3366
+
3367
+
3368
+ <code class="ruby"> # logs as long as we have a valid level.</code>
3369
+ </li>
3370
+
3371
+ <li class="missed" data-hits="0" data-linenumber="63">
3372
+
3373
+
3374
+ <code class="ruby"> if level</code>
3375
+ </li>
3376
+
3377
+ <li class="missed" data-hits="0" data-linenumber="64">
3378
+
3379
+
3380
+ <code class="ruby"> logger = Log4r::Logger.new(&quot;vagrant_cloudstack&quot;)</code>
3381
+ </li>
3382
+
3383
+ <li class="missed" data-hits="0" data-linenumber="65">
3384
+
3385
+
3386
+ <code class="ruby"> logger.outputters = Log4r::Outputter.stderr</code>
3387
+ </li>
3388
+
3389
+ <li class="missed" data-hits="0" data-linenumber="66">
3390
+
3391
+
3392
+ <code class="ruby"> logger.level = level</code>
3393
+ </li>
3394
+
3395
+ <li class="missed" data-hits="0" data-linenumber="67">
3396
+
3397
+
3398
+ <code class="ruby"> logger = nil</code>
3399
+ </li>
3400
+
3401
+ <li class="never" data-hits="" data-linenumber="68">
3402
+
3403
+
3404
+ <code class="ruby"> end</code>
3405
+ </li>
3406
+
3407
+ <li class="never" data-hits="" data-linenumber="69">
3408
+
3409
+
3410
+ <code class="ruby"> end</code>
3411
+ </li>
3412
+
3413
+ <li class="never" data-hits="" data-linenumber="70">
3414
+
3415
+
3416
+ <code class="ruby"> end</code>
3417
+ </li>
3418
+
3419
+ <li class="never" data-hits="" data-linenumber="71">
3420
+
3421
+
3422
+ <code class="ruby"> end</code>
3423
+ </li>
3424
+
3425
+ <li class="never" data-hits="" data-linenumber="72">
3426
+
3427
+
3428
+ <code class="ruby">end</code>
3429
+ </li>
3430
+
3431
+ </ol>
3432
+ </pre>
3433
+ </div>
3434
+
3435
+ </div>
3436
+ </div>
3437
+ </body>
3438
+ </html>