katello 2.2.2 → 2.4.0.rc1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of katello might be problematic. Click here for more details.

Files changed (1222) hide show
  1. data/app/assets/javascripts/katello/common/env_select.js +0 -12
  2. data/app/assets/javascripts/katello/common/experimental/katello-globals.module.js +0 -13
  3. data/app/assets/javascripts/katello/common/index.js +0 -17
  4. data/app/assets/javascripts/katello/common/jquery.jeditable.custominputs.js +0 -44
  5. data/app/assets/javascripts/katello/common/katello.common.js +0 -13
  6. data/app/assets/javascripts/katello/common/katello.global.js +0 -13
  7. data/app/assets/javascripts/katello/common/katello.js +2 -70
  8. data/app/assets/javascripts/katello/common/katello_object.js +0 -13
  9. data/app/assets/javascripts/katello/common/menu.js +0 -13
  10. data/app/assets/javascripts/katello/common/vendor.js +0 -13
  11. data/app/assets/javascripts/katello/containers/container.js +0 -13
  12. data/app/assets/javascripts/katello/hosts/activation_key_edit.js +3 -3
  13. data/app/assets/javascripts/katello/hosts/host_and_hostgroup_edit.js +18 -4
  14. data/app/assets/javascripts/katello/html5/index.js +0 -12
  15. data/app/assets/javascripts/katello/organizations/download_certificate.js +0 -13
  16. data/app/assets/javascripts/katello/providers/provider_redhat.js +2 -14
  17. data/app/assets/javascripts/katello/providers/redhat/index.js +0 -13
  18. data/app/assets/javascripts/katello/sync_management/index.js +0 -13
  19. data/app/assets/javascripts/katello/sync_management/sync_management.js +2 -17
  20. data/app/assets/javascripts/katello/widgets/auto_complete.js +0 -12
  21. data/app/assets/javascripts/katello/widgets/env_content_view_selector.js +0 -13
  22. data/app/assets/javascripts/katello/widgets/filtertable/filtertable.js +0 -12
  23. data/app/assets/javascripts/katello/widgets/jquery.jeditable.helpers.js +0 -38
  24. data/app/assets/javascripts/katello/widgets/one_panel.js +0 -13
  25. data/app/assets/javascripts/katello/widgets/path_selector.js +0 -14
  26. data/app/assets/javascripts/katello/widgets/subpanel_new.js +0 -12
  27. data/app/assets/javascripts/katello/widgets/tabs.js +0 -13
  28. data/app/assets/stylesheets/katello/_katello_colors.scss +0 -2
  29. data/app/assets/stylesheets/katello/_katello_mixins.scss +0 -13
  30. data/app/assets/stylesheets/katello/_overrides.scss +0 -12
  31. data/app/assets/stylesheets/katello/contents.scss +0 -1
  32. data/app/assets/stylesheets/katello/katello.scss +0 -71
  33. data/app/controllers/katello/api/api_controller.rb +0 -12
  34. data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +29 -21
  35. data/app/controllers/katello/api/v2/activation_keys_controller.rb +14 -37
  36. data/app/controllers/katello/api/v2/api_controller.rb +12 -14
  37. data/app/controllers/katello/api/v2/capsule_content_controller.rb +0 -12
  38. data/app/controllers/katello/api/v2/capsules_controller.rb +0 -12
  39. data/app/controllers/katello/api/v2/content_uploads_controller.rb +0 -12
  40. data/app/controllers/katello/api/v2/content_view_filter_rules_controller.rb +0 -12
  41. data/app/controllers/katello/api/v2/content_view_filters_controller.rb +28 -76
  42. data/app/controllers/katello/api/v2/content_view_puppet_modules_controller.rb +23 -25
  43. data/app/controllers/katello/api/v2/content_view_versions_controller.rb +19 -25
  44. data/app/controllers/katello/api/v2/content_views_controller.rb +30 -52
  45. data/app/controllers/katello/api/v2/docker_images_controller.rb +0 -13
  46. data/app/controllers/katello/api/v2/docker_tags_controller.rb +0 -13
  47. data/app/controllers/katello/api/v2/environments_controller.rb +0 -21
  48. data/app/controllers/katello/api/v2/errata_controller.rb +18 -15
  49. data/app/controllers/katello/api/v2/gpg_keys_controller.rb +1 -13
  50. data/app/controllers/katello/api/v2/host_collections_controller.rb +14 -55
  51. data/app/controllers/katello/api/v2/organizations_controller.rb +26 -22
  52. data/app/controllers/katello/api/v2/package_groups_controller.rb +21 -13
  53. data/app/controllers/katello/api/v2/packages_controller.rb +19 -15
  54. data/app/controllers/katello/api/v2/ping_controller.rb +0 -12
  55. data/app/controllers/katello/api/v2/products_bulk_actions_controller.rb +0 -12
  56. data/app/controllers/katello/api/v2/products_controller.rb +42 -44
  57. data/app/controllers/katello/api/v2/puppet_modules_controller.rb +0 -19
  58. data/app/controllers/katello/api/v2/repositories_bulk_actions_controller.rb +0 -12
  59. data/app/controllers/katello/api/v2/repositories_controller.rb +73 -48
  60. data/app/controllers/katello/api/v2/repository_sets_controller.rb +7 -17
  61. data/app/controllers/katello/api/v2/root_controller.rb +0 -12
  62. data/app/controllers/katello/api/v2/subscriptions_controller.rb +71 -99
  63. data/app/controllers/katello/api/v2/sync_controller.rb +0 -12
  64. data/app/controllers/katello/api/v2/sync_plans_controller.rb +2 -32
  65. data/app/controllers/katello/api/v2/system_errata_controller.rb +38 -13
  66. data/app/controllers/katello/api/v2/system_packages_controller.rb +1 -13
  67. data/app/controllers/katello/api/v2/systems_bulk_actions_controller.rb +9 -20
  68. data/app/controllers/katello/api/v2/systems_controller.rb +63 -54
  69. data/app/controllers/katello/api/v2/uebercerts_controller.rb +0 -12
  70. data/app/controllers/katello/application_controller.rb +2 -42
  71. data/app/controllers/katello/auto_complete_search_controller.rb +0 -12
  72. data/app/controllers/katello/concerns/api/api_controller.rb +0 -12
  73. data/app/controllers/katello/concerns/api/v2/bulk_systems_extensions.rb +10 -16
  74. data/app/controllers/katello/concerns/api/v2/hostgroups_controller_extensions.rb +0 -12
  75. data/app/controllers/katello/concerns/api/v2/hosts_controller_extensions.rb +0 -12
  76. data/app/controllers/katello/concerns/api/v2/repository_content_controller.rb +100 -72
  77. data/app/controllers/katello/concerns/authorization/api/v2/content_views_controller.rb +0 -12
  78. data/app/controllers/katello/concerns/containers/steps_controller_extensions.rb +0 -12
  79. data/app/controllers/katello/concerns/filtered_auto_complete_search.rb +4 -14
  80. data/app/controllers/katello/concerns/hosts_controller_extensions.rb +0 -12
  81. data/app/controllers/katello/concerns/operatingsystems_controller_extensions.rb +0 -12
  82. data/app/controllers/katello/concerns/organizations_controller_extensions.rb +0 -12
  83. data/app/controllers/katello/errata_controller.rb +0 -12
  84. data/app/controllers/katello/errors_controller.rb +0 -12
  85. data/app/controllers/katello/failed_authentication_controller.rb +0 -14
  86. data/app/controllers/katello/http_errors.rb +0 -12
  87. data/app/controllers/katello/organizations_controller.rb +0 -13
  88. data/app/controllers/katello/products_controller.rb +37 -43
  89. data/app/controllers/katello/providers_controller.rb +1 -14
  90. data/app/controllers/katello/sort_column_list.rb +0 -12
  91. data/app/controllers/katello/sync_management_controller.rb +1 -74
  92. data/app/helpers/katello/activation_keys_helper.rb +0 -12
  93. data/app/helpers/katello/application_helper.rb +1 -34
  94. data/app/helpers/katello/concerns/foreman_docker/container_steps_helper_extensions.rb +0 -12
  95. data/app/helpers/katello/errata_mailer_helper.rb +6 -12
  96. data/app/helpers/katello/host_collection_events_helper.rb +0 -12
  97. data/app/helpers/katello/hosts_and_hostgroups_helper.rb +0 -12
  98. data/app/helpers/katello/katello_form_builder.rb +0 -12
  99. data/app/helpers/katello/katello_url_helper.rb +0 -12
  100. data/app/helpers/katello/katello_urls_helper.rb +1 -13
  101. data/app/helpers/katello/layout_helper.rb +6 -12
  102. data/app/helpers/katello/organizations_helper.rb +0 -12
  103. data/app/helpers/katello/packages_helper.rb +0 -12
  104. data/app/helpers/katello/products_helper.rb +0 -12
  105. data/app/helpers/katello/providers_helper.rb +2 -14
  106. data/app/helpers/katello/repositories_helper.rb +0 -12
  107. data/app/helpers/katello/subscriptions_helper.rb +0 -12
  108. data/app/helpers/katello/sync_management_helper.rb +0 -12
  109. data/app/helpers/katello/system_events_helper.rb +0 -12
  110. data/app/helpers/katello/system_packages_helper.rb +0 -12
  111. data/app/helpers/katello/taxonomy_helper.rb +0 -12
  112. data/app/helpers/katello/translation_helper.rb +0 -12
  113. data/app/lib/actions/abstract_async_task.rb +0 -12
  114. data/app/lib/actions/candlepin/abstract.rb +2 -13
  115. data/app/lib/actions/candlepin/abstract_async_task.rb +15 -12
  116. data/app/lib/actions/candlepin/activation_key/create.rb +0 -12
  117. data/app/lib/actions/candlepin/activation_key/destroy.rb +0 -12
  118. data/app/lib/actions/candlepin/activation_key/update.rb +0 -12
  119. data/app/lib/actions/candlepin/candlepin_listening_service.rb +12 -24
  120. data/app/lib/actions/candlepin/consumer/auto_attach_subscriptions.rb +0 -12
  121. data/app/lib/actions/candlepin/consumer/create.rb +3 -13
  122. data/app/lib/actions/candlepin/consumer/destroy.rb +0 -12
  123. data/app/lib/actions/candlepin/consumer/update.rb +0 -12
  124. data/app/lib/actions/candlepin/environment/create.rb +0 -12
  125. data/app/lib/actions/candlepin/environment/destroy.rb +0 -12
  126. data/app/lib/actions/candlepin/environment/set_content.rb +27 -29
  127. data/app/lib/actions/candlepin/import_pool_handler.rb +82 -0
  128. data/app/lib/actions/candlepin/listen_on_candlepin_events.rb +43 -33
  129. data/app/lib/actions/candlepin/owner/auto_attach.rb +0 -12
  130. data/app/lib/actions/candlepin/owner/create.rb +0 -12
  131. data/app/lib/actions/candlepin/owner/destroy.rb +0 -12
  132. data/app/lib/actions/candlepin/product/content_add.rb +0 -12
  133. data/app/lib/actions/candlepin/product/content_create.rb +0 -12
  134. data/app/lib/actions/candlepin/product/content_destroy.rb +0 -12
  135. data/app/lib/actions/candlepin/product/content_remove.rb +0 -12
  136. data/app/lib/actions/candlepin/product/content_update.rb +0 -12
  137. data/app/lib/actions/candlepin/product/create.rb +0 -12
  138. data/app/lib/actions/candlepin/product/create_unlimited_subscription.rb +0 -12
  139. data/app/lib/actions/candlepin/product/delete_pools.rb +0 -12
  140. data/app/lib/actions/candlepin/product/delete_subscriptions.rb +0 -12
  141. data/app/lib/actions/candlepin/product/destroy.rb +0 -12
  142. data/app/lib/actions/candlepin/product/update.rb +0 -13
  143. data/app/lib/actions/elastic_search/abstract.rb +1 -12
  144. data/app/lib/actions/elastic_search/provider/reindex_subscriptions.rb +0 -12
  145. data/app/lib/actions/elastic_search/reindex.rb +0 -12
  146. data/app/lib/actions/elastic_search/reindex_on_association_change.rb +0 -12
  147. data/app/lib/actions/elastic_search/repository/filtered_index_content.rb +2 -14
  148. data/app/lib/actions/elastic_search/repository/index_content.rb +0 -12
  149. data/app/lib/actions/elastic_search/repository/remove_packages.rb +0 -12
  150. data/app/lib/actions/foreman/environment/destroy.rb +0 -12
  151. data/app/lib/actions/helpers/presenter.rb +0 -12
  152. data/app/lib/actions/katello/activation_key/create.rb +1 -16
  153. data/app/lib/actions/katello/activation_key/destroy.rb +0 -13
  154. data/app/lib/actions/katello/activation_key/reassign.rb +0 -13
  155. data/app/lib/actions/katello/activation_key/update.rb +0 -13
  156. data/app/lib/actions/katello/capsule_content/configure_capsule.rb +0 -12
  157. data/app/lib/actions/katello/capsule_content/manage_bound_repositories.rb +0 -12
  158. data/app/lib/actions/katello/capsule_content/sync.rb +0 -12
  159. data/app/lib/actions/katello/capsule_content/update_without_content.rb +0 -12
  160. data/app/lib/actions/katello/content_view/add_to_environment.rb +0 -12
  161. data/app/lib/actions/katello/content_view/capsule_generate_and_sync.rb +0 -12
  162. data/app/lib/actions/katello/content_view/create.rb +0 -14
  163. data/app/lib/actions/katello/content_view/destroy.rb +0 -13
  164. data/app/lib/actions/katello/content_view/environment_create.rb +1 -13
  165. data/app/lib/actions/katello/content_view/errata_mail.rb +6 -12
  166. data/app/lib/actions/katello/content_view/incremental_updates.rb +0 -12
  167. data/app/lib/actions/katello/content_view/node_metadata_generate.rb +0 -12
  168. data/app/lib/actions/katello/content_view/presenters/incremental_updates_presenter.rb +2 -14
  169. data/app/lib/actions/katello/content_view/promote.rb +0 -12
  170. data/app/lib/actions/katello/content_view/publish.rb +3 -13
  171. data/app/lib/actions/katello/content_view/remove.rb +3 -17
  172. data/app/lib/actions/katello/content_view/remove_from_environment.rb +0 -12
  173. data/app/lib/actions/katello/content_view/remove_version.rb +1 -14
  174. data/app/lib/actions/katello/content_view/update.rb +0 -32
  175. data/app/lib/actions/katello/content_view/update_environment.rb +0 -12
  176. data/app/lib/actions/katello/content_view_environment/destroy.rb +0 -12
  177. data/app/lib/actions/katello/content_view_environment/reassign_objects.rb +0 -12
  178. data/app/lib/actions/katello/content_view_puppet_environment/clear.rb +0 -12
  179. data/app/lib/actions/katello/content_view_puppet_environment/clone.rb +2 -13
  180. data/app/lib/actions/katello/content_view_puppet_environment/clone_content.rb +9 -17
  181. data/app/lib/actions/katello/content_view_puppet_environment/create.rb +0 -14
  182. data/app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb +0 -12
  183. data/app/lib/actions/katello/content_view_puppet_environment/destroy.rb +0 -13
  184. data/app/lib/actions/katello/content_view_puppet_module/destroy.rb +0 -12
  185. data/app/lib/actions/katello/content_view_version/destroy.rb +7 -15
  186. data/app/lib/actions/katello/content_view_version/incremental_update.rb +3 -15
  187. data/app/lib/actions/katello/environment/destroy.rb +0 -12
  188. data/app/lib/actions/katello/environment/library_create.rb +0 -12
  189. data/app/lib/actions/katello/foreman/abstract.rb +0 -12
  190. data/app/lib/actions/katello/foreman/content_update.rb +10 -21
  191. data/app/lib/actions/katello/organization/auto_attach_subscriptions.rb +0 -12
  192. data/app/lib/actions/katello/organization/create.rb +1 -13
  193. data/app/lib/actions/katello/organization/destroy.rb +1 -14
  194. data/app/lib/actions/katello/product/content_create.rb +0 -12
  195. data/app/lib/actions/katello/product/content_destroy.rb +0 -12
  196. data/app/lib/actions/katello/product/create.rb +0 -14
  197. data/app/lib/actions/katello/product/destroy.rb +5 -23
  198. data/app/lib/actions/katello/product/repositories_gpg_reset.rb +0 -12
  199. data/app/lib/actions/katello/product/update.rb +2 -16
  200. data/app/lib/actions/katello/provider/destroy.rb +0 -13
  201. data/app/lib/actions/katello/provider/manifest_delete.rb +0 -12
  202. data/app/lib/actions/katello/provider/manifest_import.rb +0 -12
  203. data/app/lib/actions/katello/provider/manifest_refresh.rb +0 -12
  204. data/app/lib/actions/katello/provider/update.rb +38 -0
  205. data/app/lib/actions/katello/repository/capsule_generate_and_sync.rb +0 -12
  206. data/app/lib/actions/katello/repository/clear.rb +0 -12
  207. data/app/lib/actions/katello/repository/clone_docker_content.rb +0 -12
  208. data/app/lib/actions/katello/repository/clone_to_environment.rb +0 -12
  209. data/app/lib/actions/katello/repository/clone_to_version.rb +0 -12
  210. data/app/lib/actions/katello/repository/clone_yum_content.rb +1 -12
  211. data/app/lib/actions/katello/repository/correct_checksum.rb +0 -12
  212. data/app/lib/actions/katello/repository/create.rb +0 -14
  213. data/app/lib/actions/katello/repository/destroy.rb +9 -14
  214. data/app/lib/actions/katello/repository/destroy_medium.rb +12 -0
  215. data/app/lib/actions/katello/repository/discover.rb +25 -24
  216. data/app/lib/actions/katello/repository/errata_mail.rb +6 -12
  217. data/app/lib/actions/katello/repository/finish_upload.rb +0 -12
  218. data/app/lib/actions/katello/repository/import_upload.rb +0 -12
  219. data/app/lib/actions/katello/repository/index_errata.rb +0 -12
  220. data/app/lib/actions/katello/repository/index_package_groups.rb +18 -0
  221. data/app/lib/actions/katello/repository/metadata_generate.rb +0 -12
  222. data/app/lib/actions/katello/repository/node_metadata_generate.rb +0 -12
  223. data/app/lib/actions/katello/repository/remove_content.rb +14 -25
  224. data/app/lib/actions/katello/repository/sync.rb +6 -17
  225. data/app/lib/actions/katello/repository/update.rb +3 -18
  226. data/app/lib/actions/katello/repository/update_media.rb +0 -12
  227. data/app/lib/actions/katello/repository/upload_files.rb +0 -12
  228. data/app/lib/actions/katello/repository_set/disable_repository.rb +16 -19
  229. data/app/lib/actions/katello/repository_set/enable_repository.rb +14 -20
  230. data/app/lib/actions/katello/repository_set/scan_cdn.rb +43 -20
  231. data/app/lib/actions/katello/sync_plan/add_products.rb +0 -12
  232. data/app/lib/actions/katello/sync_plan/destroy.rb +0 -12
  233. data/app/lib/actions/katello/sync_plan/remove_products.rb +0 -12
  234. data/app/lib/actions/katello/sync_plan/update.rb +0 -12
  235. data/app/lib/actions/katello/system/activation_keys.rb +0 -12
  236. data/app/lib/actions/katello/system/auto_attach_subscriptions.rb +2 -14
  237. data/app/lib/actions/katello/system/create.rb +2 -13
  238. data/app/lib/actions/katello/system/destroy.rb +0 -12
  239. data/app/lib/actions/katello/system/erratum/applicable_errata_install.rb +0 -12
  240. data/app/lib/actions/katello/system/erratum/install.rb +0 -12
  241. data/app/lib/actions/katello/system/generate_applicability.rb +1 -13
  242. data/app/lib/actions/katello/system/host_destroy.rb +0 -12
  243. data/app/lib/actions/katello/system/package/install.rb +0 -12
  244. data/app/lib/actions/katello/system/package/remove.rb +0 -12
  245. data/app/lib/actions/katello/system/package/update.rb +0 -12
  246. data/app/lib/actions/katello/system/package_group/install.rb +0 -12
  247. data/app/lib/actions/katello/system/package_group/remove.rb +0 -12
  248. data/app/lib/actions/katello/system/reassign.rb +0 -12
  249. data/app/lib/actions/katello/system/update.rb +4 -16
  250. data/app/lib/actions/middleware/backend_services_check.rb +40 -0
  251. data/app/lib/actions/middleware/candlepin_services_check.rb +9 -0
  252. data/app/lib/actions/middleware/elasticsearch_services_check.rb +9 -0
  253. data/app/lib/actions/middleware/keep_locale.rb +0 -12
  254. data/app/lib/actions/middleware/propagate_candlepin_errors.rb +0 -12
  255. data/app/lib/actions/middleware/pulp_services_check.rb +9 -0
  256. data/app/lib/actions/middleware/record_fixtures.rb +0 -12
  257. data/app/lib/actions/middleware/remote_action.rb +3 -15
  258. data/app/lib/actions/pulp/abstract.rb +1 -12
  259. data/app/lib/actions/pulp/abstract_async_task.rb +19 -12
  260. data/app/lib/actions/pulp/consumer.rb +0 -12
  261. data/app/lib/actions/pulp/consumer/abstract_content_action.rb +0 -12
  262. data/app/lib/actions/pulp/consumer/abstract_node_distributor_task.rb +0 -12
  263. data/app/lib/actions/pulp/consumer/abstract_sync_node_task.rb +0 -12
  264. data/app/lib/actions/pulp/consumer/activate_node.rb +0 -12
  265. data/app/lib/actions/pulp/consumer/bind_node_distributor.rb +0 -12
  266. data/app/lib/actions/pulp/consumer/content_install.rb +0 -12
  267. data/app/lib/actions/pulp/consumer/content_uninstall.rb +0 -12
  268. data/app/lib/actions/pulp/consumer/content_update.rb +0 -12
  269. data/app/lib/actions/pulp/consumer/create.rb +0 -12
  270. data/app/lib/actions/pulp/consumer/deactivate_node.rb +0 -12
  271. data/app/lib/actions/pulp/consumer/destroy.rb +0 -12
  272. data/app/lib/actions/pulp/consumer/generate_applicability.rb +0 -12
  273. data/app/lib/actions/pulp/consumer/sync_node.rb +0 -12
  274. data/app/lib/actions/pulp/consumer/unbind_node_distributor.rb +0 -12
  275. data/app/lib/actions/pulp/consumer/update.rb +0 -12
  276. data/app/lib/actions/pulp/content_view_puppet_environment/index_content.rb +17 -0
  277. data/app/lib/actions/pulp/expect_one_task.rb +0 -12
  278. data/app/lib/actions/pulp/repos/update.rb +0 -13
  279. data/app/lib/actions/pulp/repository/abstract_copy_content.rb +0 -12
  280. data/app/lib/actions/pulp/repository/abstract_remove_content.rb +0 -12
  281. data/app/lib/actions/pulp/repository/associate_distributor.rb +0 -12
  282. data/app/lib/actions/pulp/repository/copy_distribution.rb +0 -12
  283. data/app/lib/actions/pulp/repository/copy_docker_image.rb +0 -12
  284. data/app/lib/actions/pulp/repository/copy_docker_tag.rb +0 -13
  285. data/app/lib/actions/pulp/repository/copy_errata.rb +0 -12
  286. data/app/lib/actions/pulp/repository/copy_package_group.rb +0 -12
  287. data/app/lib/actions/pulp/repository/copy_puppet_module.rb +0 -12
  288. data/app/lib/actions/pulp/repository/copy_rpm.rb +1 -13
  289. data/app/lib/actions/pulp/repository/copy_yum_metadata_file.rb +0 -12
  290. data/app/lib/actions/pulp/repository/create.rb +0 -12
  291. data/app/lib/actions/pulp/repository/create_in_plan.rb +0 -12
  292. data/app/lib/actions/pulp/repository/create_upload_request.rb +0 -12
  293. data/app/lib/actions/pulp/repository/delete_upload_request.rb +0 -12
  294. data/app/lib/actions/pulp/repository/destroy.rb +0 -12
  295. data/app/lib/actions/pulp/repository/distributor_publish.rb +0 -12
  296. data/app/lib/actions/pulp/repository/import_upload.rb +0 -12
  297. data/app/lib/actions/pulp/repository/presenters/abstract_sync_presenter.rb +0 -12
  298. data/app/lib/actions/pulp/repository/presenters/docker_presenter.rb +1 -13
  299. data/app/lib/actions/pulp/repository/presenters/iso_presenter.rb +0 -12
  300. data/app/lib/actions/pulp/repository/presenters/puppet_presenter.rb +6 -15
  301. data/app/lib/actions/pulp/repository/presenters/yum_presenter.rb +1 -13
  302. data/app/lib/actions/pulp/repository/purge_empty_errata.rb +0 -12
  303. data/app/lib/actions/pulp/repository/purge_empty_package_groups.rb +3 -16
  304. data/app/lib/actions/pulp/repository/refresh.rb +0 -12
  305. data/app/lib/actions/pulp/repository/refresh_distributor.rb +0 -12
  306. data/app/lib/actions/pulp/repository/regenerate_applicability.rb +0 -12
  307. data/app/lib/actions/pulp/repository/remove_distribution.rb +0 -12
  308. data/app/lib/actions/pulp/repository/remove_docker_image.rb +0 -12
  309. data/app/lib/actions/pulp/repository/remove_errata.rb +0 -12
  310. data/app/lib/actions/pulp/repository/remove_package_group.rb +0 -12
  311. data/app/lib/actions/pulp/repository/remove_puppet_module.rb +0 -12
  312. data/app/lib/actions/pulp/repository/remove_rpm.rb +1 -13
  313. data/app/lib/actions/pulp/repository/remove_schedule.rb +0 -11
  314. data/app/lib/actions/pulp/repository/sync.rb +5 -17
  315. data/app/lib/actions/pulp/repository/update_importer.rb +0 -12
  316. data/app/lib/actions/pulp/repository/update_schedule.rb +0 -11
  317. data/app/lib/actions/pulp/repository/upload_file.rb +1 -13
  318. data/app/lib/katello/api/constraints/activation_key_constraint.rb +0 -12
  319. data/app/lib/katello/api/v2/error_handling.rb +5 -12
  320. data/app/lib/katello/bulk_actions.rb +2 -16
  321. data/app/lib/katello/concerns/renderer_extensions.rb +21 -0
  322. data/app/lib/katello/errors.rb +5 -13
  323. data/app/lib/katello/foreman.rb +0 -12
  324. data/app/lib/katello/glue/queue.rb +0 -12
  325. data/app/lib/katello/glue/task.rb +0 -12
  326. data/app/lib/katello/http_resource.rb +2 -14
  327. data/app/lib/katello/lazy_accessor.rb +2 -14
  328. data/app/lib/katello/mapping.rb +0 -12
  329. data/app/lib/katello/repo_discovery.rb +27 -40
  330. data/app/lib/katello/resources/candlepin.rb +23 -34
  331. data/app/lib/katello/resources/cdn.rb +42 -18
  332. data/app/lib/katello/util/cdn_var_substitutor.rb +21 -16
  333. data/app/lib/katello/util/data.rb +0 -12
  334. data/app/lib/katello/util/errata.rb +0 -12
  335. data/app/lib/katello/util/filter_clause_generator.rb +0 -12
  336. data/app/lib/katello/util/model.rb +0 -12
  337. data/app/lib/katello/util/package.rb +21 -51
  338. data/app/lib/katello/util/package_clause_generator.rb +1 -13
  339. data/app/lib/katello/util/package_filter.rb +16 -62
  340. data/app/lib/katello/util/report_table.rb +0 -12
  341. data/app/lib/katello/util/search.rb +0 -23
  342. data/app/lib/katello/util/support.rb +13 -12
  343. data/app/lib/katello/util/task_status.rb +0 -12
  344. data/app/lib/katello/util/thread_session.rb +10 -22
  345. data/app/lib/katello/util/url_matcher.rb +0 -12
  346. data/app/lib/katello/validators/content_validator.rb +0 -12
  347. data/app/lib/katello/validators/content_view_environment_validator.rb +0 -12
  348. data/app/lib/katello/validators/content_view_erratum_filter_rule_validator.rb +0 -12
  349. data/app/lib/katello/validators/content_view_filter_version_validator.rb +0 -12
  350. data/app/lib/katello/validators/content_view_puppet_module_validator.rb +4 -15
  351. data/app/lib/katello/validators/gpg_key_content_validator.rb +0 -11
  352. data/app/lib/katello/validators/katello_label_format_validator.rb +0 -12
  353. data/app/lib/katello/validators/katello_name_format_validator.rb +0 -11
  354. data/app/lib/katello/validators/katello_url_format_validator.rb +0 -12
  355. data/app/lib/katello/validators/library_presence_validator.rb +0 -12
  356. data/app/lib/katello/validators/no_trailing_space_validator.rb +0 -12
  357. data/app/lib/katello/validators/non_library_environment_validator.rb +0 -12
  358. data/app/lib/katello/validators/not_in_library_validator.rb +0 -12
  359. data/app/lib/katello/validators/path_descendents_validator.rb +0 -12
  360. data/app/lib/katello/validators/prior_validator.rb +0 -12
  361. data/app/lib/katello/validators/product_unique_attribute_validator.rb +1 -15
  362. data/app/lib/katello/validators/repo_disablement_validator.rb +0 -12
  363. data/app/lib/katello/validators/repository_unique_attribute_validator.rb +0 -12
  364. data/app/lib/katello/validators/self_reference_environment_validator.rb +0 -12
  365. data/app/lib/katello/validators/unique_field_in_org.rb +0 -12
  366. data/app/mailers/katello/errata_mailer.rb +0 -12
  367. data/app/models/katello/activation_key.rb +23 -46
  368. data/app/models/katello/authorization/activation_key.rb +0 -13
  369. data/app/models/katello/authorization/content_view.rb +0 -13
  370. data/app/models/katello/authorization/content_view_environment.rb +0 -12
  371. data/app/models/katello/authorization/content_view_history.rb +14 -0
  372. data/app/models/katello/authorization/content_view_version.rb +0 -12
  373. data/app/models/katello/authorization/gpg_key.rb +0 -13
  374. data/app/models/katello/authorization/host_collection.rb +0 -13
  375. data/app/models/katello/authorization/lifecycle_environment.rb +0 -13
  376. data/app/models/katello/authorization/organization.rb +0 -13
  377. data/app/models/katello/authorization/pool.rb +13 -0
  378. data/app/models/katello/authorization/product.rb +0 -13
  379. data/app/models/katello/authorization/repository.rb +8 -16
  380. data/app/models/katello/authorization/subscription.rb +17 -0
  381. data/app/models/katello/authorization/sync_plan.rb +0 -13
  382. data/app/models/katello/authorization/system.rb +0 -13
  383. data/app/models/katello/candlepin/content.rb +28 -46
  384. data/app/models/katello/candlepin/product_content.rb +5 -12
  385. data/app/models/katello/capsule_lifecycle_environment.rb +0 -12
  386. data/app/models/katello/concerns/container_extensions.rb +0 -12
  387. data/app/models/katello/concerns/docker_container_wizard_state_extensions.rb +0 -12
  388. data/app/models/katello/concerns/environment_extensions.rb +7 -13
  389. data/app/models/katello/concerns/host_managed_extensions.rb +17 -11
  390. data/app/models/katello/concerns/hostgroup_extensions.rb +0 -11
  391. data/app/models/katello/concerns/location_extensions.rb +1 -13
  392. data/app/models/katello/concerns/medium_extensions.rb +14 -15
  393. data/app/models/katello/concerns/operatingsystem_extensions.rb +29 -0
  394. data/app/models/katello/concerns/organization_extensions.rb +21 -53
  395. data/app/models/katello/{glue/pulp/pulp_content_unit.rb → concerns/pulp_database_unit.rb} +23 -42
  396. data/app/models/katello/concerns/redhat_extensions.rb +13 -54
  397. data/app/models/katello/concerns/smart_proxy_extensions.rb +1 -13
  398. data/app/models/katello/concerns/user_extensions.rb +2 -190
  399. data/app/models/katello/content_view.rb +51 -81
  400. data/app/models/katello/content_view_component.rb +0 -12
  401. data/app/models/katello/content_view_environment.rb +4 -20
  402. data/app/models/katello/content_view_erratum_filter.rb +0 -14
  403. data/app/models/katello/content_view_erratum_filter_rule.rb +1 -13
  404. data/app/models/katello/content_view_filter.rb +20 -27
  405. data/app/models/katello/content_view_history.rb +42 -14
  406. data/app/models/katello/content_view_package_filter.rb +11 -23
  407. data/app/models/katello/content_view_package_filter_rule.rb +1 -13
  408. data/app/models/katello/content_view_package_group_filter.rb +3 -19
  409. data/app/models/katello/content_view_package_group_filter_rule.rb +1 -13
  410. data/app/models/katello/content_view_puppet_environment.rb +19 -18
  411. data/app/models/katello/content_view_puppet_environment_puppet_module.rb +13 -0
  412. data/app/models/katello/content_view_puppet_module.rb +18 -36
  413. data/app/models/katello/content_view_repository.rb +0 -12
  414. data/app/models/katello/content_view_version.rb +59 -26
  415. data/app/models/katello/content_view_version_component.rb +0 -12
  416. data/app/models/katello/cp_consumer_user.rb +0 -12
  417. data/app/models/katello/docker_image.rb +2 -14
  418. data/app/models/katello/docker_tag.rb +5 -13
  419. data/app/models/katello/erratum.rb +54 -34
  420. data/app/models/katello/erratum_bugzilla.rb +0 -13
  421. data/app/models/katello/erratum_cve.rb +0 -13
  422. data/app/models/katello/erratum_package.rb +0 -13
  423. data/app/models/katello/ext/indexed_model.rb +1 -13
  424. data/app/models/katello/ext/label_from_name.rb +0 -12
  425. data/app/models/katello/glue.rb +1 -13
  426. data/app/models/katello/glue/candlepin/activation_key.rb +20 -18
  427. data/app/models/katello/glue/candlepin/candlepin_object.rb +52 -0
  428. data/app/models/katello/glue/candlepin/consumer.rb +23 -56
  429. data/app/models/katello/glue/candlepin/content.rb +1 -13
  430. data/app/models/katello/glue/candlepin/environment.rb +0 -12
  431. data/app/models/katello/glue/candlepin/owner.rb +3 -23
  432. data/app/models/katello/glue/candlepin/owner_info.rb +0 -12
  433. data/app/models/katello/glue/candlepin/pool.rb +84 -155
  434. data/app/models/katello/glue/candlepin/product.rb +0 -27
  435. data/app/models/katello/glue/candlepin/subscription.rb +58 -0
  436. data/app/models/katello/glue/elastic_search/backend_indexed_model.rb +2 -13
  437. data/app/models/katello/glue/elastic_search/content_view_erratum_filter_rule.rb +0 -12
  438. data/app/models/katello/glue/elastic_search/content_view_history.rb +1 -13
  439. data/app/models/katello/glue/elastic_search/content_view_package_filter_rule.rb +0 -12
  440. data/app/models/katello/glue/elastic_search/content_view_package_group_filter_rule.rb +0 -12
  441. data/app/models/katello/glue/elastic_search/facet_item.rb +0 -12
  442. data/app/models/katello/glue/elastic_search/host_collection.rb +0 -33
  443. data/app/models/katello/glue/elastic_search/items.rb +1 -13
  444. data/app/models/katello/glue/elastic_search/job.rb +0 -12
  445. data/app/models/katello/glue/elastic_search/system.rb +0 -25
  446. data/app/models/katello/glue/elastic_search/task_status.rb +0 -12
  447. data/app/models/katello/glue/provider.rb +31 -122
  448. data/app/models/katello/glue/pulp/consumer.rb +2 -26
  449. data/app/models/katello/glue/pulp/consumer_group.rb +0 -12
  450. data/app/models/katello/glue/pulp/pulp_errors.rb +0 -12
  451. data/app/models/katello/glue/pulp/repo.rb +116 -173
  452. data/app/models/katello/glue/pulp/repos.rb +40 -89
  453. data/app/models/katello/glue/pulp/simple_package.rb +0 -12
  454. data/app/models/katello/gpg_key.rb +1 -13
  455. data/app/models/katello/hash_util.rb +0 -12
  456. data/app/models/katello/host_collection.rb +17 -15
  457. data/app/models/katello/hypervisor.rb +1 -13
  458. data/app/models/katello/job.rb +1 -13
  459. data/app/models/katello/job_task.rb +0 -12
  460. data/app/models/katello/key_host_collection.rb +0 -13
  461. data/app/models/katello/kt_environment.rb +9 -35
  462. data/app/models/katello/model.rb +0 -12
  463. data/app/models/katello/package_group.rb +41 -15
  464. data/app/models/katello/ping.rb +66 -52
  465. data/app/models/katello/pool.rb +44 -31
  466. data/app/models/katello/pool_activation_key.rb +6 -0
  467. data/app/models/katello/product.rb +37 -35
  468. data/app/models/katello/provider.rb +9 -28
  469. data/app/models/katello/proxy_association_owner.rb +0 -12
  470. data/app/models/katello/pulp_sync_status.rb +1 -13
  471. data/app/models/katello/pulp_task_status.rb +1 -13
  472. data/app/models/katello/puppet_module.rb +56 -16
  473. data/app/models/katello/repository.rb +129 -64
  474. data/app/models/katello/repository_docker_image.rb +0 -13
  475. data/app/models/katello/repository_erratum.rb +0 -13
  476. data/app/models/katello/repository_package_group.rb +8 -0
  477. data/app/models/katello/repository_puppet_module.rb +9 -0
  478. data/app/models/katello/repository_rpm.rb +9 -0
  479. data/app/models/katello/rpm.rb +62 -0
  480. data/app/models/katello/subscription.rb +17 -0
  481. data/app/models/katello/subscription_product.rb +7 -0
  482. data/app/models/katello/sync_plan.rb +0 -12
  483. data/app/models/katello/system.rb +55 -36
  484. data/app/models/katello/system_activation_key.rb +0 -12
  485. data/app/models/katello/system_erratum.rb +0 -13
  486. data/app/models/katello/system_host_collection.rb +0 -13
  487. data/app/models/katello/system_repository.rb +0 -13
  488. data/app/models/katello/task_status.rb +1 -13
  489. data/app/models/setting/katello.rb +2 -1
  490. data/app/overrides/add_activation_keys_input.rb +4 -4
  491. data/app/overrides/add_organization_attributes.rb +4 -4
  492. data/app/overrides/add_smart_proxy_form.rb +1 -1
  493. data/app/overrides/foreman/activation_keys/_host_environment_select.html.erb +2 -2
  494. data/app/overrides/foreman/organizations/_edit_override.html.erb +1 -1
  495. data/app/overrides/override_taxonomy_actions.rb +1 -1
  496. data/app/presenters/katello/content_view_version_compare_presenter.rb +0 -12
  497. data/app/presenters/katello/relation_presenter.rb +0 -12
  498. data/app/presenters/katello/repository_presenter.rb +0 -12
  499. data/app/presenters/katello/sync_status_presenter.rb +71 -0
  500. data/app/services/client/cert.rb +0 -12
  501. data/app/services/katello/authentication/client_authentication.rb +1 -13
  502. data/app/services/katello/pulp/docker_image.rb +7 -0
  503. data/app/services/katello/pulp/erratum.rb +11 -0
  504. data/app/services/katello/pulp/package_group.rb +14 -0
  505. data/app/services/katello/pulp/pulp_content_unit.rb +57 -0
  506. data/app/services/katello/pulp/puppet_module.rb +16 -0
  507. data/app/services/katello/pulp/rpm.rb +41 -0
  508. data/app/services/katello/puppet_class_importer_extensions.rb +0 -11
  509. data/app/views/dashboard/_content_views_widget.html.erb +34 -0
  510. data/app/views/dashboard/_errata_widget.html.erb +35 -0
  511. data/app/views/dashboard/_host_collection_widget.html.erb +38 -0
  512. data/app/views/dashboard/_subscription_status_widget.html.erb +32 -0
  513. data/app/views/dashboard/_subscription_widget.html.erb +37 -0
  514. data/app/views/dashboard/_sync_widget.html.erb +32 -0
  515. data/app/views/foreman/unattended/kickstart-katello.erb +1 -1
  516. data/app/views/foreman/unattended/snippets/_subscription_manager_registration.erb +0 -5
  517. data/app/views/katello/api/v2/activation_keys/product_content.json.rabl +12 -2
  518. data/app/views/katello/api/v2/content_view_filters/show.json.rabl +1 -1
  519. data/app/views/katello/api/v2/content_view_histories/show.json.rabl +4 -0
  520. data/app/views/katello/api/v2/content_view_puppet_modules/create.json.rabl +3 -0
  521. data/app/views/katello/api/v2/content_view_puppet_modules/index.json.rabl +5 -1
  522. data/app/views/katello/api/v2/content_view_puppet_modules/show.json.rabl +0 -4
  523. data/app/views/katello/api/v2/content_view_versions/base.json.rabl +4 -0
  524. data/app/views/katello/api/v2/content_view_versions/index.json.rabl +5 -2
  525. data/app/views/katello/api/v2/content_views/_content_view.json.rabl +5 -1
  526. data/app/views/katello/api/v2/content_views/puppet_modules.json.rabl +1 -1
  527. data/app/views/katello/api/v2/environments/show.json.rabl +2 -2
  528. data/app/views/katello/api/v2/layouts/collection.json.erb +1 -0
  529. data/app/views/katello/api/v2/layouts/resource.json.erb +5 -0
  530. data/app/views/katello/api/v2/organizations/show.json.rabl +2 -3
  531. data/app/views/katello/api/v2/package_groups/backend.json.rabl +4 -0
  532. data/app/views/katello/api/v2/package_groups/base.json.rabl +19 -0
  533. data/app/views/katello/api/v2/package_groups/index.json.rabl +1 -1
  534. data/app/views/katello/api/v2/package_groups/show.json.rabl +2 -22
  535. data/app/views/katello/api/v2/packages/backend.json.rabl +8 -0
  536. data/app/views/katello/api/v2/packages/base.json.rabl +5 -0
  537. data/app/views/katello/api/v2/packages/index.json.rabl +5 -1
  538. data/app/views/katello/api/v2/packages/show.json.rabl +2 -5
  539. data/app/views/katello/api/v2/products/base.json.rabl +1 -1
  540. data/app/views/katello/api/v2/puppet_modules/backend.json.rabl +7 -0
  541. data/app/views/katello/api/v2/puppet_modules/base.json.rabl +8 -0
  542. data/app/views/katello/api/v2/puppet_modules/index.json.rabl +5 -1
  543. data/app/views/katello/api/v2/puppet_modules/name.json.rabl +1 -2
  544. data/app/views/katello/api/v2/puppet_modules/show.json.rabl +2 -17
  545. data/app/views/katello/api/v2/repositories/base.json.rabl +34 -0
  546. data/app/views/katello/api/v2/repositories/index.json.rabl +5 -1
  547. data/app/views/katello/api/v2/repositories/show.json.rabl +10 -30
  548. data/app/views/katello/api/v2/subscriptions/base.json.rabl +15 -0
  549. data/app/views/katello/api/v2/subscriptions/index.json.rabl +6 -1
  550. data/app/views/katello/api/v2/subscriptions/show.json.rabl +11 -23
  551. data/app/views/katello/api/v2/{systems/errata.json.rabl → system_errata/index.json.rabl} +1 -1
  552. data/app/views/katello/api/v2/systems/_content.json.rabl +17 -0
  553. data/app/views/katello/api/v2/systems/content_override.json.rabl +3 -0
  554. data/app/views/katello/api/v2/systems/product_content.json.rabl +3 -0
  555. data/app/views/katello/api/v2/systems/show.json.rabl +0 -4
  556. data/app/views/katello/errata_mailer/_erratum.html.erb +10 -0
  557. data/app/views/katello/errata_mailer/sync_errata.html.erb +3 -3
  558. data/app/views/katello/layouts/katello.html.erb +23 -0
  559. data/app/views/katello/providers/redhat/_enable_errors.html.erb +12 -0
  560. data/app/views/katello/providers/redhat/_errors.html.erb +19 -0
  561. data/app/views/katello/providers/redhat/_repo_sets.html.erb +56 -0
  562. data/app/views/katello/providers/redhat/_repos.html.erb +56 -0
  563. data/app/views/katello/providers/redhat/_tab.html.erb +9 -0
  564. data/app/views/katello/providers/redhat/show.html.erb +35 -0
  565. data/app/views/katello/sync_management/_children.html.erb +14 -0
  566. data/app/views/katello/sync_management/_controls.html.erb +30 -0
  567. data/app/views/katello/sync_management/_product.html.erb +27 -0
  568. data/app/views/katello/sync_management/_products.html.erb +40 -0
  569. data/app/views/katello/sync_management/_repo.html.erb +43 -0
  570. data/app/views/katello/sync_management/_sync_plans.html.erb +23 -0
  571. data/app/views/katello/sync_management/index.html.erb +26 -0
  572. data/config/initializers/inflections.rb +0 -1
  573. data/config/initializers/runcible.rb +1 -1
  574. data/config/katello.yaml.example +91 -0
  575. data/config/katello.yml +223 -16
  576. data/config/katello_defaults.yml +0 -236
  577. data/config/routes.rb +1 -129
  578. data/config/routes/api/v2.rb +45 -29
  579. data/config/routes/overrides.rb +1 -13
  580. data/db/migrate/20140626204657_add_unlimited_to_activation_keys.rb +14 -10
  581. data/db/migrate/20140626204902_add_unlimited_to_host_collection.rb +14 -10
  582. data/db/migrate/20141003210742_add_docker_container_registry_url_to_providers.rb +0 -2
  583. data/db/migrate/20141209103005_disown_foreman_templates.rb +5 -1
  584. data/db/migrate/20150224083608_remove_docker_registry_url.rb +9 -0
  585. data/db/migrate/20150423134004_add_content_host_id_to_smart_proxy.rb +0 -15
  586. data/db/migrate/20150505180030_change_errata_timestamps_to_dates.rb +15 -0
  587. data/db/migrate/20150507131145_update_composite_default_for_content_view.rb +14 -0
  588. data/db/migrate/20150602153753_remove_help_tips.rb +16 -0
  589. data/db/migrate/20150602153754_remove_search_histories.rb +17 -0
  590. data/db/migrate/20150602153755_remove_search_favorites.rb +17 -0
  591. data/db/migrate/20150602153756_remove_user_notices.rb +16 -0
  592. data/db/migrate/20150602153757_remove_notices.rb +20 -0
  593. data/db/migrate/20150603045418_remove_user_fields.rb +18 -0
  594. data/db/migrate/20150606021722_create_puppet_modules.rb +58 -0
  595. data/db/migrate/20150611140455_remove_default_and_custom_info.rb +5 -0
  596. data/db/migrate/20150613134559_add_rpm.rb +38 -0
  597. data/db/migrate/20150623135424_create_package_groups.rb +29 -0
  598. data/db/migrate/20150715142649_assign_content_host_to_smart_proxies.rb +21 -0
  599. data/db/migrate/20150717142559_add_distributions_to_repository.rb +10 -0
  600. data/db/migrate/20150813185339_create_subscriptions.rb +82 -0
  601. data/db/migrate/20150901213759_remove_distributors.rb +25 -0
  602. data/db/migrate/20150902164543_remove_apply_info_task_id_from_taxonomies.rb +5 -0
  603. data/db/migrate/20150908222711_drop_marketing_engineering_products.rb +21 -0
  604. data/db/seeds.rb +3 -14
  605. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-key.factory.js +3 -15
  606. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js +5 -18
  607. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.module.js +0 -13
  608. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js +0 -13
  609. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-add-host-collections.controller.js +10 -23
  610. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-add-subscriptions.controller.js +16 -28
  611. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js +0 -13
  612. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-details-info.controller.js +12 -16
  613. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-details.controller.js +1 -14
  614. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-host-collections.controller.js +10 -23
  615. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-product-details.controller.js +14 -19
  616. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-products.controller.js +0 -13
  617. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-subscriptions.controller.js +16 -29
  618. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-add-subscriptions.html +59 -86
  619. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-associations-content-hosts.html +6 -6
  620. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-host-collections-table.html +29 -29
  621. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-info.html +7 -3
  622. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-subscriptions-list.html +55 -79
  623. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/new/new-activation-key.controller.js +13 -26
  624. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/views/activation-keys-table-full.html +1 -1
  625. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion-katello-bootstrap.js +1 -14
  626. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion_katello.js +0 -15
  627. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/capsules/capsule.factory.js +0 -13
  628. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/capsules/capsules.module.js +0 -13
  629. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-environment.controller.js +9 -22
  630. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-errata.controller.js +14 -28
  631. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-host-collections.controller.js +11 -24
  632. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-packages.controller.js +20 -33
  633. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-subscriptions.controller.js +16 -29
  634. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action.controller.js +12 -16
  635. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-environment.html +4 -4
  636. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-errata.html +7 -8
  637. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-host-collections.html +4 -7
  638. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-erratum.factory.js +1 -13
  639. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-events.controller.js +0 -14
  640. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-package.factory.js +0 -13
  641. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-register.controller.js +0 -13
  642. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-status.controller.js +0 -13
  643. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host.factory.js +1 -14
  644. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts-helper.service.js +37 -50
  645. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.controller.js +7 -19
  646. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.module.js +1 -14
  647. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js +24 -27
  648. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages.controller.js +4 -17
  649. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +15 -4
  650. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages.html +49 -47
  651. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-add-host-collections.controller.js +8 -21
  652. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-add-subscriptions.controller.js +22 -26
  653. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-base-subscriptions.controller.js +11 -34
  654. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details-info.controller.js +40 -104
  655. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details.controller.js +1 -14
  656. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-host-collections.controller.js +8 -21
  657. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-product-details.controller.js +14 -19
  658. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-products.controller.js +0 -13
  659. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-subscriptions.controller.js +20 -62
  660. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-add-subscriptions.html +61 -96
  661. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-details.html +8 -3
  662. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-events.html +21 -19
  663. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +3 -33
  664. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-subscriptions-list.html +59 -91
  665. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/host-collections-table.html +44 -42
  666. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts-table-full.html +0 -5
  667. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html +3 -0
  668. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/register.html +1 -1
  669. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-view.factory.js +3 -14
  670. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js +4 -17
  671. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.module.js +0 -13
  672. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.routes.js +0 -13
  673. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-deletion.controller.js +12 -25
  674. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-activation-keys.controller.js +7 -20
  675. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-confirm.controller.js +18 -30
  676. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-content-hosts.controller.js +8 -21
  677. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-environments.controller.js +5 -19
  678. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion.controller.js +9 -25
  679. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-docker-repositories.controller.js +4 -17
  680. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-puppet-modules.controller.js +0 -13
  681. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-repositories.controller.js +4 -17
  682. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-composite-available-content-views.controller.js +9 -21
  683. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-composite-content-views-list.controller.js +0 -13
  684. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-details-history.controller.js +2 -15
  685. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-details.controller.js +77 -88
  686. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-docker-repositories-list.controller.js +3 -13
  687. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-promotion.controller.js +60 -32
  688. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-publish.controller.js +9 -22
  689. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-repositories-list.controller.js +3 -13
  690. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-repositories.service.js +14 -27
  691. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-versions.controller.js +34 -48
  692. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/available-errata-filter.controller.js +24 -35
  693. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/available-package-group-filter.controller.js +29 -35
  694. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/date-type-errata-filter.controller.js +9 -22
  695. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/edit-filter.controller.js +3 -13
  696. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/errata-filter-list.controller.js +34 -47
  697. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/errata-filter.controller.js +0 -13
  698. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-content-type.filter.js +0 -13
  699. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-details.controller.js +0 -13
  700. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js +1 -14
  701. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-repositories.controller.js +2 -15
  702. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-type.filter.js +0 -13
  703. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter.factory.js +3 -15
  704. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filters.controller.js +16 -29
  705. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/new-filter.controller.js +33 -46
  706. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/package-filter.controller.js +61 -74
  707. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/package-group-filter.controller.js +0 -13
  708. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/package-group-list-filter.controller.js +25 -36
  709. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/rule.factory.js +1 -14
  710. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/edit-filter.html +18 -16
  711. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filter-repositories.html +0 -22
  712. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filters.html +6 -7
  713. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/new-filter.html +1 -1
  714. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/package-filter-details.html +4 -4
  715. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/package-filter.html +1 -1
  716. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module-names.controller.js +0 -13
  717. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module-versions.controller.js +2 -15
  718. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module.factory.js +3 -14
  719. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-modules.controller.js +3 -15
  720. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-module-names.html +3 -3
  721. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-modules.html +3 -12
  722. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-composite-content-views-list.html +1 -1
  723. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-details-history.html +2 -0
  724. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-details.html +1 -1
  725. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-docker-repositories.html +46 -50
  726. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-promotion.html +12 -1
  727. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-repositories.html +51 -55
  728. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-versions.html +38 -38
  729. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/new/content-view-new.controller.js +15 -28
  730. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version-content.controller.js +9 -21
  731. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version.controller.js +0 -13
  732. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version.factory.js +1 -13
  733. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-versions.module.js +0 -13
  734. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-details.html +1 -1
  735. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-package-groups.html +8 -4
  736. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-packages.html +8 -4
  737. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/views/content-views-table-full.html +1 -7
  738. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/views/content-views.html +4 -0
  739. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-images/docker-image.factory.js +0 -13
  740. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-images/docker-images.module.js +0 -13
  741. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/details/docker-tags-details.controller.js +7 -21
  742. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js +4 -17
  743. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.factory.js +0 -13
  744. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.module.js +0 -13
  745. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.routes.js +0 -13
  746. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/views/docker-tags.html +4 -0
  747. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/content.service.js +0 -13
  748. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/environment-content.controller.js +8 -21
  749. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/environment.controller.js +2 -14
  750. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-content-views.html +3 -7
  751. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-docker.html +4 -5
  752. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-errata.html +4 -5
  753. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-packages.html +4 -5
  754. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-puppet-modules.html +4 -5
  755. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-repositories.html +4 -5
  756. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environment.factory.js +1 -14
  757. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.controller.js +0 -13
  758. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.module.js +0 -13
  759. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.routes.js +0 -13
  760. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/new-environment.controller.js +12 -25
  761. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/apply-errata.controller.js +17 -28
  762. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/errata-content-hosts.controller.js +5 -16
  763. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/errata-details-repositories.controller.js +1 -14
  764. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/errata-details.controller.js +0 -13
  765. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details-content-hosts.html +7 -8
  766. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details-info.html +3 -1
  767. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details-repositories.html +7 -14
  768. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata-counts.directive.js +0 -13
  769. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata-severity.filter.js +0 -13
  770. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata-type.filter.js +0 -13
  771. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata.controller.js +20 -29
  772. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata.module.js +0 -13
  773. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata.routes.js +3 -16
  774. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js +0 -13
  775. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/apply-errata-confirm.html +8 -4
  776. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/errata.html +13 -2
  777. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/gpg-key-details-info.controller.js +0 -13
  778. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/gpg-key-details.controller.js +0 -13
  779. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/gpg-key.factory.js +0 -13
  780. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/gpg-keys.controller.js +5 -18
  781. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/gpg-keys.module.js +0 -13
  782. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/new/new-gpg-key.controller.js +1 -14
  783. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-add-content-hosts.controller.js +11 -24
  784. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-content-hosts.controller.js +5 -18
  785. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-details.controller.js +1 -14
  786. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-add-content-hosts.html +39 -37
  787. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-content-hosts-list.html +34 -32
  788. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js +2 -14
  789. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js +5 -18
  790. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.module.js +0 -15
  791. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/new/host-collection-form.controller.js +8 -21
  792. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/new/new-host-collection.controller.js +0 -13
  793. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/README +12 -0
  794. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/bastion_katello.pot +4484 -0
  795. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/de.po +5324 -0
  796. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/es.po +5290 -0
  797. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/fr.po +5363 -0
  798. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/it.po +5349 -0
  799. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ja.po +5281 -0
  800. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ko.po +5191 -0
  801. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pt_BR.po +5321 -0
  802. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ru.po +5171 -0
  803. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_CN.po +5103 -0
  804. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_TW.po +5106 -0
  805. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/translations.js +14 -0
  806. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/check-current-organization.run.js +0 -14
  807. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organization-selector.controller.js +0 -14
  808. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organization.factory.js +5 -17
  809. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organizations.module.js +0 -13
  810. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organizations.routes.js +0 -13
  811. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/package-groups/package-group.factory.js +4 -14
  812. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/package-groups/package-groups.module.js +0 -13
  813. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/package-details-repositories.controller.js +59 -0
  814. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/package-details.controller.js +23 -0
  815. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-dependencies.html +19 -0
  816. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-files.html +11 -0
  817. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-info.html +75 -0
  818. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-repositories.html +83 -0
  819. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details.html +57 -0
  820. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js +2 -17
  821. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/packages.controller.js +65 -0
  822. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/packages.module.js +0 -13
  823. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/packages.routes.js +66 -0
  824. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/views/packages-table-collapsed.html +19 -0
  825. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/views/packages-table-full.html +22 -0
  826. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/views/packages.html +19 -0
  827. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-action-sync-plan.controller.js +0 -13
  828. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-action-sync.controller.js +0 -13
  829. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-action.controller.js +2 -15
  830. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/views/bulk-actions.html +1 -1
  831. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/product-details-info.controller.js +0 -13
  832. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/product-details.controller.js +2 -15
  833. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/product-repositories.controller.js +16 -41
  834. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-details.html +1 -1
  835. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-repositories.html +114 -115
  836. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/discovery-form.controller.js +76 -94
  837. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/discovery.controller.js +1 -14
  838. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/views/discovery.html +7 -4
  839. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/new-product.controller.js +0 -13
  840. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/product-form.controller.js +7 -15
  841. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/views/product-new.html +2 -0
  842. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js +3 -14
  843. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.controller.js +11 -22
  844. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.module.js +9 -16
  845. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/views/partials/product-table-sync-status.html +2 -2
  846. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/views/products-table-full.html +1 -1
  847. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-modules-details-content-views.controller.js +43 -0
  848. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-modules-details-repositories.controller.js +35 -0
  849. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-modules-details.controller.js +28 -0
  850. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-modules-details-content-views.html +37 -0
  851. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-modules-details-info.html +31 -0
  852. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-modules-details-repositories.html +52 -0
  853. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-modules-details.html +45 -0
  854. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-module.factory.js +5 -14
  855. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-modules.controller.js +35 -0
  856. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-modules.module.js +0 -13
  857. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-modules.routes.js +69 -0
  858. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/views/puppet-modules-table-collapsed.html +20 -0
  859. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/views/puppet-modules-table-full.html +29 -0
  860. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/views/puppet-modules.html +16 -0
  861. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/repository-details-info.controller.js +10 -20
  862. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/repository-details-manage-content.controller.js +26 -37
  863. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-info.html +59 -7
  864. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-docker-images.html +1 -0
  865. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-package-groups.html +25 -0
  866. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-packages.html +1 -0
  867. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-puppet-modules.html +1 -0
  868. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/new/new-repository.controller.js +20 -32
  869. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/repositories.module.js +0 -13
  870. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/repository.factory.js +2 -14
  871. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-associations-activation-keys.controller.js +0 -13
  872. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-associations-content-hosts.controller.js +1 -14
  873. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-details.controller.js +2 -15
  874. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-product-details.controller.js +0 -13
  875. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js +0 -13
  876. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-associations-activation-keys.html +8 -8
  877. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-associations-content-hosts.html +7 -7
  878. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-details.html +1 -1
  879. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-info.html +3 -3
  880. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-products.html +1 -1
  881. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest-details.controller.js +2 -15
  882. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest-history.controller.js +0 -13
  883. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest-import.controller.js +34 -47
  884. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest.controller.js +0 -13
  885. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/views/manifest-import.html +0 -10
  886. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-type.directive.js +0 -13
  887. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionAttachAmountFilter.filter.js +0 -13
  888. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js +0 -13
  889. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions-helper.service.js +3 -16
  890. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.controller.js +18 -29
  891. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js +3 -14
  892. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.module.js +3 -16
  893. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscriptions-table-full.html +1 -1
  894. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-add-products.controller.js +5 -18
  895. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-details-info.controller.js +14 -16
  896. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-details.controller.js +0 -13
  897. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-products.controller.js +5 -18
  898. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-info.html +14 -1
  899. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-products-table.html +37 -35
  900. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/new/new-sync-plan.controller.js +2 -14
  901. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js +2 -18
  902. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js +7 -19
  903. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.module.js +0 -13
  904. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/views/sync-plans.html +4 -0
  905. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/aggregate-task.factory.js +17 -30
  906. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-details.controller.js +0 -13
  907. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js +6 -16
  908. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-part.directive.js +3 -16
  909. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-reduce.filter.js +2 -15
  910. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-short.filter.js +0 -13
  911. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task.factory.js +36 -43
  912. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/tasks-nutupane.factory.js +3 -15
  913. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/tasks-table.directive.js +2 -15
  914. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/tasks.module.js +0 -14
  915. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/views/tasks-table.html +30 -28
  916. data/engines/bastion_katello/app/assets/stylesheets/bastion_katello/bastion_katello.less +6 -0
  917. data/engines/bastion_katello/app/assets/stylesheets/bastion_katello/systems.less +0 -24
  918. data/engines/bastion_katello/bastion_katello.gemspec +1 -1
  919. data/engines/bastion_katello/lib/bastion_katello/engine.rb +6 -1
  920. data/lib/katello.rb +2 -8
  921. data/lib/katello/apipie/validators.rb +1 -1
  922. data/lib/katello/engine.rb +54 -15
  923. data/lib/katello/permissions/content_host_permissions.rb +4 -5
  924. data/lib/katello/permissions/content_view_permissions.rb +2 -4
  925. data/lib/katello/permissions/host_collections_permissions.rb +0 -1
  926. data/lib/katello/permissions/product_permissions.rb +1 -2
  927. data/lib/katello/permissions/subscription_permissions.rb +1 -2
  928. data/lib/katello/permissions/sync_plan_permissions.rb +2 -1
  929. data/lib/katello/plugin.rb +36 -37
  930. data/lib/katello/tasks/reindex.rake +125 -18
  931. data/lib/katello/tasks/setup.rake +0 -3
  932. data/lib/katello/tasks/test.rake +92 -8
  933. data/lib/katello/tasks/upgrades/2.4/import_distributions.rake +12 -0
  934. data/lib/katello/tasks/upgrades/2.4/import_package_groups.rake +12 -0
  935. data/lib/katello/tasks/upgrades/2.4/import_puppet_modules.rake +12 -0
  936. data/lib/katello/tasks/upgrades/2.4/import_rpms.rake +12 -0
  937. data/lib/katello/tasks/upgrades/2.4/import_subscriptions.rake +13 -0
  938. data/lib/katello/tire_bridge.rb +20 -0
  939. data/lib/katello/url_constrained_cookie_store.rb +0 -12
  940. data/lib/katello/version.rb +1 -1
  941. data/lib/monkeys/passenger_tee_input.rb +0 -12
  942. data/locale/action_names.rb +47 -0
  943. data/locale/bn/katello.po +2728 -5025
  944. data/locale/cs/katello.po +1939 -2918
  945. data/locale/de/katello.po +3515 -5733
  946. data/locale/en/katello.po +1570 -1537
  947. data/locale/es/katello.po +3457 -5721
  948. data/locale/fr/katello.po +3604 -5753
  949. data/locale/gu/katello.po +2740 -5029
  950. data/locale/hi/katello.po +2731 -5032
  951. data/locale/it/katello.po +3502 -5769
  952. data/locale/ja/katello.po +3481 -5888
  953. data/locale/katello.pot +1277 -1472
  954. data/locale/kn/katello.po +2754 -5089
  955. data/locale/ko/katello.po +3327 -5775
  956. data/locale/mr/katello.po +2701 -5097
  957. data/locale/or/katello.po +2741 -5093
  958. data/locale/pa/katello.po +2601 -4937
  959. data/locale/pt/katello.po +1810 -1947
  960. data/locale/pt_BR/katello.po +3468 -5893
  961. data/locale/ru/katello.po +3352 -5856
  962. data/locale/ta/katello.po +2751 -5040
  963. data/locale/te/katello.po +2734 -5091
  964. data/locale/zh_CN/katello.po +3230 -5800
  965. data/locale/zh_TW/katello.po +3540 -5962
  966. metadata +1451 -1575
  967. checksums.yaml +0 -15
  968. data/app/assets/javascripts/katello/common/bastion-routes.js +0 -2870
  969. data/app/assets/javascripts/katello/common/notices.js +0 -176
  970. data/app/assets/javascripts/katello/common/panel.js +0 -1078
  971. data/app/assets/javascripts/katello/common/routes.js +0 -2878
  972. data/app/assets/javascripts/katello/common/search.js +0 -376
  973. data/app/assets/javascripts/katello/content_search/content_search.js +0 -854
  974. data/app/assets/javascripts/katello/content_search/index.js +0 -20
  975. data/app/assets/javascripts/katello/dashboard/dashboard.js +0 -210
  976. data/app/assets/javascripts/katello/dashboard/index.js +0 -14
  977. data/app/assets/javascripts/katello/notices/index.js +0 -14
  978. data/app/assets/javascripts/katello/notices/notices_list.js +0 -49
  979. data/app/assets/javascripts/katello/providers/index.js +0 -16
  980. data/app/assets/javascripts/katello/providers/products_repos.js +0 -46
  981. data/app/assets/javascripts/katello/providers/provider.js +0 -68
  982. data/app/assets/javascripts/katello/providers/provider_create.js +0 -21
  983. data/app/assets/javascripts/katello/providers/repo.js +0 -27
  984. data/app/assets/javascripts/katello/providers/repo_discovery.js +0 -376
  985. data/app/assets/javascripts/katello/providers/repo_discovery_create.js +0 -17
  986. data/app/assets/javascripts/katello/widgets/comparison_grid.js +0 -1033
  987. data/app/assets/javascripts/katello/widgets/slidingtree.js +0 -645
  988. data/app/assets/javascripts/katello/widgets/tipsy.custom.js +0 -197
  989. data/app/assets/stylesheets/katello/content_search.scss +0 -650
  990. data/app/assets/stylesheets/katello/custom_info.scss +0 -32
  991. data/app/assets/stylesheets/katello/dashboard.scss +0 -570
  992. data/app/assets/stylesheets/katello/widgets/tipsy_custom.scss +0 -81
  993. data/app/controllers/katello/api/v2/distributions_controller.rb +0 -50
  994. data/app/controllers/katello/api/v2/users_controller.rb +0 -16
  995. data/app/controllers/katello/concerns/api/v2/repository_db_content_controller.rb +0 -109
  996. data/app/controllers/katello/consumers_controller_logic.rb +0 -55
  997. data/app/controllers/katello/content_search_controller.rb +0 -676
  998. data/app/controllers/katello/content_views_controller.rb +0 -35
  999. data/app/controllers/katello/dashboard_controller.rb +0 -106
  1000. data/app/controllers/katello/distributor_events_controller.rb +0 -114
  1001. data/app/controllers/katello/distributors_controller.rb +0 -501
  1002. data/app/controllers/katello/notices_controller.rb +0 -101
  1003. data/app/controllers/katello/packages_controller.rb +0 -45
  1004. data/app/controllers/katello/puppet_modules_controller.rb +0 -27
  1005. data/app/controllers/katello/repositories_controller.rb +0 -39
  1006. data/app/controllers/katello/search_controller.rb +0 -92
  1007. data/app/helpers/katello/content_search_helper.rb +0 -62
  1008. data/app/helpers/katello/dashboard_helper.rb +0 -204
  1009. data/app/helpers/katello/distributors_helper.rb +0 -69
  1010. data/app/helpers/katello/notices_helper.rb +0 -21
  1011. data/app/helpers/katello/search_helper.rb +0 -35
  1012. data/app/helpers/katello/users_helper.rb +0 -44
  1013. data/app/lib/actions/candlepin/reindex_pool_subscription_handler.rb +0 -91
  1014. data/app/lib/actions/elastic_search/content_view_puppet_environment/index_content.rb +0 -28
  1015. data/app/lib/actions/elastic_search/repository/destroy.rb +0 -35
  1016. data/app/lib/actions/elastic_search/repository/remove_puppet_modules.rb +0 -28
  1017. data/app/lib/actions/katello/organization/index_subscriptions.rb +0 -61
  1018. data/app/lib/actions/katello/repository/remove_docker_images.rb +0 -35
  1019. data/app/lib/actions/katello/user/create.rb +0 -27
  1020. data/app/lib/actions/katello/user/destroy.rb +0 -28
  1021. data/app/lib/actions/pulp/superuser/abstract.rb +0 -35
  1022. data/app/lib/actions/pulp/superuser/add.rb +0 -23
  1023. data/app/lib/actions/pulp/superuser/remove.rb +0 -23
  1024. data/app/lib/actions/pulp/user/create.rb +0 -35
  1025. data/app/lib/actions/pulp/user/destroy.rb +0 -27
  1026. data/app/lib/katello/content_search/cell.rb +0 -29
  1027. data/app/lib/katello/content_search/column.rb +0 -18
  1028. data/app/lib/katello/content_search/container_search.rb +0 -55
  1029. data/app/lib/katello/content_search/content_view_comparison.rb +0 -200
  1030. data/app/lib/katello/content_search/content_view_search.rb +0 -69
  1031. data/app/lib/katello/content_search/element.rb +0 -57
  1032. data/app/lib/katello/content_search/metadata_row.rb +0 -35
  1033. data/app/lib/katello/content_search/product_row.rb +0 -35
  1034. data/app/lib/katello/content_search/product_search.rb +0 -60
  1035. data/app/lib/katello/content_search/repo_row.rb +0 -33
  1036. data/app/lib/katello/content_search/repo_search.rb +0 -68
  1037. data/app/lib/katello/content_search/row.rb +0 -25
  1038. data/app/lib/katello/content_search/search.rb +0 -45
  1039. data/app/lib/katello/content_search/search_utils.rb +0 -33
  1040. data/app/lib/katello/content_search/span.rb +0 -21
  1041. data/app/lib/katello/content_search/unit_row.rb +0 -55
  1042. data/app/lib/katello/dashboard/content_views_widget.rb +0 -30
  1043. data/app/lib/katello/dashboard/errata_widget.rb +0 -30
  1044. data/app/lib/katello/dashboard/host_collections_widget.rb +0 -30
  1045. data/app/lib/katello/dashboard/layout.rb +0 -73
  1046. data/app/lib/katello/dashboard/notices_widget.rb +0 -23
  1047. data/app/lib/katello/dashboard/subscriptions_totals_widget.rb +0 -29
  1048. data/app/lib/katello/dashboard/subscriptions_widget.rb +0 -25
  1049. data/app/lib/katello/dashboard/sync_widget.rb +0 -30
  1050. data/app/lib/katello/dashboard/widget.rb +0 -45
  1051. data/app/lib/katello/notifications.rb +0 -17
  1052. data/app/lib/katello/notifications/controller_helper.rb +0 -43
  1053. data/app/lib/katello/notifications/notifier.rb +0 -190
  1054. data/app/lib/katello/notify.rb +0 -16
  1055. data/app/lib/katello/validators/default_info_validator.rb +0 -40
  1056. data/app/models/katello/authorization.rb +0 -25
  1057. data/app/models/katello/authorization/distributor.rb +0 -58
  1058. data/app/models/katello/custom_info.rb +0 -64
  1059. data/app/models/katello/distribution.rb +0 -32
  1060. data/app/models/katello/distributor.rb +0 -136
  1061. data/app/models/katello/glue/elastic_search/activation_key.rb +0 -37
  1062. data/app/models/katello/glue/elastic_search/content_view.rb +0 -58
  1063. data/app/models/katello/glue/elastic_search/content_view_filter.rb +0 -39
  1064. data/app/models/katello/glue/elastic_search/content_view_puppet_environment.rb +0 -72
  1065. data/app/models/katello/glue/elastic_search/content_view_puppet_module.rb +0 -41
  1066. data/app/models/katello/glue/elastic_search/distribution.rb +0 -72
  1067. data/app/models/katello/glue/elastic_search/distributor.rb +0 -63
  1068. data/app/models/katello/glue/elastic_search/marketing_product.rb +0 -21
  1069. data/app/models/katello/glue/elastic_search/notice.rb +0 -36
  1070. data/app/models/katello/glue/elastic_search/package.rb +0 -233
  1071. data/app/models/katello/glue/elastic_search/package_group.rb +0 -136
  1072. data/app/models/katello/glue/elastic_search/pool.rb +0 -185
  1073. data/app/models/katello/glue/elastic_search/product.rb +0 -59
  1074. data/app/models/katello/glue/elastic_search/provider.rb +0 -41
  1075. data/app/models/katello/glue/elastic_search/puppet_module.rb +0 -251
  1076. data/app/models/katello/glue/elastic_search/repository.rb +0 -133
  1077. data/app/models/katello/glue/pulp/distribution.rb +0 -50
  1078. data/app/models/katello/glue/pulp/package.rb +0 -76
  1079. data/app/models/katello/glue/pulp/package_group.rb +0 -60
  1080. data/app/models/katello/glue/pulp/puppet_module.rb +0 -76
  1081. data/app/models/katello/glue/pulp/user.rb +0 -59
  1082. data/app/models/katello/help_tip.rb +0 -20
  1083. data/app/models/katello/marketing_engineering_product.rb +0 -21
  1084. data/app/models/katello/marketing_product.rb +0 -21
  1085. data/app/models/katello/notice.rb +0 -77
  1086. data/app/models/katello/package.rb +0 -19
  1087. data/app/models/katello/search_favorite.rb +0 -38
  1088. data/app/models/katello/search_history.rb +0 -22
  1089. data/app/models/katello/user_notice.rb +0 -27
  1090. data/app/models/repository_docker_image.rb +0 -18
  1091. data/app/views/katello/api/v2/custom_info/show.json.rabl +0 -5
  1092. data/app/views/katello/api/v2/distributions/index.json.rabl +0 -3
  1093. data/app/views/katello/api/v2/distributions/show.json.rabl +0 -9
  1094. data/app/views/katello/api/v2/distributors/index.json.rabl +0 -9
  1095. data/app/views/katello/api/v2/distributors/pools.json.rabl +0 -3
  1096. data/app/views/katello/api/v2/distributors/show.json.rabl +0 -3
  1097. data/app/views/katello/api/v2/distributors/task.json.rabl +0 -3
  1098. data/app/views/katello/api/v2/distributors/tasks.json.rabl +0 -3
  1099. data/app/views/katello/api/v2/layouts/collection.json.haml +0 -3
  1100. data/app/views/katello/api/v2/layouts/resource.json.haml +0 -5
  1101. data/app/views/katello/api/v2/organization_default_info/apply_to_all.json.rabl +0 -3
  1102. data/app/views/katello/api/v2/organization_default_info/create.json.rabl +0 -5
  1103. data/app/views/katello/api/v2/users/list_owners.json.rabl +0 -4
  1104. data/app/views/katello/api/v2/users/show.json.rabl +0 -12
  1105. data/app/views/katello/common/400.html.haml +0 -5
  1106. data/app/views/katello/common/403.html.haml +0 -10
  1107. data/app/views/katello/common/404.html.haml +0 -7
  1108. data/app/views/katello/common/500.html.haml +0 -15
  1109. data/app/views/katello/common/_ajax_notices.haml +0 -5
  1110. data/app/views/katello/common/_common_i18n.html.haml +0 -45
  1111. data/app/views/katello/common/_common_product_repo_selector.html.haml +0 -65
  1112. data/app/views/katello/common/_common_products.html.haml +0 -24
  1113. data/app/views/katello/common/_config.html.haml +0 -8
  1114. data/app/views/katello/common/_edit_i18n.html.haml +0 -12
  1115. data/app/views/katello/common/_env_select.html.haml +0 -40
  1116. data/app/views/katello/common/_filter_table.html.haml +0 -5
  1117. data/app/views/katello/common/_footer.haml +0 -5
  1118. data/app/views/katello/common/_helptip.html.haml +0 -3
  1119. data/app/views/katello/common/_helptip_button.html.haml +0 -2
  1120. data/app/views/katello/common/_list_item.html.haml +0 -6
  1121. data/app/views/katello/common/_list_items.html.haml +0 -2
  1122. data/app/views/katello/common/_list_remove.js.haml +0 -3
  1123. data/app/views/katello/common/_list_update.html.haml +0 -4
  1124. data/app/views/katello/common/_notification.haml +0 -29
  1125. data/app/views/katello/common/_one_panel.html.haml +0 -15
  1126. data/app/views/katello/common/_one_panel_list_item.haml +0 -5
  1127. data/app/views/katello/common/_package_actions_i18n.html.haml +0 -7
  1128. data/app/views/katello/common/_panel.html.haml +0 -75
  1129. data/app/views/katello/common/_post_action_close_subpanel.js.haml +0 -2
  1130. data/app/views/katello/common/_post_delete_close_subpanel.js.haml +0 -2
  1131. data/app/views/katello/common/_repo_selector.html.haml +0 -27
  1132. data/app/views/katello/common/_search.html.haml +0 -17
  1133. data/app/views/katello/common/_stats_line.html.haml +0 -3
  1134. data/app/views/katello/common/_tupane.html.haml +0 -10
  1135. data/app/views/katello/content_search/_browser_box.html.haml +0 -132
  1136. data/app/views/katello/content_search/_container_hover.html.haml +0 -26
  1137. data/app/views/katello/content_search/_grid.html.haml +0 -60
  1138. data/app/views/katello/content_search/_repo_hover.html.haml +0 -18
  1139. data/app/views/katello/content_search/index.html.haml +0 -32
  1140. data/app/views/katello/custom_info/_edit.html.haml +0 -32
  1141. data/app/views/katello/dashboard/_ajax_entry.html.haml +0 -11
  1142. data/app/views/katello/dashboard/_content_views.haml +0 -22
  1143. data/app/views/katello/dashboard/_entry.html.haml +0 -9
  1144. data/app/views/katello/dashboard/_errata.haml +0 -21
  1145. data/app/views/katello/dashboard/_host_collection_item.html.haml +0 -19
  1146. data/app/views/katello/dashboard/_host_collections.html.haml +0 -31
  1147. data/app/views/katello/dashboard/_notices.html.haml +0 -11
  1148. data/app/views/katello/dashboard/_subscriptions.haml +0 -47
  1149. data/app/views/katello/dashboard/_subscriptions_totals.haml +0 -19
  1150. data/app/views/katello/dashboard/_sync.haml +0 -37
  1151. data/app/views/katello/dashboard/_systems.html.haml +0 -22
  1152. data/app/views/katello/dashboard/index.html.haml +0 -25
  1153. data/app/views/katello/distributor_events/_details.html.haml +0 -32
  1154. data/app/views/katello/distributor_events/_event_items.html.haml +0 -27
  1155. data/app/views/katello/distributor_events/_events.html.haml +0 -36
  1156. data/app/views/katello/distributor_events/_more_events.html.haml +0 -3
  1157. data/app/views/katello/distributors/_actions.html.haml +0 -23
  1158. data/app/views/katello/distributors/_distributor_tupane_header_nav.html.haml +0 -10
  1159. data/app/views/katello/distributors/_edit.html.haml +0 -73
  1160. data/app/views/katello/distributors/_edit_custom_info.html.haml +0 -10
  1161. data/app/views/katello/distributors/_list_distributor.html.haml +0 -2
  1162. data/app/views/katello/distributors/_list_distributor_show.html.haml +0 -18
  1163. data/app/views/katello/distributors/_list_distributors.html.haml +0 -1
  1164. data/app/views/katello/distributors/_more_products.html.haml +0 -5
  1165. data/app/views/katello/distributors/_new.html.haml +0 -43
  1166. data/app/views/katello/distributors/_products.html.haml +0 -23
  1167. data/app/views/katello/distributors/_subs.html.haml +0 -149
  1168. data/app/views/katello/distributors/_subs_update.js.haml +0 -1
  1169. data/app/views/katello/distributors/_subscription_details.html.haml +0 -23
  1170. data/app/views/katello/distributors/_subscriptions.html.haml +0 -22
  1171. data/app/views/katello/distributors/index.html.haml +0 -10
  1172. data/app/views/katello/errata/_short_details.html.haml +0 -44
  1173. data/app/views/katello/layouts/katello.haml +0 -32
  1174. data/app/views/katello/layouts/tupane_layout.html.haml +0 -45
  1175. data/app/views/katello/nodes/_list.html.haml +0 -5
  1176. data/app/views/katello/nodes/index.html.haml +0 -1
  1177. data/app/views/katello/nodes/show.html.haml +0 -7
  1178. data/app/views/katello/notices/_delete_all.js.haml +0 -1
  1179. data/app/views/katello/notices/show.html.haml +0 -46
  1180. data/app/views/katello/packages/_changelog.html.haml +0 -15
  1181. data/app/views/katello/packages/_dependencies.html.haml +0 -27
  1182. data/app/views/katello/packages/_details.html.haml +0 -100
  1183. data/app/views/katello/packages/_filelist.html.haml +0 -15
  1184. data/app/views/katello/packages/_show.html.haml +0 -90
  1185. data/app/views/katello/providers/index.html.haml +0 -17
  1186. data/app/views/katello/providers/redhat/_enable_errors.haml +0 -9
  1187. data/app/views/katello/providers/redhat/_errors.html.haml +0 -13
  1188. data/app/views/katello/providers/redhat/_repo_sets.haml +0 -31
  1189. data/app/views/katello/providers/redhat/_repos.html.haml +0 -23
  1190. data/app/views/katello/providers/redhat/_tab.html.haml +0 -8
  1191. data/app/views/katello/providers/redhat/show.html.haml +0 -23
  1192. data/app/views/katello/puppet_modules/_show.html.haml +0 -88
  1193. data/app/views/katello/sync_management/_children.html.haml +0 -13
  1194. data/app/views/katello/sync_management/_controls.html.haml +0 -13
  1195. data/app/views/katello/sync_management/_product.html.haml +0 -21
  1196. data/app/views/katello/sync_management/_products.html.haml +0 -20
  1197. data/app/views/katello/sync_management/_repo.html.haml +0 -27
  1198. data/app/views/katello/sync_management/_sync_plans.html.haml +0 -16
  1199. data/app/views/katello/sync_management/index.html.haml +0 -22
  1200. data/app/views/katello/sync_management/manage.html.haml +0 -25
  1201. data/app/views/katello/user_mailer/logins.text.haml +0 -3
  1202. data/app/views/katello/welcome/show.html.haml +0 -15
  1203. data/config/initializers/tire.rb +0 -4
  1204. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/custom-info/custom-info.factory.js +0 -34
  1205. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/custom-info/custom-info.module.js +0 -24
  1206. data/lib/headpin/headpin.rb +0 -6
  1207. data/lib/katello/app_config.rb +0 -22
  1208. data/lib/katello/configuration.rb +0 -70
  1209. data/lib/katello/configuration/loader.rb +0 -128
  1210. data/lib/katello/configuration/node.rb +0 -145
  1211. data/lib/katello/configuration/validator.rb +0 -85
  1212. data/lib/katello/load_configuration.rb +0 -95
  1213. data/lib/katello/logging.rb +0 -245
  1214. data/lib/katello/middleware/log_request_uuid.rb +0 -28
  1215. data/lib/katello/middleware/silenced_logger.rb +0 -35
  1216. data/lib/katello/permissions/dashboard_permissions.rb +0 -6
  1217. data/lib/monkeys/string_to_bool.rb +0 -19
  1218. data/lib/monkeys/yard_svg_fix.rb +0 -26
  1219. data/lib/util/password.rb +0 -137
  1220. data/vendor/assets/javascripts/katello/jquery.tipsy.js +0 -358
  1221. data/vendor/assets/stylesheets/katello/jquery.timepickr.css +0 -40
  1222. data/vendor/assets/stylesheets/katello/jquery.tipsy.css +0 -25
@@ -1,245 +0,0 @@
1
- #
2
- # Copyright 2014 Red Hat, Inc.
3
- #
4
- # This software is licensed to you under the GNU General Public
5
- # License as published by the Free Software Foundation; either version
6
- # 2 of the License (GPLv2) or (at your option) any later version.
7
- # There is NO WARRANTY for this software, express or implied,
8
- # including the implied warranties of MERCHANTABILITY,
9
- # NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
10
- # have received a copy of GPLv2 along with this software; if not, see
11
- # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
12
- require 'logging'
13
-
14
- module Katello
15
- class LoggingImpl
16
- private_class_method :new
17
-
18
- def configure(options = {})
19
- fail 'logging can be configured only once' if @configured
20
- @configured = true
21
-
22
- configure_color_scheme
23
- begin
24
- FileUtils.mkdir_p root_configuration.path unless File.directory?(root_configuration.path)
25
- rescue Errno::EACCES
26
- # just notify insufficient privileges
27
- # rubocop:disable Output
28
- puts "Insufficient privileges for #{root_configuration.path}"
29
- end
30
- configure_root_logger(options)
31
- integrate_yard_logger!
32
- configure_children_loggers
33
-
34
- if defined?(Rails::Console) && configuration.console_inline
35
- ::Logging.logger.root.add_appenders(
36
- ::Logging.appenders.stdout(:layout => build_layout(root_configuration.pattern, configuration.colorize)))
37
- end
38
-
39
- # you can add specific files per logger easily like this
40
- # Logging.logger['sql'].appenders = Logging.appenders.file("#{Rails.env}_sql.log")
41
- end
42
-
43
- private
44
-
45
- # TODO: clean this up
46
- # rubocop:disable MethodLength, BlockAlignment
47
- def integrate_yard_logger!
48
- if defined?(::YARD)
49
- # redefine by YARD globally defined method #log to point to our logger
50
- Object.send :define_method, :log do
51
- Katello::LoggingImpl::YARDLoggerDelegator.instance
52
- end
53
-
54
- unless self.class.const_defined?(:YARDLoggerDelegator)
55
- # define our logger child for YARD
56
- self.class.const_set(:YARDLoggerDelegator, Class.new(::YARD::Logger) do
57
- # @return [::Logging::Logger] for yard
58
- def _logging_logger
59
- @_logging_logger ||= begin
60
- yard_logger_delegator = self
61
- ::Logging.logger['yard'].tap do |logger|
62
- # redefine method #level= to set also YARD logger level
63
- original_method = logger.method :level=
64
- logger.singleton_class.send :define_method, :level= do |level|
65
- yard_logger_delegator.instance_variable_set :@level, level
66
- original_method.call level
67
- end
68
- logger.level = logger.level
69
- end
70
- end
71
- end
72
-
73
- # delegate all messages to a ::Logging::Logger
74
- def add(severity, message = nil, progname = nil, &block)
75
- clear_line
76
- #puts "-- #{severity} #{message || progname}"
77
- _logging_logger.add severity, message || progname, &block
78
- end
79
-
80
- # disable setting level by Yard logger
81
- def level=(_level)
82
- # debug "setting level:#{level} ignored, use Logging.logger['yard'].level= instead"
83
- end
84
- end)
85
- end
86
- end
87
- end
88
-
89
- # shortcut to logging configuration
90
- def configuration
91
- Katello.config.logging
92
- end
93
-
94
- # shortcut to root logger configuration
95
- def root_configuration
96
- configuration.loggers.root
97
- end
98
-
99
- # sets all children loggers according to configuration
100
- #
101
- # we use +additive+ feature of logging gem to enable or disable logger output, by default
102
- # only root logger has an appender so if we set +additive+ attribute to false, no message
103
- # is outputted by particular logger
104
- def configure_children_loggers
105
- # set level and enabled configuration
106
- loggers_hash = configuration.loggers.to_hash
107
- loggers_hash.keys.tap { |a| a.delete(:root) }.each do |logger_name|
108
- logger_config = configuration.loggers[logger_name]
109
- logger = ::Logging.logger[logger_name]
110
- logger.level = logger_config.level if logger_config.key?(:level)
111
- logger.additive = logger_config.enabled if logger_config.key?(:enabled)
112
- enable_tailing logger, logger_config if logger_config.key?(:tail_command)
113
- logger.trace = configuration.log_trace
114
- end
115
- end
116
-
117
- # set root logger specific configuration
118
- #
119
- # root logger has configurable appender by argument +options+
120
- # we also set fallback appender to STDOUT in case a developer asks for unusable appender
121
- def configure_root_logger(options)
122
- ::Logging.logger.root.level = root_configuration.level
123
- ::Logging.logger.root.appenders = build_root_appender(options)
124
- ::Logging.logger.root.trace = configuration.log_trace
125
-
126
- # fallback to log to STDOUT if there is any configuration problem
127
- if ::Logging.logger.root.appenders.empty?
128
- ::Logging.logger.root.appenders = ::Logging.appenders.stdout
129
- ::Logging.logger.root.warn 'No appender set, logging to STDOUT'
130
- end
131
- end
132
-
133
- def enable_tailing(logger, logger_config)
134
- Thread.new do
135
- begin
136
- IO.popen(logger_config.tail_command) do |out|
137
- at_exit { Process.kill("INT", out.pid) }
138
- while (line = out.gets)
139
- logger << "[#{logger.name}] #{line.inspect}\n"
140
- end
141
- end
142
- rescue => e
143
- Logging.logger['app'].warn "tailing thread failed: #{e.message} (#{e.class})\n#{e.backtrace.join("\n")}"
144
- end
145
- end
146
- end
147
-
148
- # currently we support two types of appenders, rolling file and syslog
149
- # note that syslog ignores pattern and logs only messages
150
- def build_root_appender(options)
151
- name = "#{options[:prefix]}joined"
152
- case root_configuration[:type]
153
- when 'syslog'
154
- build_syslog_appender(name, options)
155
- when 'file'
156
- build_file_appender(name, options)
157
- else
158
- fail 'unsupported logger type, please choose syslog or file'
159
- end
160
- end
161
-
162
- def build_syslog_appender(name, options)
163
- ::Logging.appenders.syslog(
164
- name,
165
- options.reverse_merge(:ident => "#{options[:prefix]}katello",
166
- :facility => ::Syslog::Constants::LOG_DAEMON)
167
- )
168
- end
169
-
170
- def build_file_appender(name, options)
171
- path = root_configuration.path
172
- log_filename = "#{path}/#{options[:prefix]}#{root_configuration.filename}"
173
- begin
174
- ::Logging.appenders.rolling_file(
175
- name,
176
- options.reverse_merge(:filename => log_filename,
177
- :roll_by => 'date',
178
- :age => root_configuration.age,
179
- :keep => root_configuration.keep,
180
- :layout => build_layout(root_configuration.pattern, configuration.colorize))
181
- )
182
- rescue ArgumentError
183
- # if appender cannot open output file we ignore it, STDOUT fallback will be used
184
- nil
185
- end
186
- end
187
-
188
- def build_layout(pattern, colorize)
189
- pattern += " Log trace: %F:%L method: %M\n" if configuration.log_trace
190
- MultilinePatternLayout.new(:pattern => pattern, :color_scheme => colorize ? 'bright' : nil)
191
- end
192
-
193
- def configure_color_scheme
194
- ::Logging.color_scheme('bright',
195
- :levels => {
196
- :info => :green,
197
- :warn => :yellow,
198
- :error => :red,
199
- :fatal => [:white, :on_red]
200
- },
201
- :date => :blue,
202
- :logger => :cyan,
203
- :line => :yellow,
204
- :file => :yellow,
205
- :method => :yellow
206
- )
207
- end
208
-
209
- # We need a bridge for Tire so we can log their messages to our logger
210
- class TireBridge
211
- def initialize(logger)
212
- @logger = logger
213
- end
214
-
215
- # text representation of logger level
216
- def level
217
- ::Logging.levelify(::Logging::LNAMES[@logger.level])
218
- end
219
-
220
- # actual bridge to katello logger
221
- # we enforce debug level so messages can be easily turned on/off by setting info level
222
- # to tire_rest logger
223
- def write(message)
224
- @logger.debug message
225
- end
226
- end
227
-
228
- # Custom pattern layout that indents multiline strings and adds | symbol to beginning of each
229
- # following line hence you can see what belongs to the same message
230
- class MultilinePatternLayout < ::Logging::Layouts::Pattern
231
- def format_obj(obj)
232
- obj.is_a?(String) ? indent_lines(obj) : super
233
- end
234
-
235
- private
236
-
237
- # all new lines will be indented
238
- def indent_lines(string)
239
- string.gsub("\n", "\n | ")
240
- end
241
- end
242
- end
243
-
244
- Logging = LoggingImpl.send :new
245
- end
@@ -1,28 +0,0 @@
1
- #
2
- # Copyright 2014 Red Hat, Inc.
3
- #
4
- # This software is licensed to you under the GNU General Public
5
- # License as published by the Free Software Foundation; either version
6
- # 2 of the License (GPLv2) or (at your option) any later version.
7
- # There is NO WARRANTY for this software, express or implied,
8
- # including the implied warranties of MERCHANTABILITY,
9
- # NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
10
- # have received a copy of GPLv2 along with this software; if not, see
11
- # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
12
-
13
- module Katello
14
- module Middleware
15
- class LogRequestUUID
16
- def initialize(app)
17
- @app = app
18
- end
19
-
20
- def call(env)
21
- ::Logging.mdc['uuid'] = env['action_dispatch.request_id']
22
- @app.call(env)
23
- ensure
24
- ::Logging.mdc.delete 'uuid'
25
- end
26
- end
27
- end
28
- end
@@ -1,35 +0,0 @@
1
- #
2
- # Copyright 2014 Red Hat, Inc.
3
- #
4
- # This software is licensed to you under the GNU General Public
5
- # License as published by the Free Software Foundation; either version
6
- # 2 of the License (GPLv2) or (at your option) any later version.
7
- # There is NO WARRANTY for this software, express or implied,
8
- # including the implied warranties of MERCHANTABILITY,
9
- # NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
10
- # have received a copy of GPLv2 along with this software; if not, see
11
- # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
12
-
13
- module Katello
14
- module Middleware
15
- class SilencedLogger < Rails::Rack::Logger
16
- def prefixes
17
- Katello.config.logging.ignored_paths
18
- end
19
-
20
- def initialize(app, _options = {})
21
- @app = app
22
- end
23
-
24
- def call(env)
25
- old_level = Rails.logger.level
26
- if prefixes.any? { |path| env["PATH_INFO"].include?(path) }
27
- Rails.logger.level = Logger::WARN
28
- end
29
- @app.call(env)
30
- ensure
31
- Rails.logger.level = old_level
32
- end
33
- end
34
- end
35
- end
@@ -1,6 +0,0 @@
1
- require 'katello/plugin.rb'
2
-
3
- Foreman::AccessControl.permission(:access_dashboard).actions << [
4
- 'katello/dashboard/index',
5
- 'katello/dashboard/notices'
6
- ]
@@ -1,19 +0,0 @@
1
- #
2
- # Copyright 2014 Red Hat, Inc.
3
- #
4
- # This software is licensed to you under the GNU General Public
5
- # License as published by the Free Software Foundation; either version
6
- # 2 of the License (GPLv2) or (at your option) any later version.
7
- # There is NO WARRANTY for this software, express or implied,
8
- # including the implied warranties of MERCHANTABILITY,
9
- # NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
10
- # have received a copy of GPLv2 along with this software; if not, see
11
- # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
12
-
13
- class String
14
- def to_bool
15
- return true if self == true || self =~ (/(true|t|yes|y|1)$/i)
16
- return false if self == false || self.blank? || self =~ (/(false|f|no|n|0)$/i)
17
- fail ArgumentError, "invalid value for Boolean: \"#{self}\""
18
- end
19
- end
@@ -1,26 +0,0 @@
1
- module YARD
2
- module Server
3
- module Commands
4
- class DisplayFileCommand < LibraryCommand
5
- # return svg images in responses
6
- def run
7
- path = library.source_path
8
- filename = File.cleanpath(File.join(library.source_path, path))
9
- fail NotFoundError unless File.file?(filename)
10
- if filename =~ /\.(jpe?g|gif|png|bmp|svg)$/i
11
- headers['Content-Type'] = StaticFileCommand::DefaultMimeTypes[Regexp.last_match[1].downcase] ||
12
- ("image/svg+xml" if Regexp.last_match[1].downcase == 'svg') || 'text/html'
13
- render IO.read(filename)
14
- else
15
- file = CodeObjects::ExtraFileObject.new(filename)
16
- options.update(:object => Registry.root, :type => :layout, :file => file)
17
- render
18
- end
19
- end
20
- end
21
- end
22
- end
23
- end
24
-
25
- path = File.expand_path("../../yard-template/default/fulldoc/html/", File.dirname(__FILE__))
26
- YARD::Server.register_static_path path
@@ -1,137 +0,0 @@
1
- #
2
- # Copyright 2014 Red Hat, Inc.
3
- #
4
- # This software is licensed to you under the GNU General Public
5
- # License as published by the Free Software Foundation; either version
6
- # 2 of the License (GPLv2) or (at your option) any later version.
7
- # There is NO WARRANTY for this software, express or implied,
8
- # including the implied warranties of MERCHANTABILITY,
9
- # NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
10
- # have received a copy of GPLv2 along with this software; if not, see
11
- # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
12
-
13
- require 'openssl'
14
- require 'digest/sha2'
15
-
16
- # This module contains functions for hashing and storing passwords with
17
- # SHA512 with 64 characters long random salt. It also includes several other
18
- # password-related utility functions.
19
- #
20
- # Please note this module is required either from Rails and from Puppet.
21
- #
22
- module Password
23
- # Generates a new salt and rehashes the password
24
- def self.update(password)
25
- salt = self.salt
26
- hash = self.hash(password, salt)
27
- self.store(hash, salt)
28
- end
29
-
30
- # Checks the password against the stored password
31
- def self.check(password, store)
32
- hash = self.get_hash(store)
33
- salt = self.get_salt(store)
34
- if self.hash(password, salt) == hash
35
- true
36
- else
37
- false
38
- end
39
- end
40
-
41
- # Generates random string like for length = 10 => "iCi5MxiTDn"
42
- def self.generate_random_string(length)
43
- chars = ('A'..'Z').to_a + ('a'..'z').to_a + (0..9).to_a
44
- result = []
45
- length.to_i.times { result += chars.sample(1) }
46
- result.join
47
- end
48
-
49
- def self.encrypt(text, passphrase = nil)
50
- passphrase = File.open('/etc/katello/secure/passphrase', 'rb') { |f| f.read }.chomp if passphrase.nil?
51
- '$1$' + [aes_encrypt(text, passphrase)].pack('m0').gsub("\n", '') # for Ruby 1.8
52
- rescue => e
53
- if defined?(Rails) && Rails.logger
54
- Rails.logger.warn "Unable to encrypt password: #{e}"
55
- else
56
- STDERR.puts "Unable to encrypt password: #{e}".chomp
57
- end
58
- text # return the input if anything goes wrong
59
- end
60
-
61
- def self.decrypt(text, passphrase = nil)
62
- return text unless text.start_with? '$1$' # password is plain
63
- passphrase = File.open('/etc/katello/secure/passphrase', 'rb') { |f| f.read }.chomp if passphrase.nil?
64
- aes_decrypt(text[3..-1].unpack('m0')[0], passphrase)
65
- rescue => e
66
- if defined?(Rails) && Rails.logger
67
- Rails.logger.warn "Unable to decrypt password, returning encrypted version #{e}"
68
- else
69
- STDERR.puts "Unable to decrypt password, returning encrypted version #{e}".chomp
70
- end
71
- text # return the input if anything goes wrong
72
- end
73
-
74
- protected
75
-
76
- def self.aes_encrypt(text, passphrase)
77
- cipher = OpenSSL::Cipher::Cipher.new("aes-256-cbc")
78
- cipher.encrypt
79
- cipher.key = Digest::SHA2.hexdigest(passphrase)
80
- cipher.iv = Digest::SHA2.hexdigest(passphrase + passphrase)
81
-
82
- encrypted = cipher.update(text)
83
- encrypted << cipher.final
84
- encrypted
85
- end
86
-
87
- def self.aes_decrypt(text, passphrase)
88
- cipher = OpenSSL::Cipher::Cipher.new("aes-256-cbc")
89
- cipher.decrypt
90
- cipher.key = Digest::SHA2.hexdigest(passphrase)
91
- cipher.iv = Digest::SHA2.hexdigest(passphrase + passphrase)
92
-
93
- decrypted = cipher.update(text)
94
- decrypted << cipher.final
95
- decrypted
96
- end
97
-
98
- # this option is intended for altering the behaviour
99
- # of hashin (such as faster passowrd hashing when running tests)
100
- # should be used with caution (setting to 1 in testing environment
101
- # is probably the only reasonable usage)
102
- # rubocop:disable TrivialAccessors
103
- def self.password_rounds=(value)
104
- @password_rounds = value
105
- end
106
-
107
- def self.password_rounds
108
- @password_rounds || 500
109
- end
110
-
111
- # Generates a psuedo-random 64 character string
112
- def self.salt
113
- self.generate_random_string(64)
114
- end
115
-
116
- # Generates a 128 character hash
117
- def self.hash(password, salt)
118
- digest = "#{password}:#{salt}"
119
- password_rounds.times { digest = Digest::SHA512.hexdigest(digest) }
120
- digest
121
- end
122
-
123
- # Mixes the hash and salt together for storage
124
- def self.store(hash, salt)
125
- hash + salt
126
- end
127
-
128
- # Gets the hash from a stored password
129
- def self.get_hash(store)
130
- store[0..127]
131
- end
132
-
133
- # Gets the salt from a stored password
134
- def self.get_salt(store)
135
- store[128..191]
136
- end
137
- end