katello_api 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +3 -0
  3. data/Gemfile +1 -1
  4. data/README.rdoc +22 -13
  5. data/Rakefile +0 -1
  6. data/doc/KatelloApi/Base.html +102 -116
  7. data/doc/KatelloApi/Generator/Base.html +65 -80
  8. data/doc/KatelloApi/Generator.html +5 -5
  9. data/doc/KatelloApi/Resources/About.html +360 -0
  10. data/doc/KatelloApi/Resources/ActivationKey.html +190 -304
  11. data/doc/KatelloApi/Resources/Architecture.html +89 -129
  12. data/doc/KatelloApi/Resources/Changeset.html +156 -399
  13. data/doc/KatelloApi/Resources/ChangesetsContent.html +97 -2215
  14. data/doc/KatelloApi/Resources/ComputeResource.html +131 -189
  15. data/doc/KatelloApi/Resources/ConfigTemplate.html +143 -208
  16. data/doc/KatelloApi/Resources/ContentUpload.html +1046 -0
  17. data/doc/KatelloApi/Resources/ContentView.html +229 -117
  18. data/doc/KatelloApi/Resources/ContentViewDefinition.html +1190 -323
  19. data/doc/KatelloApi/Resources/Crl.html +21 -28
  20. data/doc/KatelloApi/Resources/CustomInfo.html +1110 -0
  21. data/doc/KatelloApi/Resources/Distribution.html +40 -56
  22. data/doc/KatelloApi/Resources/Distributor.html +406 -469
  23. data/doc/KatelloApi/Resources/Domain.html +107 -155
  24. data/doc/KatelloApi/Resources/Environment.html +211 -539
  25. data/doc/KatelloApi/Resources/Erratum.html +56 -90
  26. data/doc/KatelloApi/Resources/Filter.html +1533 -0
  27. data/doc/KatelloApi/Resources/FilterRule.html +591 -0
  28. data/doc/KatelloApi/Resources/GpgKey.html +230 -196
  29. data/doc/KatelloApi/Resources/HardwareModel.html +101 -147
  30. data/doc/KatelloApi/Resources/Organization.html +647 -158
  31. data/doc/KatelloApi/Resources/OrganizationDefaultInfo.html +803 -0
  32. data/doc/KatelloApi/Resources/Package.html +57 -81
  33. data/doc/KatelloApi/Resources/Permission.html +109 -197
  34. data/doc/KatelloApi/Resources/Ping.html +37 -179
  35. data/doc/KatelloApi/Resources/Product.html +289 -462
  36. data/doc/KatelloApi/Resources/Provider.html +397 -424
  37. data/doc/KatelloApi/Resources/PuppetModule.html +704 -0
  38. data/doc/KatelloApi/Resources/Repository.html +302 -958
  39. data/doc/KatelloApi/Resources/RepositorySet.html +64 -104
  40. data/doc/KatelloApi/Resources/Role.html +131 -250
  41. data/doc/KatelloApi/Resources/RoleLdapGroup.html +74 -95
  42. data/doc/KatelloApi/Resources/SmartProxy.html +97 -143
  43. data/doc/KatelloApi/Resources/Statu.html +21 -28
  44. data/doc/KatelloApi/Resources/Status.html +360 -0
  45. data/doc/KatelloApi/Resources/Subnet.html +89 -129
  46. data/doc/KatelloApi/Resources/Subscription.html +486 -162
  47. data/doc/KatelloApi/Resources/Sync.html +85 -155
  48. data/doc/KatelloApi/Resources/SyncPlan.html +127 -220
  49. data/doc/KatelloApi/Resources/System.html +913 -925
  50. data/doc/KatelloApi/Resources/SystemErratum.html +557 -0
  51. data/doc/KatelloApi/Resources/SystemGroup.html +634 -408
  52. data/doc/KatelloApi/Resources/SystemGroupErratum.html +47 -66
  53. data/doc/KatelloApi/Resources/SystemGroupPackage.html +77 -108
  54. data/doc/KatelloApi/Resources/SystemPackage.html +734 -108
  55. data/doc/KatelloApi/Resources/SystemsBulkAction.html +1706 -0
  56. data/doc/KatelloApi/Resources/Task.html +38 -53
  57. data/doc/KatelloApi/Resources/Template.html +159 -233
  58. data/doc/KatelloApi/Resources/TemplatesContent.html +214 -312
  59. data/doc/KatelloApi/Resources/Uebercert.html +25 -34
  60. data/doc/KatelloApi/Resources/User.html +204 -433
  61. data/doc/KatelloApi/Resources.html +7 -7
  62. data/doc/KatelloApi.html +21 -26
  63. data/doc/_index.html +87 -9
  64. data/doc/class_list.html +3 -2
  65. data/doc/css/style.css +1 -1
  66. data/doc/file.README.html +60 -54
  67. data/doc/file_list.html +2 -1
  68. data/doc/frames.html +5 -7
  69. data/doc/index.html +60 -54
  70. data/doc/js/app.js +7 -2
  71. data/doc/js/full_list.js +7 -2
  72. data/doc/method_list.html +854 -1225
  73. data/doc/top-level-namespace.html +5 -5
  74. data/katello_api.gemspec +7 -5
  75. data/lib/katello_api/base.rb +9 -8
  76. data/lib/katello_api/documentation.json +1 -1
  77. data/lib/katello_api/resources/about.rb +18 -0
  78. data/lib/katello_api/resources/activation_key.rb +11 -13
  79. data/lib/katello_api/resources/changeset.rb +4 -15
  80. data/lib/katello_api/resources/changesets_content.rb +6 -130
  81. data/lib/katello_api/resources/content_upload.rb +61 -0
  82. data/lib/katello_api/resources/content_view.rb +10 -1
  83. data/lib/katello_api/resources/content_view_definition.rb +65 -3
  84. data/lib/katello_api/resources/custom_info.rb +70 -0
  85. data/lib/katello_api/resources/distributor.rb +33 -18
  86. data/lib/katello_api/resources/environment.rb +20 -41
  87. data/lib/katello_api/resources/erratum.rb +3 -4
  88. data/lib/katello_api/resources/filter.rb +93 -0
  89. data/lib/katello_api/resources/filter_rule.rb +36 -0
  90. data/lib/katello_api/resources/gpg_key.rb +18 -14
  91. data/lib/katello_api/resources/organization.rb +43 -8
  92. data/lib/katello_api/resources/organization_default_info.rb +48 -0
  93. data/lib/katello_api/resources/permission.rb +10 -7
  94. data/lib/katello_api/resources/ping.rb +1 -9
  95. data/lib/katello_api/resources/product.rb +26 -30
  96. data/lib/katello_api/resources/provider.rb +21 -20
  97. data/lib/katello_api/resources/puppet_module.rb +39 -0
  98. data/lib/katello_api/resources/repository.rb +28 -62
  99. data/lib/katello_api/resources/repository_set.rb +1 -2
  100. data/lib/katello_api/resources/role.rb +0 -5
  101. data/lib/katello_api/resources/role_ldap_group.rb +3 -1
  102. data/lib/katello_api/resources/status.rb +18 -0
  103. data/lib/katello_api/resources/subscription.rb +33 -7
  104. data/lib/katello_api/resources/sync.rb +9 -12
  105. data/lib/katello_api/resources/sync_plan.rb +2 -5
  106. data/lib/katello_api/resources/system.rb +95 -73
  107. data/lib/katello_api/resources/system_erratum.rb +30 -0
  108. data/lib/katello_api/resources/system_group.rb +40 -27
  109. data/lib/katello_api/resources/system_group_erratum.rb +1 -1
  110. data/lib/katello_api/resources/system_group_package.rb +6 -6
  111. data/lib/katello_api/resources/system_package.rb +46 -5
  112. data/lib/katello_api/resources/systems_bulk_action.rb +140 -0
  113. data/lib/katello_api/resources/user.rb +14 -18
  114. data/lib/katello_api/version.rb +1 -1
  115. metadata +26 -14
@@ -6,13 +6,13 @@
6
6
  <title>
7
7
  Class: KatelloApi::Generator::Base
8
8
 
9
- &mdash; Documentation by YARD 0.8.5.2
9
+ &mdash; Documentation by YARD 0.8.7.3
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
14
 
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
16
 
17
17
  <script type="text/javascript" charset="utf-8">
18
18
  hasFrames = window.top.frames.main ? true : false;
@@ -134,9 +134,8 @@
134
134
 
135
135
 
136
136
 
137
- <span class="summary_desc"><div class='inline'><p>
138
- Returns the value of attribute doc.
139
- </p>
137
+ <span class="summary_desc"><div class='inline'>
138
+ <p>Returns the value of attribute doc.</p>
140
139
  </div></span>
141
140
 
142
141
  </li>
@@ -164,9 +163,8 @@ Returns the value of attribute doc.
164
163
 
165
164
 
166
165
 
167
- <span class="summary_desc"><div class='inline'><p>
168
- Returns the value of attribute resource.
169
- </p>
166
+ <span class="summary_desc"><div class='inline'>
167
+ <p>Returns the value of attribute resource.</p>
170
168
  </div></span>
171
169
 
172
170
  </li>
@@ -194,9 +192,8 @@ Returns the value of attribute resource.
194
192
 
195
193
 
196
194
 
197
- <span class="summary_desc"><div class='inline'><p>
198
- Returns the value of attribute resource_key.
199
- </p>
195
+ <span class="summary_desc"><div class='inline'>
196
+ <p>Returns the value of attribute resource_key.</p>
200
197
  </div></span>
201
198
 
202
199
  </li>
@@ -240,7 +237,7 @@ Returns the value of attribute resource_key.
240
237
  <li class="public ">
241
238
  <span class="summary_signature">
242
239
 
243
- <a href="#start-class_method" title="start (class method)">+ (Object) <strong>start</strong>(katello_url) </a>
240
+ <a href="#start-class_method" title="start (class method)">+ (Object) <strong>start</strong>(katello_url, api_version = nil) </a>
244
241
 
245
242
 
246
243
 
@@ -309,9 +306,8 @@ Returns the value of attribute resource_key.
309
306
 
310
307
 
311
308
 
312
- <span class="summary_desc"><div class='inline'><p>
313
- A new instance of Base.
314
- </p>
309
+ <span class="summary_desc"><div class='inline'>
310
+ <p>A new instance of Base.</p>
315
311
  </div></span>
316
312
 
317
313
  </li>
@@ -337,9 +333,8 @@ A new instance of Base.
337
333
 
338
334
  </h3><div class="docstring">
339
335
  <div class="discussion">
340
- <p>
341
- A new instance of Base
342
- </p>
336
+
337
+ <p>Returns a new instance of Base</p>
343
338
 
344
339
 
345
340
  </div>
@@ -361,11 +356,10 @@ A new instance of Base
361
356
  <td>
362
357
  <pre class="code"><span class="info file"># File 'lib/katello_api/generator/base.rb', line 25</span>
363
358
 
364
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='rubyid_doc identifier id'>doc</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='rubyid_args identifier id'>args</span><span class='rparen token'>)</span>
365
- <span class='rubyid_super super kw'>super</span>
366
- <span class='rubyid_@doc ivar id'>@doc</span> <span class='assign token'>=</span> <span class='rubyid_doc identifier id'>doc</span><span class='dot token'>.</span><span class='rubyid_first identifier id'>first</span>
367
- <span class='rubyid_end end kw'>end</span>
368
- </pre>
359
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_doc'>doc</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
360
+ <span class='kw'>super</span>
361
+ <span class='ivar'>@doc</span> <span class='op'>=</span> <span class='id identifier rubyid_doc'>doc</span><span class='period'>.</span><span class='id identifier rubyid_first'>first</span>
362
+ <span class='kw'>end</span></pre>
369
363
  </td>
370
364
  </tr>
371
365
  </table>
@@ -389,9 +383,8 @@ A new instance of Base
389
383
 
390
384
  </h3><div class="docstring">
391
385
  <div class="discussion">
392
- <p>
393
- Returns the value of attribute doc
394
- </p>
386
+
387
+ <p>Returns the value of attribute doc</p>
395
388
 
396
389
 
397
390
  </div>
@@ -412,10 +405,9 @@ Returns the value of attribute doc
412
405
  <td>
413
406
  <pre class="code"><span class="info file"># File 'lib/katello_api/generator/base.rb', line 23</span>
414
407
 
415
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_doc identifier id'>doc</span>
416
- <span class='rubyid_@doc ivar id'>@doc</span>
417
- <span class='rubyid_end end kw'>end</span>
418
- </pre>
408
+ <span class='kw'>def</span> <span class='id identifier rubyid_doc'>doc</span>
409
+ <span class='ivar'>@doc</span>
410
+ <span class='kw'>end</span></pre>
419
411
  </td>
420
412
  </tr>
421
413
  </table>
@@ -434,9 +426,8 @@ Returns the value of attribute doc
434
426
 
435
427
  </h3><div class="docstring">
436
428
  <div class="discussion">
437
- <p>
438
- Returns the value of attribute resource
439
- </p>
429
+
430
+ <p>Returns the value of attribute resource</p>
440
431
 
441
432
 
442
433
  </div>
@@ -457,10 +448,9 @@ Returns the value of attribute resource
457
448
  <td>
458
449
  <pre class="code"><span class="info file"># File 'lib/katello_api/generator/base.rb', line 23</span>
459
450
 
460
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_resource identifier id'>resource</span>
461
- <span class='rubyid_@resource ivar id'>@resource</span>
462
- <span class='rubyid_end end kw'>end</span>
463
- </pre>
451
+ <span class='kw'>def</span> <span class='id identifier rubyid_resource'>resource</span>
452
+ <span class='ivar'>@resource</span>
453
+ <span class='kw'>end</span></pre>
464
454
  </td>
465
455
  </tr>
466
456
  </table>
@@ -479,9 +469,8 @@ Returns the value of attribute resource
479
469
 
480
470
  </h3><div class="docstring">
481
471
  <div class="discussion">
482
- <p>
483
- Returns the value of attribute resource_key
484
- </p>
472
+
473
+ <p>Returns the value of attribute resource_key</p>
485
474
 
486
475
 
487
476
  </div>
@@ -502,10 +491,9 @@ Returns the value of attribute resource_key
502
491
  <td>
503
492
  <pre class="code"><span class="info file"># File 'lib/katello_api/generator/base.rb', line 23</span>
504
493
 
505
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_resource_key identifier id'>resource_key</span>
506
- <span class='rubyid_@resource_key ivar id'>@resource_key</span>
507
- <span class='rubyid_end end kw'>end</span>
508
- </pre>
494
+ <span class='kw'>def</span> <span class='id identifier rubyid_resource_key'>resource_key</span>
495
+ <span class='ivar'>@resource_key</span>
496
+ <span class='kw'>end</span></pre>
509
497
  </td>
510
498
  </tr>
511
499
  </table>
@@ -540,10 +528,9 @@ Returns the value of attribute resource_key
540
528
  <td>
541
529
  <pre class="code"><span class="info file"># File 'lib/katello_api/generator/base.rb', line 30</span>
542
530
 
543
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_source_root identifier id'>source_root</span>
544
- <span class='rubyid_File constant id'>File</span><span class='dot token'>.</span><span class='rubyid_expand_path identifier id'>expand_path</span><span class='lparen token'>(</span><span class='string val'>&quot;../template&quot;</span><span class='comma token'>,</span> <span class='rubyid___FILE__ __file__ kw'>__FILE__</span><span class='rparen token'>)</span>
545
- <span class='rubyid_end end kw'>end</span>
546
- </pre>
531
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_source_root'>source_root</span>
532
+ <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>../template</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='kw'>__FILE__</span><span class='rparen'>)</span>
533
+ <span class='kw'>end</span></pre>
547
534
  </td>
548
535
  </tr>
549
536
  </table>
@@ -552,7 +539,7 @@ Returns the value of attribute resource_key
552
539
  <div class="method_details ">
553
540
  <h3 class="signature " id="start-class_method">
554
541
 
555
- + (<tt>Object</tt>) <strong>start</strong>(katello_url)
542
+ + (<tt>Object</tt>) <strong>start</strong>(katello_url, api_version = nil)
556
543
 
557
544
 
558
545
 
@@ -588,27 +575,26 @@ Returns the value of attribute resource_key
588
575
  <td>
589
576
  <pre class="code"><span class="info file"># File 'lib/katello_api/generator/base.rb', line 34</span>
590
577
 
591
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_self self kw'>self</span><span class='dot token'>.</span><span class='rubyid_start identifier id'>start</span><span class='lparen token'>(</span><span class='rubyid_katello_url identifier id'>katello_url</span><span class='rparen token'>)</span>
592
- <span class='rubyid_katello_url identifier id'>katello_url</span> <span class='assign token'>=</span> <span class='rubyid_katello_url identifier id'>katello_url</span><span class='dot token'>.</span><span class='rubyid_sub identifier id'>sub</span><span class='lparen token'>(</span><span class='regexp val'>/\.json\Z/</span><span class='comma token'>,</span><span class='string val'>&quot;&quot;</span><span class='rparen token'>)</span>
593
- <span class='rubyid_katello_url identifier id'>katello_url</span> <span class='lshft op'>&lt;&lt;</span> <span class='dstring node'>&quot;/#{KatelloApi::Base::API_VERSION}.json&quot;</span>
594
- <span class='rubyid_uri identifier id'>uri</span> <span class='assign token'>=</span> <span class='rubyid_URI constant id'>URI</span><span class='lparen token'>(</span><span class='rubyid_katello_url identifier id'>katello_url</span><span class='rparen token'>)</span>
595
- <span class='rubyid_http identifier id'>http</span> <span class='assign token'>=</span> <span class='rubyid_Net constant id'>Net</span><span class='colon2 op'>::</span><span class='rubyid_HTTP constant id'>HTTP</span><span class='dot token'>.</span><span class='rubyid_new identifier id'>new</span><span class='lparen token'>(</span><span class='rubyid_uri identifier id'>uri</span><span class='dot token'>.</span><span class='rubyid_host identifier id'>host</span><span class='comma token'>,</span> <span class='rubyid_uri identifier id'>uri</span><span class='dot token'>.</span><span class='rubyid_port identifier id'>port</span><span class='rparen token'>)</span>
596
- <span class='rubyid_if if kw'>if</span> <span class='rubyid_uri identifier id'>uri</span><span class='dot token'>.</span><span class='rubyid_scheme identifier id'>scheme</span> <span class='eq op'>==</span> <span class='string val'>&quot;https&quot;</span>
597
- <span class='rubyid_http identifier id'>http</span><span class='dot token'>.</span><span class='rubyid_use_ssl identifier id'>use_ssl</span> <span class='assign token'>=</span> <span class='rubyid_true true kw'>true</span>
598
- <span class='rubyid_http identifier id'>http</span><span class='dot token'>.</span><span class='rubyid_verify_mode identifier id'>verify_mode</span> <span class='assign token'>=</span> <span class='rubyid_OpenSSL constant id'>OpenSSL</span><span class='colon2 op'>::</span><span class='rubyid_SSL constant id'>SSL</span><span class='colon2 op'>::</span><span class='rubyid_VERIFY_NONE constant id'>VERIFY_NONE</span>
599
- <span class='rubyid_end end kw'>end</span>
600
- <span class='rubyid_response identifier id'>response</span> <span class='assign token'>=</span> <span class='rubyid_http identifier id'>http</span><span class='dot token'>.</span><span class='rubyid_get identifier id'>get</span><span class='lparen token'>(</span><span class='rubyid_uri identifier id'>uri</span><span class='dot token'>.</span><span class='rubyid_path identifier id'>path</span><span class='rparen token'>)</span>
601
-
602
- <span class='rubyid_unless unless kw'>unless</span> <span class='rubyid_response identifier id'>response</span><span class='dot token'>.</span><span class='rubyid_code identifier id'>code</span> <span class='eq op'>==</span> <span class='string val'>&quot;200&quot;</span>
603
- <span class='rubyid_raise identifier id'>raise</span> <span class='dstring node'>&quot;Could not load data from #{katello_url}&quot;</span>
604
- <span class='rubyid_end end kw'>end</span>
605
- <span class='rubyid_body identifier id'>body</span> <span class='assign token'>=</span> <span class='rubyid_response identifier id'>response</span><span class='dot token'>.</span><span class='rubyid_body identifier id'>body</span>
606
- <span class='rubyid_File constant id'>File</span><span class='dot token'>.</span><span class='rubyid_open identifier id'>open</span><span class='lparen token'>(</span><span class='rubyid_KatelloApi constant id'>KatelloApi</span><span class='dot token'>.</span><span class='rubyid_doc_file identifier id'>doc_file</span><span class='comma token'>,</span> <span class='string val'>&quot;w&quot;</span><span class='rparen token'>)</span> <span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='rubyid_f identifier id'>f</span><span class='bitor op'>|</span> <span class='rubyid_f identifier id'>f</span><span class='dot token'>.</span><span class='rubyid_write identifier id'>write</span><span class='lparen token'>(</span><span class='rubyid_body identifier id'>body</span><span class='rparen token'>)</span> <span class='rbrace token'>}</span>
607
- <span class='rubyid_doc identifier id'>doc</span> <span class='assign token'>=</span> <span class='rubyid_JSON constant id'>JSON</span><span class='dot token'>.</span><span class='rubyid_load identifier id'>load</span><span class='lparen token'>(</span><span class='rubyid_body identifier id'>body</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_with_indifferent_access identifier id'>with_indifferent_access</span>
608
- <span class='rubyid_destination identifier id'>destination</span> <span class='assign token'>=</span> <span class='rubyid_File constant id'>File</span><span class='dot token'>.</span><span class='rubyid_expand_path identifier id'>expand_path</span><span class='lparen token'>(</span><span class='string val'>&quot;../../../..&quot;</span><span class='comma token'>,</span> <span class='rubyid___FILE__ __file__ kw'>__FILE__</span><span class='rparen token'>)</span>
609
- <span class='rubyid_super super kw'>super</span><span class='lparen token'>(</span><span class='lbrack token'>[</span><span class='rubyid_doc identifier id'>doc</span><span class='lbrack token'>[</span><span class='symbol val'>:docs</span><span class='rbrack token'>]</span><span class='rbrack token'>]</span><span class='comma token'>,</span> <span class='symbol val'>:destination_root</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='rubyid_destination identifier id'>destination</span><span class='rparen token'>)</span>
610
- <span class='rubyid_end end kw'>end</span>
611
- </pre>
578
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_start'>start</span><span class='lparen'>(</span><span class='id identifier rubyid_katello_url'>katello_url</span><span class='comma'>,</span> <span class='id identifier rubyid_api_version'>api_version</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
579
+ <span class='id identifier rubyid_katello_url'>katello_url</span> <span class='op'>=</span> <span class='id identifier rubyid_katello_url'>katello_url</span><span class='period'>.</span><span class='id identifier rubyid_sub'>sub</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>\.json\Z</span><span class='regexp_end'>/</span></span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
580
+ <span class='id identifier rubyid_katello_url'>katello_url</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='lparen'>(</span><span class='id identifier rubyid_api_version'>api_version</span> <span class='op'>||</span> <span class='const'>KatelloApi</span><span class='op'>::</span><span class='const'>Base</span><span class='op'>::</span><span class='const'>API_VERSION</span><span class='rparen'>)</span><span class='rbrace'>}</span><span class='tstring_content'>.json</span><span class='tstring_end'>&quot;</span></span>
581
+ <span class='id identifier rubyid_uri'>uri</span> <span class='op'>=</span> <span class='const'>URI</span><span class='lparen'>(</span><span class='id identifier rubyid_katello_url'>katello_url</span><span class='rparen'>)</span>
582
+ <span class='id identifier rubyid_http'>http</span> <span class='op'>=</span> <span class='const'>Net</span><span class='op'>::</span><span class='const'>HTTP</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_host'>host</span><span class='comma'>,</span> <span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_port'>port</span><span class='rparen'>)</span>
583
+ <span class='kw'>if</span> <span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_scheme'>scheme</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>https</span><span class='tstring_end'>&quot;</span></span>
584
+ <span class='id identifier rubyid_http'>http</span><span class='period'>.</span><span class='id identifier rubyid_use_ssl'>use_ssl</span> <span class='op'>=</span> <span class='kw'>true</span>
585
+ <span class='id identifier rubyid_http'>http</span><span class='period'>.</span><span class='id identifier rubyid_verify_mode'>verify_mode</span> <span class='op'>=</span> <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>SSL</span><span class='op'>::</span><span class='const'>VERIFY_NONE</span>
586
+ <span class='kw'>end</span>
587
+ <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='id identifier rubyid_http'>http</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
588
+
589
+ <span class='kw'>unless</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_code'>code</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>200</span><span class='tstring_end'>&quot;</span></span>
590
+ <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Could not load data from </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_katello_url'>katello_url</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
591
+ <span class='kw'>end</span>
592
+ <span class='id identifier rubyid_body'>body</span> <span class='op'>=</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span>
593
+ <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_open'>open</span><span class='lparen'>(</span><span class='const'>KatelloApi</span><span class='period'>.</span><span class='id identifier rubyid_doc_file'>doc_file</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>w</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_f'>f</span><span class='op'>|</span> <span class='id identifier rubyid_f'>f</span><span class='period'>.</span><span class='id identifier rubyid_write'>write</span><span class='lparen'>(</span><span class='id identifier rubyid_body'>body</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
594
+ <span class='id identifier rubyid_doc'>doc</span> <span class='op'>=</span> <span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span><span class='lparen'>(</span><span class='id identifier rubyid_body'>body</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_with_indifferent_access'>with_indifferent_access</span>
595
+ <span class='id identifier rubyid_destination'>destination</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_expand_path'>expand_path</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>../../../..</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='kw'>__FILE__</span><span class='rparen'>)</span>
596
+ <span class='kw'>super</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='id identifier rubyid_doc'>doc</span><span class='lbracket'>[</span><span class='symbol'>:docs</span><span class='rbracket'>]</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='symbol'>:destination_root</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_destination'>destination</span><span class='rparen'>)</span>
597
+ <span class='kw'>end</span></pre>
612
598
  </td>
613
599
  </tr>
614
600
  </table>
@@ -645,13 +631,12 @@ Returns the value of attribute resource_key
645
631
  <td>
646
632
  <pre class="code"><span class="info file"># File 'lib/katello_api/generator/base.rb', line 55</span>
647
633
 
648
- <span class='rubyid_def def kw'>def</span> <span class='rubyid_generate identifier id'>generate</span>
649
- <span class='rubyid_doc identifier id'>doc</span><span class='lbrack token'>[</span><span class='symbol val'>:resources</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_each identifier id'>each</span> <span class='rubyid_do do kw'>do</span> <span class='bitor op'>|</span><span class='rubyid_key identifier id'>key</span><span class='comma token'>,</span> <span class='rubyid_resource identifier id'>resource</span><span class='bitor op'>|</span>
650
- <span class='rubyid_@resource_key ivar id'>@resource_key</span><span class='comma token'>,</span> <span class='rubyid_@resource ivar id'>@resource</span> <span class='assign token'>=</span> <span class='rubyid_key identifier id'>key</span><span class='comma token'>,</span> <span class='rubyid_resource identifier id'>resource</span>
651
- <span class='rubyid_template identifier id'>template</span><span class='lparen token'>(</span><span class='string val'>&quot;resource.rb.tt&quot;</span><span class='comma token'>,</span> <span class='dstring node'>&quot;lib/katello_api/resources/#{resource_name}.rb&quot;</span><span class='rparen token'>)</span>
652
- <span class='rubyid_end end kw'>end</span>
653
- <span class='rubyid_end end kw'>end</span>
654
- </pre>
634
+ <span class='kw'>def</span> <span class='id identifier rubyid_generate'>generate</span>
635
+ <span class='id identifier rubyid_doc'>doc</span><span class='lbracket'>[</span><span class='symbol'>:resources</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_resource'>resource</span><span class='op'>|</span>
636
+ <span class='ivar'>@resource_key</span><span class='comma'>,</span> <span class='ivar'>@resource</span> <span class='op'>=</span> <span class='id identifier rubyid_key'>key</span><span class='comma'>,</span> <span class='id identifier rubyid_resource'>resource</span>
637
+ <span class='id identifier rubyid_template'>template</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>resource.rb.tt</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>lib/katello_api/resources/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_resource_name'>resource_name</span><span class='rbrace'>}</span><span class='tstring_content'>.rb</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
638
+ <span class='kw'>end</span>
639
+ <span class='kw'>end</span></pre>
655
640
  </td>
656
641
  </tr>
657
642
  </table>
@@ -662,9 +647,9 @@ Returns the value of attribute resource_key
662
647
  </div>
663
648
 
664
649
  <div id="footer">
665
- Generated on Mon Mar 18 14:17:41 2013 by
650
+ Generated on Wed Jan 15 20:45:13 2014 by
666
651
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
667
- 0.8.5.2 (ruby-1.8.7).
652
+ 0.8.7.3 (ruby-1.9.3).
668
653
  </div>
669
654
 
670
655
  </body>
@@ -6,13 +6,13 @@
6
6
  <title>
7
7
  Module: KatelloApi::Generator
8
8
 
9
- &mdash; Documentation by YARD 0.8.5.2
9
+ &mdash; Documentation by YARD 0.8.7.3
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
14
 
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
16
 
17
17
  <script type="text/javascript" charset="utf-8">
18
18
  hasFrames = window.top.frames.main ? true : false;
@@ -106,9 +106,9 @@
106
106
  </div>
107
107
 
108
108
  <div id="footer">
109
- Generated on Mon Mar 18 14:17:40 2013 by
109
+ Generated on Wed Jan 15 20:45:13 2014 by
110
110
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
111
- 0.8.5.2 (ruby-1.8.7).
111
+ 0.8.7.3 (ruby-1.9.3).
112
112
  </div>
113
113
 
114
114
  </body>