hammer_cli_katello 1.8.3 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hammer_cli_katello/activation_key.rb +13 -3
  3. data/lib/hammer_cli_katello/content_view_version.rb +11 -2
  4. data/lib/hammer_cli_katello/host_collection_erratum.rb +1 -1
  5. data/lib/hammer_cli_katello/host_collection_package.rb +3 -3
  6. data/lib/hammer_cli_katello/host_collection_package_group.rb +3 -3
  7. data/lib/hammer_cli_katello/host_errata.rb +1 -1
  8. data/lib/hammer_cli_katello/host_extensions.rb +8 -14
  9. data/lib/hammer_cli_katello/host_package.rb +4 -4
  10. data/lib/hammer_cli_katello/host_package_group.rb +2 -2
  11. data/lib/hammer_cli_katello/organization.rb +12 -0
  12. data/lib/hammer_cli_katello/repository.rb +3 -0
  13. data/lib/hammer_cli_katello/version.rb +1 -1
  14. data/locale/bn/hammer-cli-katello.po +1698 -0
  15. data/locale/bn_IN/hammer-cli-katello.po +1699 -0
  16. data/locale/ca/hammer-cli-katello.po +1698 -0
  17. data/locale/cs_CZ/hammer-cli-katello.po +1701 -0
  18. data/locale/de/hammer-cli-katello.po +1499 -1101
  19. data/locale/de_AT/hammer-cli-katello.po +1695 -0
  20. data/locale/de_DE/hammer-cli-katello.po +1701 -0
  21. data/locale/el/hammer-cli-katello.po +1698 -0
  22. data/locale/en/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  23. data/locale/en/hammer-cli-katello.po +1010 -233
  24. data/locale/en_GB/hammer-cli-katello.po +1700 -0
  25. data/locale/en_US/hammer-cli-katello.po +1695 -0
  26. data/locale/es/hammer-cli-katello.po +1622 -1121
  27. data/locale/et_EE/hammer-cli-katello.po +1695 -0
  28. data/locale/fr/hammer-cli-katello.po +1635 -1136
  29. data/locale/gl/hammer-cli-katello.po +1698 -0
  30. data/locale/gu/hammer-cli-katello.po +1698 -0
  31. data/locale/he_IL/hammer-cli-katello.po +1700 -0
  32. data/locale/hi/hammer-cli-katello.po +1698 -0
  33. data/locale/id/hammer-cli-katello.po +1694 -0
  34. data/locale/it/hammer-cli-katello.po +1623 -1120
  35. data/locale/ja/hammer-cli-katello.po +1640 -1135
  36. data/locale/ka/hammer-cli-katello.po +1747 -0
  37. data/locale/kn/hammer-cli-katello.po +1698 -0
  38. data/locale/ko/hammer-cli-katello.po +1625 -1123
  39. data/locale/ml_IN/hammer-cli-katello.po +1695 -0
  40. data/locale/mr/hammer-cli-katello.po +1698 -0
  41. data/locale/nl_NL/hammer-cli-katello.po +1702 -0
  42. data/locale/or/hammer-cli-katello.po +1698 -0
  43. data/locale/pa/hammer-cli-katello.po +1699 -0
  44. data/locale/pl/hammer-cli-katello.po +1701 -0
  45. data/locale/pl_PL/hammer-cli-katello.po +1697 -0
  46. data/locale/pt/hammer-cli-katello.po +1699 -0
  47. data/locale/pt_BR/hammer-cli-katello.po +1633 -1129
  48. data/locale/ro/hammer-cli-katello.po +1695 -0
  49. data/locale/ro_RO/hammer-cli-katello.po +1696 -0
  50. data/locale/ru/hammer-cli-katello.po +1635 -1128
  51. data/locale/sl/hammer-cli-katello.po +1699 -0
  52. data/locale/sv_SE/hammer-cli-katello.po +1700 -0
  53. data/locale/ta/hammer-cli-katello.po +1698 -0
  54. data/locale/ta_IN/hammer-cli-katello.po +1699 -0
  55. data/locale/te/hammer-cli-katello.po +1698 -0
  56. data/locale/tr/hammer-cli-katello.po +1698 -0
  57. data/locale/vi/hammer-cli-katello.po +1694 -0
  58. data/locale/vi_VN/hammer-cli-katello.po +1695 -0
  59. data/locale/zh/hammer-cli-katello.po +1694 -0
  60. data/locale/zh_CN/hammer-cli-katello.po +1617 -1114
  61. data/locale/zh_TW/hammer-cli-katello.po +1593 -1099
  62. data/test/data/4.8/foreman_api.json +1 -1
  63. data/test/data/4.9/foreman_api.json +1 -0
  64. data/test/functional/host/extensions/info_test.rb +2 -1
  65. data/test/functional/repository/list_test.rb +16 -16
  66. data/test/test_helper.rb +1 -14
  67. metadata +42 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14a8c0516e23ef722ab7bac70b87c22ef600171d0bec5a057196d3f850fbd317
4
- data.tar.gz: cb77eda2075ce41fa28c00e1469d6e9f73e1113d73141033702db679bb68f76e
3
+ metadata.gz: '087997f9ecd956e28e1a16af8a0a9b7d58c8545a21823983a4262455440a4450'
4
+ data.tar.gz: 24f3198cbecc8efe78ab7307deef8ae037acb150b1fdbbb663f1187e37b0b255
5
5
  SHA512:
6
- metadata.gz: eac823ff33aa124a1198718eba317a3c6514ade1c77c38df7348709b24b3eb5616a7b8010a5c74435e6e9dadb34bb0597496986b0a7a2d8eb2f2915730b81e93
7
- data.tar.gz: 2dc906e2d9d22d7423e3cae95b364f6b1ad5180c373e0776f961cd61f65f77682837ff56c8d62afb1452b5b4c20312cb54b7d685deeda4dd4dd702e3d0f5fa9c
6
+ metadata.gz: 11f48385ad699c7ffec842e06f80614892d533a5f3aada8a320fbdade7054e31205893e42ce7711eb365f680e0e8166fae6d605251f9ebabd91420e4330e3ea6
7
+ data.tar.gz: ab4c2fe345e087af5f6bb30ca575f8273212080ab504fc5d5003e721d6f5e2264ed4d837650b4b8598dd31f61acaad08860f53d41ba5d29d44490651aeb0d2b9
@@ -55,7 +55,7 @@ module HammerCLIKatello
55
55
  field :name, _("Name")
56
56
  field :id, _("Id")
57
57
  field :description, _("Description"), Fields::Field, :hide_blank => true
58
- field :format_limit, _("Host Limit")
58
+ field :format_consumed, _("Host Limit")
59
59
  field :auto_attach, _("Auto Attach")
60
60
  field :release_version, _("Release Version"), Fields::Field, :hide_blank => true
61
61
 
@@ -66,6 +66,11 @@ module HammerCLIKatello
66
66
  field :name, _("Content View")
67
67
  end
68
68
 
69
+ collection :hosts, _("Associated Hosts") do
70
+ field :id, _('Id')
71
+ field :name, _("Name")
72
+ end
73
+
69
74
  collection :host_collections, _("Host Collections") do
70
75
  field :id, _("Id")
71
76
  field :name, _("Name")
@@ -86,8 +91,13 @@ module HammerCLIKatello
86
91
  end
87
92
 
88
93
  def extend_data(data)
89
- data["format_limit"] =
90
- data["unlimited_hosts"] ? _("Unlimited") : data["max_hosts"]
94
+ limit = data["unlimited_hosts"] ? _("Unlimited") : data["max_hosts"]
95
+
96
+ data["format_consumed"] = _("%{consumed} of %{limit}") %
97
+ {
98
+ :consumed => data["usage_count"],
99
+ :limit => limit
100
+ }
91
101
  data
92
102
  end
93
103
 
@@ -32,8 +32,6 @@ module HammerCLIKatello
32
32
  class InfoCommand < HammerCLIKatello::InfoCommand
33
33
  include LifecycleEnvironmentNameMapping
34
34
 
35
- resource :content_view_versions, :show
36
-
37
35
  output do
38
36
  field :id, _("Id")
39
37
  field :name, _("Name")
@@ -57,6 +55,17 @@ module HammerCLIKatello
57
55
  field :name, _("Name")
58
56
  field :label, _("Label")
59
57
  end
58
+
59
+ field :filters_applied, _("Has Applied Filters"), Fields::Boolean, hide_blank: true
60
+ from :applied_filters do
61
+ collection :applied_filters, _("Applied Filters"), hide_blank: true, hide_empty: true do
62
+ from :filter do
63
+ field :id, _("Id")
64
+ field :name, _("Name")
65
+ end
66
+ end
67
+ field :dependency_solving, _("Dependency Solving"), Fields::Field, :hide_blank => true
68
+ end
60
69
  end
61
70
 
62
71
  build_options do |o|
@@ -17,7 +17,7 @@ module HammerCLIKatello
17
17
 
18
18
  def execute
19
19
  warn "This command uses katello agent and will be removed in favor of remote execution " \
20
- "in Katello 4.10."
20
+ "in a future release."
21
21
  warn "The remote execution equivalent is `hammer job-invocation create --feature " \
22
22
  "katello_errata_install`. Specify the host collection with the --search-query " \
23
23
  "parameter, e.g. `--search-query \"host_collection = MyCollection\"` or " \
@@ -26,7 +26,7 @@ module HammerCLIKatello
26
26
 
27
27
  def execute
28
28
  warn "This command uses katello agent and will be removed in favor of remote execution " \
29
- "in Katello 4.10."
29
+ "in a future release."
30
30
  warn "The remote execution equivalent is `hammer job-invocation create --feature " \
31
31
  "katello_package_install`. Specify the host collection with the --search-query " \
32
32
  "parameter, e.g. `--search-query \"host_collection = MyCollection\"` or " \
@@ -43,7 +43,7 @@ module HammerCLIKatello
43
43
 
44
44
  def execute
45
45
  warn "This command uses katello agent and will be removed in favor of remote execution " \
46
- "in Katello 4.10."
46
+ "in a future release."
47
47
  warn "The remote execution equivalent is `hammer job-invocation create --feature " \
48
48
  "katello_package_update`. Specify the host collection with the --search-query " \
49
49
  "parameter, e.g. `--search-query \"host_collection = MyCollection\"` or " \
@@ -60,7 +60,7 @@ module HammerCLIKatello
60
60
 
61
61
  def execute
62
62
  warn "This command uses katello agent and will be removed in favor of remote execution " \
63
- "in Katello 4.10."
63
+ "in a future release."
64
64
  warn "The remote execution equivalent is `hammer job-invocation create --feature " \
65
65
  "katello_package_remove`. Specify the host collection with the --search-query " \
66
66
  "parameter, e.g. `--search-query \"host_collection = MyCollection\"` or " \
@@ -26,7 +26,7 @@ module HammerCLIKatello
26
26
 
27
27
  def execute
28
28
  warn "This command uses katello agent and will be removed in favor of remote execution " \
29
- "in Katello 4.10."
29
+ "in a future release."
30
30
  warn "The remote execution equivalent is `hammer job-invocation create --feature " \
31
31
  "katello_group_install`. Specify the host collection with the --search-query " \
32
32
  "parameter, e.g. `--search-query \"host_collection = MyCollection\"` or " \
@@ -43,7 +43,7 @@ module HammerCLIKatello
43
43
 
44
44
  def execute
45
45
  warn "This command uses katello agent and will be removed in favor of remote execution " \
46
- "in Katello 4.10."
46
+ "in a future release."
47
47
  warn "The remote execution equivalent is `hammer job-invocation create --feature " \
48
48
  "katello_group_update`. Specify the host collection with the --search-query " \
49
49
  "parameter, e.g. `--search-query \"host_collection = MyCollection\"` or " \
@@ -60,7 +60,7 @@ module HammerCLIKatello
60
60
 
61
61
  def execute
62
62
  warn "This command uses katello agent and will be removed in favor of remote execution " \
63
- "in Katello 4.10."
63
+ "in a future release."
64
64
  warn "The remote execution equivalent is `hammer job-invocation create --feature " \
65
65
  "katello_group_remove`. Specify the host collection with the --search-query " \
66
66
  "parameter, e.g. `--search-query \"host_collection = MyCollection\"` or " \
@@ -15,7 +15,7 @@ module HammerCLIKatello
15
15
 
16
16
  def execute
17
17
  warn "This command uses katello agent and will be removed in favor of remote execution " \
18
- "in Katello 4.10."
18
+ "in a future release."
19
19
  warn "The remote execution equivalent is `hammer job-invocation create --feature " \
20
20
  "katello_errata_install`."
21
21
  super
@@ -42,20 +42,14 @@ module HammerCLIKatello
42
42
  output do
43
43
  label _('Content Information') do
44
44
  from :content_facet_attributes do
45
- collection :content_view_environments, _('Content view environments') do
46
- from :content_view do
47
- label _("Content view") do
48
- field :id, _("Id")
49
- field :name, _("Name")
50
- field :composite, _("Composite"), Fields::Boolean
51
- end
52
- end
53
- from :lifecycle_environment do
54
- label _("Lifecycle environment") do
55
- field :id, _("Id")
56
- field :name, _("Name")
57
- end
58
- end
45
+ label _("Content View") do
46
+ field :content_view_id, _("Id")
47
+ field :content_view_name, _("Name")
48
+ end
49
+
50
+ label _("Lifecycle Environment") do
51
+ field :lifecycle_environment_id, _("Id")
52
+ field :lifecycle_environment_name, _("Name")
59
53
  end
60
54
 
61
55
  label _("Content Source") do
@@ -27,7 +27,7 @@ module HammerCLIKatello
27
27
 
28
28
  def execute
29
29
  warn "This command uses katello agent and will be removed in favor of remote execution " \
30
- "in Katello 4.10."
30
+ "in a future release."
31
31
  warn "The remote execution equivalent is `hammer job-invocation create --feature " \
32
32
  "katello_package_install`."
33
33
  super
@@ -45,7 +45,7 @@ module HammerCLIKatello
45
45
 
46
46
  def execute
47
47
  warn "This command uses katello agent and will be removed in favor of remote execution " \
48
- "in Katello 4.10."
48
+ "in a future release."
49
49
  warn "The remote execution equivalent is `hammer job-invocation create --feature " \
50
50
  "katello_package_update`."
51
51
  super
@@ -63,7 +63,7 @@ module HammerCLIKatello
63
63
 
64
64
  def execute
65
65
  warn "This command uses katello agent and will be removed in favor of remote execution " \
66
- "in Katello 4.10."
66
+ "in a future release."
67
67
  warn "The remote execution equivalent is `hammer job-invocation create --feature " \
68
68
  "katello_package_update`."
69
69
  super
@@ -85,7 +85,7 @@ module HammerCLIKatello
85
85
 
86
86
  def execute
87
87
  warn "This command uses katello agent and will be removed in favor of remote execution " \
88
- "in Katello 4.10."
88
+ "in a future release."
89
89
  warn "The remote execution equivalent is `hammer job-invocation create --feature " \
90
90
  "katello_package_remove`."
91
91
  super
@@ -17,7 +17,7 @@ module HammerCLIKatello
17
17
 
18
18
  def execute
19
19
  warn "This command uses katello agent and will be removed in favor of remote execution " \
20
- "in Katello 4.10."
20
+ "in a future release."
21
21
  warn "The remote execution equivalent is `hammer job-invocation create --feature " \
22
22
  "katello_group_install`."
23
23
  super
@@ -39,7 +39,7 @@ module HammerCLIKatello
39
39
 
40
40
  def execute
41
41
  warn "This command uses katello agent and will be removed in favor of remote execution " \
42
- "in Katello 4.10."
42
+ "in a future release."
43
43
  warn "The remote execution equivalent is `hammer job-invocation create --feature " \
44
44
  "katello_group_remove`."
45
45
  super
@@ -68,6 +68,18 @@ module HammerCLIKatello
68
68
  success_message _("Organization updated.")
69
69
  failure_message _("Could not update the organization")
70
70
 
71
+ def request_params
72
+ params = super
73
+ # This is so Hammer doesn't say "Nothing to update" when toggling SCA.
74
+ # (see hammer-cli-foreman)
75
+ # Rails will safely ignore the extra parameter.
76
+ if params.key?('simple_content_access')
77
+ params["organization"] = params.fetch('organization', {}).merge(
78
+ "_simple_content_access" => params['simple_content_access'])
79
+ end
80
+ params
81
+ end
82
+
71
83
  build_options do |o|
72
84
  o.expand(:all).except(:environments)
73
85
  end
@@ -31,6 +31,7 @@ module HammerCLIKatello
31
31
  field :name, _("Product")
32
32
  end
33
33
  field :content_type, _("Content Type")
34
+ field :content_label, _("Content Label")
34
35
  field :url, _("Url")
35
36
  end
36
37
 
@@ -67,6 +68,7 @@ module HammerCLIKatello
67
68
  end
68
69
  field :_redhat_repo, _("Red Hat Repository")
69
70
  field :content_type, _("Content Type")
71
+ field :content_label, _("Content Label")
70
72
  field :checksum_type, _("Checksum Type"), Fields::Field, :hide_blank => true
71
73
  field :_mirroring_policy, _("Mirroring Policy"), Fields::Field, :hide_blank => true
72
74
  field :url, _("Url")
@@ -74,6 +76,7 @@ module HammerCLIKatello
74
76
  field :full_path, _("Published At")
75
77
  field :relative_path, _("Relative Path")
76
78
  field :download_policy, _("Download Policy"), Fields::Field, :hide_blank => true
79
+ field :metadata_expire, _("Metadata Expiration"), Fields::Field, :hide_blank => true
77
80
  field :docker_upstream_name, _("Upstream Repository Name"),
78
81
  Fields::Field, :hide_blank => true
79
82
  field :docker_tags_whitelist, _("Container Image Tags Filter"),
@@ -1,5 +1,5 @@
1
1
  module HammerCLIKatello
2
2
  def self.version
3
- @version ||= Gem::Version.new('1.8.3')
3
+ @version ||= Gem::Version.new('1.9.0')
4
4
  end
5
5
  end