hammer_cli_katello 1.15.1 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hammer_cli_katello/activation_key.rb +0 -5
  3. data/lib/hammer_cli_katello/command_extensions/kickstart_repository.rb +0 -2
  4. data/lib/hammer_cli_katello/content_override.rb +7 -0
  5. data/lib/hammer_cli_katello/content_view.rb +0 -2
  6. data/lib/hammer_cli_katello/content_view_version.rb +0 -2
  7. data/lib/hammer_cli_katello/flatpak_remote.rb +82 -0
  8. data/lib/hammer_cli_katello/flatpak_remote_repository.rb +53 -0
  9. data/lib/hammer_cli_katello/host.rb +5 -0
  10. data/lib/hammer_cli_katello/host_bootc.rb +34 -0
  11. data/lib/hammer_cli_katello/host_extensions.rb +22 -1
  12. data/lib/hammer_cli_katello/i18n.rb +1 -1
  13. data/lib/hammer_cli_katello/id_resolver.rb +1 -0
  14. data/lib/hammer_cli_katello/repository.rb +1 -0
  15. data/lib/hammer_cli_katello/search_options_creators.rb +13 -0
  16. data/lib/hammer_cli_katello/version.rb +1 -1
  17. data/lib/hammer_cli_katello.rb +5 -1
  18. data/locale/bn/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  19. data/locale/bn/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  20. data/locale/bn_IN/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  21. data/locale/bn_IN/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  22. data/locale/bqi/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  23. data/locale/bqi/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  24. data/locale/ca/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  25. data/locale/ca/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  26. data/locale/cs_CZ/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  27. data/locale/cs_CZ/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  28. data/locale/de/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  29. data/locale/de/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  30. data/locale/de_AT/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  31. data/locale/de_AT/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  32. data/locale/de_DE/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  33. data/locale/de_DE/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  34. data/locale/el/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  35. data/locale/el/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  36. data/locale/en/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  37. data/locale/en/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  38. data/locale/en_GB/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  39. data/locale/en_GB/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  40. data/locale/en_US/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  41. data/locale/en_US/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  42. data/locale/es/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  43. data/locale/es/{hammer-cli-katello.po → hammer_cli_katello.po} +3 -3
  44. data/locale/et_EE/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  45. data/locale/et_EE/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  46. data/locale/fr/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  47. data/locale/fr/{hammer-cli-katello.po → hammer_cli_katello.po} +9 -9
  48. data/locale/gl/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  49. data/locale/gl/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  50. data/locale/gu/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  51. data/locale/gu/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  52. data/locale/he_IL/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  53. data/locale/he_IL/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  54. data/locale/hi/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  55. data/locale/hi/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  56. data/locale/id/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  57. data/locale/id/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  58. data/locale/it/LC_MESSAGES/hammer_cli_katello.mo +0 -0
  59. data/locale/it/{hammer-cli-katello.po → hammer_cli_katello.po} +3 -3
  60. data/locale/ja/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  61. data/locale/ja/{hammer-cli-katello.po → hammer_cli_katello.po} +3 -3
  62. data/locale/ka/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  63. data/locale/ka/{hammer-cli-katello.po → hammer_cli_katello.po} +4 -4
  64. data/locale/kn/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  65. data/locale/kn/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  66. data/locale/ko/LC_MESSAGES/hammer_cli_katello.mo +0 -0
  67. data/locale/ko/{hammer-cli-katello.po → hammer_cli_katello.po} +463 -405
  68. data/locale/ml_IN/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  69. data/locale/ml_IN/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  70. data/locale/mr/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  71. data/locale/mr/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  72. data/locale/nl_NL/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  73. data/locale/nl_NL/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  74. data/locale/or/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  75. data/locale/or/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  76. data/locale/pa/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  77. data/locale/pa/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  78. data/locale/pl/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  79. data/locale/pl/{hammer-cli-katello.po → hammer_cli_katello.po} +4 -4
  80. data/locale/pl_PL/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  81. data/locale/pl_PL/{hammer-cli-katello.po → hammer_cli_katello.po} +4 -4
  82. data/locale/pt/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  83. data/locale/pt/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  84. data/locale/pt_BR/LC_MESSAGES/hammer_cli_katello.mo +0 -0
  85. data/locale/pt_BR/{hammer-cli-katello.po → hammer_cli_katello.po} +4 -4
  86. data/locale/ro/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  87. data/locale/ro/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  88. data/locale/ro_RO/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  89. data/locale/ro_RO/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  90. data/locale/ru/LC_MESSAGES/hammer_cli_katello.mo +0 -0
  91. data/locale/ru/{hammer-cli-katello.po → hammer_cli_katello.po} +6 -6
  92. data/locale/sl/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  93. data/locale/sl/{hammer-cli-katello.po → hammer_cli_katello.po} +3 -3
  94. data/locale/sv_SE/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  95. data/locale/sv_SE/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  96. data/locale/ta/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  97. data/locale/ta/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  98. data/locale/ta_IN/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  99. data/locale/ta_IN/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  100. data/locale/te/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  101. data/locale/te/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  102. data/locale/tr/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  103. data/locale/tr/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  104. data/locale/vi/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  105. data/locale/vi/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  106. data/locale/vi_VN/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  107. data/locale/vi_VN/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  108. data/locale/zh/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  109. data/locale/zh/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  110. data/locale/zh_CN/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  111. data/locale/zh_CN/{hammer-cli-katello.po → hammer_cli_katello.po} +3 -3
  112. data/locale/zh_TW/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
  113. data/locale/zh_TW/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
  114. metadata +147 -102
  115. data/locale/it/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  116. data/locale/ko/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  117. data/locale/pt_BR/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  118. data/locale/ru/LC_MESSAGES/hammer-cli-katello.mo +0 -0
  119. /data/locale/{hammer-cli-katello.pot → hammer_cli_katello.pot} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7fed000cc7fa54ea6ef8627dda40216e4bb0417b500fa8ee44916333a4559471
4
- data.tar.gz: 803ab08b82739369d4441ef1478132b3fb0a5521b16ca77b31f31a5485aa44d2
3
+ metadata.gz: bec412752eac31d8f73a6935437d786cc61398be577876ae9cb43545e4b52899
4
+ data.tar.gz: 644fcc8d7b838c2a7a889f0be91e97092a0efec0f1dab60064a6df7743a67980
5
5
  SHA512:
6
- metadata.gz: daf3de7c95974eb76ad3d5825569b881d9a7e53214d2a8fecfc1d6ccd2dc800c854bd1fe70a08b9fa6c89945533e598dea2269c45005d9a7007f003cc5dd904e
7
- data.tar.gz: 31d84509269a6cb131ff5461855a3b39cdad36233bb7df9e67893a82e14a5e4e7573b74d7d9b8ba730741fba46a4fadf8cef2de75f7f78f5e4858325e2040ee1
6
+ metadata.gz: 8d2280c233756fabee2d1c39dfaf16d2031ea0e5c80d89c571c519d84d1724327224851ab40339469129956a5378ec037c08864dffc065324e48052dc017df9b
7
+ data.tar.gz: eac6e6889d91ef260c1633eedcd0fa7d5bdee120b4ec04d70c827206f164bbb315f889d32ea858283c52380a2803535eb1abdd4d8cd4265efb944f5b20d44a58
@@ -102,14 +102,10 @@ module HammerCLIKatello
102
102
  field :service_level, _('Service Level'), Fields::Field, :hide_blank => true
103
103
  field :purpose_usage, _('Purpose Usage'), Fields::Field, :hide_blank => true
104
104
  field :purpose_role, _('Purpose Role'), Fields::Field, :hide_blank => true
105
- field :purpose_addons, _('Purpose Addons'), Fields::List, :hide_blank => true
106
105
  end
107
106
  end
108
107
 
109
108
  def extend_data(data)
110
- # rubocop:disable Layout/LineLength
111
- # Hack to hide purpose addons if it's not set since it's not possible to hide the Fields::List values
112
- data["purpose_addons"].length.positive? ? data["purpose_addons"] = data["purpose_addons"] : data["purpose_addons"] = nil
113
109
  limit = data["unlimited_hosts"] ? _("Unlimited") : data["max_hosts"]
114
110
 
115
111
  data["format_consumed"] = _("%{consumed} of %{limit}") %
@@ -118,7 +114,6 @@ module HammerCLIKatello
118
114
  :limit => limit
119
115
  }
120
116
  data
121
- # rubocop:enable Layout/LineLength
122
117
  end
123
118
 
124
119
  build_options
@@ -23,11 +23,9 @@ module HammerCLIKatello
23
23
  raise _('Please provide --lifecycle-environment-id') unless env_id
24
24
 
25
25
  raise _('Please provide --content-view-id') unless cv_id
26
- # rubocop:disable LineLength
27
26
  resource_hash['kickstart_repository_id'] = HammerCLIKatello::CommandExtensions::KickstartRepository.fetch_repo_id(
28
27
  cv_id, env_id, cmd_obj.option_kickstart_repository
29
28
  )
30
- # rubocop:enable LineLength
31
29
  end
32
30
  end
33
31
 
@@ -8,6 +8,9 @@ module HammerCLIKatello
8
8
  success_message _("Updated content override.")
9
9
  failure_message _("Could not update content override")
10
10
 
11
+ option "--force", "FORCE", _("Force the override. Required for overrides other than 'enabled'"),
12
+ :attribute_name => :option_force, default: false
13
+
11
14
  option "--content-label", "CONTENT_LABEL", _("Label of the content"),
12
15
  :attribute_name => :option_content_label, :required => true
13
16
 
@@ -28,6 +31,10 @@ module HammerCLIKatello
28
31
  if option(:option_remove).exist?
29
32
  option(:option_value).rejected
30
33
  elsif option(:option_value).exist?
34
+ if !@option_values['option_override_name'].casecmp('enabled').zero? &&
35
+ @option_values['option_force'] == false
36
+ raise ArgumentError, _("You must use --force to set an override other than 'enabled'")
37
+ end
31
38
  option(:option_remove).rejected
32
39
  end
33
40
  end
@@ -26,7 +26,6 @@ module HammerCLIKatello
26
26
 
27
27
  class InfoCommand < HammerCLIKatello::InfoCommand
28
28
  include OrganizationOptions
29
- # rubocop:disable Layout/LineLength
30
29
 
31
30
  output do
32
31
  field :id, _("Id")
@@ -137,7 +136,6 @@ module HammerCLIKatello
137
136
 
138
137
  build_options
139
138
  end
140
- # rubocop:enable Layout/LineLength
141
139
 
142
140
  class CreateCommand < HammerCLIKatello::CreateCommand
143
141
  success_message _("Content view created.")
@@ -65,9 +65,7 @@ module HammerCLIKatello
65
65
  field :content, _('Type')
66
66
  field :inclusion, _('Inclusion'), Fields::Boolean
67
67
  field :original_packages, _('Original packages'), Fields::Boolean, hide_blank: true
68
- # rubocop:disable Layout/LineLength
69
68
  field :original_module_streams, _('Original module streams'), Fields::Boolean, hide_blank: true
70
- # rubocop:enable Layout/LineLength
71
69
  end
72
70
  collection :rules, _("Rules"), hide_blank: true, hide_empty: true do
73
71
  field :id, _('Id')
@@ -0,0 +1,82 @@
1
+ require 'hammer_cli_katello/flatpak_remote_repository'
2
+ module HammerCLIKatello
3
+ class FlatpakRemoteCommand < HammerCLIKatello::Command
4
+ resource :flatpak_remotes
5
+
6
+ class ListCommand < HammerCLIKatello::ListCommand
7
+ include OrganizationOptions
8
+ output do
9
+ field :id, _('ID')
10
+ field :name, _('Name')
11
+ field :url, _('URL')
12
+ field :description, _('Description')
13
+ field :username, _('Username')
14
+ field :registry_url, _('Registry URL')
15
+ end
16
+
17
+ build_options
18
+ end
19
+
20
+ class InfoCommand < HammerCLIKatello::InfoCommand
21
+ include OrganizationOptions
22
+ output do
23
+ field :id, _('ID')
24
+ field :name, _('Name')
25
+ field :label, _('Label')
26
+ field :description, _('Description'), Fields::Field, :hide_blank => true
27
+ field :url, _('Flatpak index URL')
28
+ field :username, _('Username'), Fields::Field, :hide_blank => true
29
+ field :registry_url, _('Registry URL')
30
+ collection :organization, _('Organization') do
31
+ field :id, _('Id')
32
+ field :name, _('Name')
33
+ field :label, _('Label')
34
+ end
35
+ end
36
+
37
+ build_options
38
+ end
39
+
40
+ class CreateCommand < HammerCLIKatello::CreateCommand
41
+ success_message _('Flatpak Remote created.')
42
+ failure_message _('Could not create the Flatpak Remote.')
43
+
44
+ build_options
45
+ end
46
+
47
+ class UpdateCommand < HammerCLIKatello::UpdateCommand
48
+ include OrganizationOptions
49
+ success_message _('Flatpak Remote updated.')
50
+ failure_message _('Could not update the Flatpak Remote.')
51
+
52
+ build_options
53
+ end
54
+
55
+ class DeleteCommand < HammerCLIKatello::DeleteCommand
56
+ include OrganizationOptions
57
+ success_message _('Flatpak Remote deleted.')
58
+ failure_message _('Could not delete the Flatpak Remote.')
59
+
60
+ build_options
61
+ end
62
+
63
+ class ScanCommand < HammerCLIKatello::SingleResourceCommand
64
+ include OrganizationOptions
65
+ include HammerCLIForemanTasks::Async
66
+
67
+ action :scan
68
+ command_name 'scan'
69
+
70
+ success_message _("Flatpak remote is being scanned in task %<id>s.")
71
+ failure_message _('Could not scan the Flatpak remote')
72
+
73
+ build_options
74
+ end
75
+
76
+ autoload_subcommands
77
+
78
+ subcommand HammerCLIKatello::FlatpakRemoteRepository.command_name,
79
+ HammerCLIKatello::FlatpakRemoteRepository.desc,
80
+ HammerCLIKatello::FlatpakRemoteRepository
81
+ end
82
+ end
@@ -0,0 +1,53 @@
1
+ module HammerCLIKatello
2
+ class FlatpakRemoteRepository < HammerCLIKatello::Command
3
+ resource :flatpak_remote_repositories
4
+ command_name 'remote-repository'
5
+ desc _('View and manage flatpak remote repositories')
6
+
7
+ class ListCommand < HammerCLIKatello::ListCommand
8
+ output do
9
+ field :id, _("Id")
10
+ field :name, _("Name")
11
+ field :label, _("Label")
12
+ end
13
+ build_options do |o|
14
+ o.expand(:all).including(:flatpak_remotes, :organizations)
15
+ end
16
+ end
17
+
18
+ class InfoCommand < HammerCLIKatello::InfoCommand
19
+ output do
20
+ field :id, _("Id")
21
+ field :name, _("Name")
22
+ field :label, _("Label")
23
+ from :flatpak_remote do
24
+ field :id, _("Flatpak Remote ID")
25
+ field :name, _("Flatpak Remote Name")
26
+ field :url, _("Flatpak Remote URL")
27
+ end
28
+ collection :manifests, _("Manifests"), hide_blank: true, hide_empty: true do
29
+ field :name, _("Manifest Name")
30
+ field :digest, _("Manifest Digest")
31
+ field :tags, _("Manifest tags")
32
+ end
33
+ end
34
+ build_options do |o|
35
+ o.expand(:all).including(:flatpak_remotes, :organizations)
36
+ end
37
+ end
38
+
39
+ class MirrorCommand < HammerCLIKatello::SingleResourceCommand
40
+ include HammerCLIForemanTasks::Async
41
+
42
+ action :mirror
43
+ command_name 'mirror'
44
+
45
+ success_message _("Flatpak remote repository is being mirrored to product in task %<id>s.")
46
+ failure_message _('Could not mirror the Flatpak remote repository')
47
+
48
+ build_options
49
+ end
50
+
51
+ autoload_subcommands
52
+ end
53
+ end
@@ -6,6 +6,7 @@ require 'hammer_cli_katello/host_package'
6
6
  require 'hammer_cli_katello/host_deb'
7
7
  require 'hammer_cli_katello/host_package_group'
8
8
  require 'hammer_cli_katello/host_traces'
9
+ require 'hammer_cli_katello/host_bootc'
9
10
 
10
11
  module HammerCLIKatello
11
12
  HammerCLIForeman::Host.subcommand "errata",
@@ -31,4 +32,8 @@ module HammerCLIKatello
31
32
  HammerCLIForeman::Host.subcommand "traces",
32
33
  HammerCLIKatello::HostTraces.desc,
33
34
  HammerCLIKatello::HostTraces
35
+
36
+ HammerCLIForeman::Host.subcommand "bootc",
37
+ HammerCLIKatello::HostBootc.desc,
38
+ HammerCLIKatello::HostBootc
34
39
  end
@@ -0,0 +1,34 @@
1
+ module HammerCLIKatello
2
+ class HostBootc < HammerCLIKatello::Command
3
+ resource :host_bootc_images
4
+ desc "Manage bootc images on your hosts"
5
+
6
+ class ImagesCommand < HammerCLIKatello::ListCommand
7
+ action :bootc_images
8
+ command_name "images"
9
+
10
+ output do
11
+ field :bootc_booted_image, _("Running image")
12
+ field :bootc_booted_digest, _("Running image digest")
13
+ field :host_count, _("Host count")
14
+ end
15
+
16
+ def send_request
17
+ self.class.parse_data(super)
18
+ end
19
+
20
+ def self.parse_data(data_collection)
21
+ data = data_collection.inject([]) do |list, item|
22
+ list + item["digests"].collect do |digest|
23
+ digest.merge(:bootc_booted_image => item["bootc_booted_image"])
24
+ end
25
+ end
26
+ HammerCLI::Output::RecordCollection.new(data, :meta => data_collection.meta)
27
+ end
28
+
29
+ build_options
30
+ end
31
+
32
+ autoload_subcommands
33
+ end
34
+ end
@@ -4,6 +4,7 @@ require 'hammer_cli_katello/host_subscription'
4
4
  require 'hammer_cli_katello/host_package'
5
5
  require 'hammer_cli_katello/host_package_group'
6
6
  require 'hammer_cli_katello/host_traces'
7
+ require 'hammer_cli_katello/host_bootc'
7
8
 
8
9
  module HammerCLIKatello
9
10
  module HostExtensions
@@ -35,6 +36,14 @@ module HammerCLIKatello
35
36
  field :bugfix, _("Bugfix"), nil, :sets => ['ALL']
36
37
  field :enhancement, _("Enhancement"), nil, :sets => ['ALL']
37
38
  end
39
+ field :bootc_booted_image, _('Running image'), nil, :sets => ['ALL']
40
+ field :bootc_booted_digest, _('Running image digest'), nil, :sets => ['ALL']
41
+ field :bootc_staged_image, _('Staged image'), nil, :sets => ['ALL']
42
+ field :bootc_staged_digest, _('Staged image digest'), nil, :sets => ['ALL']
43
+ field :bootc_available_image, _('Available image'), nil, :sets => ['ALL']
44
+ field :bootc_available_digest, _('Available image digest'), nil, :sets => ['ALL']
45
+ field :bootc_rollback_image, _('Rollback image'), nil, :sets => ['ALL']
46
+ field :bootc_rollback_digest, _('Rollback image digest'), nil, :sets => ['ALL']
38
47
  end
39
48
  field :traces_status_label, _('Trace Status')
40
49
  end
@@ -101,11 +110,23 @@ module HammerCLIKatello
101
110
  field :service_level, _('Service Level')
102
111
  field :purpose_usage, _('Purpose Usage')
103
112
  field :purpose_role, _('Purpose Role')
104
- field :purpose_addons, _('Purpose Addons'), Fields::List
105
113
  end
106
114
  end
107
115
  end
108
116
 
117
+ label _('bootc Image Information') do
118
+ from :content_facet_attributes do
119
+ field :bootc_booted_image, _('Running image')
120
+ field :bootc_booted_digest, _('Running image digest')
121
+ field :bootc_staged_image, _('Staged image')
122
+ field :bootc_staged_digest, _('Staged image digest')
123
+ field :bootc_available_image, _('Available image')
124
+ field :bootc_available_digest, _('Available image digest')
125
+ field :bootc_rollback_image, _('Rollback image')
126
+ field :bootc_rollback_digest, _('Rollback image digest')
127
+ end
128
+ end
129
+
109
130
  field :traces_status_label, _('Trace Status')
110
131
 
111
132
  collection :host_collections, _('Host Collections') do
@@ -12,7 +12,7 @@ module HammerCLIKatello
12
12
  end
13
13
 
14
14
  def domain_name
15
- 'hammer-cli-katello'
15
+ 'hammer_cli_katello'
16
16
  end
17
17
  end
18
18
  end
@@ -29,6 +29,7 @@ module HammerCLIKatello
29
29
  :sync_plan => [s_name(_("Sync plan name to search by"))],
30
30
  :task => [s_name(_("Task name to search by"))],
31
31
  :content_view_version => [s("version", _("Content view version number"))],
32
+ :flatpak_remote => [s_name(_("Flatpak remote name to search by"))],
32
33
  :content_export => [],
33
34
  :content_export_incremental => [],
34
35
  :content_import => []
@@ -110,6 +110,7 @@ module HammerCLIKatello
110
110
  field :id, _("Id"), Fields::Field, :hide_blank => true
111
111
  field :name, _("Name"), Fields::Field, :hide_blank => true
112
112
  end
113
+ field :full_gpg_key_path, _("GPG Key Path"), Fields::Field, :hide_blank => true
113
114
  end
114
115
 
115
116
  label _("Sync") do
@@ -4,6 +4,19 @@ module HammerCLIKatello
4
4
  module SearchOptionsCreators
5
5
  include HammerCLIKatello::ForemanSearchOptionsCreators
6
6
 
7
+ def create_flatpak_remotes_search_options(options, _mode = nil)
8
+ name = options[HammerCLI.option_accessor_name('name')]
9
+ organization_id = options[HammerCLI.option_accessor_name("organization_id")] ||
10
+ organization_id(scoped_options('organization', options, :single))
11
+
12
+ search_options = {}
13
+ search_options['name'] = name if name
14
+ if options['option_flatpak_remote_name'] || name
15
+ search_options['organization_id'] = organization_id
16
+ end
17
+ search_options
18
+ end
19
+
7
20
  def create_repository_sets_search_options(options, mode = nil)
8
21
  create_search_options(options, api.resource(:repository_sets), mode).merge(
9
22
  'product_id' => options[HammerCLI.option_accessor_name('product_id')],
@@ -1,5 +1,5 @@
1
1
  module HammerCLIKatello
2
2
  def self.version
3
- @version ||= Gem::Version.new('1.15.1')
3
+ @version ||= Gem::Version.new('1.16.0')
4
4
  end
5
5
  end
@@ -43,7 +43,7 @@ module HammerCLIKatello
43
43
  'hammer_cli_katello/organization'
44
44
  )
45
45
 
46
- HammerCLI::MainCommand.lazy_subcommand!("alternate-content-source", _("Manipulate alternate content sources"), # rubocop:disable LineLength
46
+ HammerCLI::MainCommand.lazy_subcommand!("alternate-content-source", _("Manipulate alternate content sources"),
47
47
  'HammerCLIKatello::AcsCommand',
48
48
  'hammer_cli_katello/acs'
49
49
  )
@@ -165,6 +165,10 @@ module HammerCLIKatello
165
165
  'hammer_cli_katello/docker'
166
166
  )
167
167
 
168
+ HammerCLI::MainCommand.lazy_subcommand("flatpak-remote", _("Manipulate flatpak remotes"),
169
+ 'HammerCLIKatello::FlatpakRemoteCommand',
170
+ 'hammer_cli_katello/flatpak_remote'
171
+ )
168
172
  # subcommands to hammer_cli_foreman commands
169
173
  require 'hammer_cli_katello/host'
170
174
  require 'hammer_cli_katello/hostgroup'
@@ -9,7 +9,7 @@
9
9
  #, fuzzy
10
10
  msgid ""
11
11
  msgstr ""
12
- "Project-Id-Version: hammer-cli-katello 1.15.0.pre.main\n"
12
+ "Project-Id-Version: hammer_cli_katello 1.16.0.pre.main\n"
13
13
  "Report-Msgid-Bugs-To: \n"
14
14
  "POT-Creation-Date: 2023-07-12 17:04+0000\n"
15
15
  "PO-Revision-Date: 2017-09-11 13:28+0000\n"
@@ -9,7 +9,7 @@
9
9
  #, fuzzy
10
10
  msgid ""
11
11
  msgstr ""
12
- "Project-Id-Version: hammer-cli-katello 1.15.0.pre.main\n"
12
+ "Project-Id-Version: hammer_cli_katello 1.16.0.pre.main\n"
13
13
  "Report-Msgid-Bugs-To: \n"
14
14
  "POT-Creation-Date: 2023-07-12 17:04+0000\n"
15
15
  "PO-Revision-Date: 2017-09-11 13:28+0000\n"
@@ -6,7 +6,7 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hammer-cli-katello 1.15.0.pre.main\n"
9
+ "Project-Id-Version: hammer_cli_katello 1.16.0.pre.main\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
11
  "POT-Creation-Date: 2023-07-12 17:04+0000\n"
12
12
  "PO-Revision-Date: 2017-09-11 13:28+0000\n"
@@ -9,7 +9,7 @@
9
9
  #, fuzzy
10
10
  msgid ""
11
11
  msgstr ""
12
- "Project-Id-Version: hammer-cli-katello 1.15.0.pre.main\n"
12
+ "Project-Id-Version: hammer_cli_katello 1.16.0.pre.main\n"
13
13
  "Report-Msgid-Bugs-To: \n"
14
14
  "POT-Creation-Date: 2023-07-12 17:04+0000\n"
15
15
  "PO-Revision-Date: 2017-09-11 13:28+0000\n"
@@ -10,7 +10,7 @@
10
10
  #, fuzzy
11
11
  msgid ""
12
12
  msgstr ""
13
- "Project-Id-Version: hammer-cli-katello 1.15.0.pre.main\n"
13
+ "Project-Id-Version: hammer_cli_katello 1.16.0.pre.main\n"
14
14
  "Report-Msgid-Bugs-To: \n"
15
15
  "POT-Creation-Date: 2023-07-12 17:04+0000\n"
16
16
  "PO-Revision-Date: 2017-09-11 13:28+0000\n"
@@ -23,7 +23,7 @@
23
23
  #, fuzzy
24
24
  msgid ""
25
25
  msgstr ""
26
- "Project-Id-Version: hammer-cli-katello 1.15.0.pre.main\n"
26
+ "Project-Id-Version: hammer_cli_katello 1.16.0.pre.main\n"
27
27
  "Report-Msgid-Bugs-To: \n"
28
28
  "POT-Creation-Date: 2023-07-12 17:04+0000\n"
29
29
  "PO-Revision-Date: 2017-09-11 13:28+0000\n"
@@ -6,7 +6,7 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hammer-cli-katello 1.15.0.pre.main\n"
9
+ "Project-Id-Version: hammer_cli_katello 1.16.0.pre.main\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
11
  "POT-Creation-Date: 2023-07-12 17:04+0000\n"
12
12
  "PO-Revision-Date: 2017-09-11 13:28+0000\n"
@@ -11,7 +11,7 @@
11
11
  #, fuzzy
12
12
  msgid ""
13
13
  msgstr ""
14
- "Project-Id-Version: hammer-cli-katello 1.15.0.pre.main\n"
14
+ "Project-Id-Version: hammer_cli_katello 1.16.0.pre.main\n"
15
15
  "Report-Msgid-Bugs-To: \n"
16
16
  "POT-Creation-Date: 2023-07-12 17:04+0000\n"
17
17
  "PO-Revision-Date: 2017-09-11 13:28+0000\n"
@@ -9,7 +9,7 @@
9
9
  #, fuzzy
10
10
  msgid ""
11
11
  msgstr ""
12
- "Project-Id-Version: hammer-cli-katello 1.15.0.pre.main\n"
12
+ "Project-Id-Version: hammer_cli_katello 1.16.0.pre.main\n"
13
13
  "Report-Msgid-Bugs-To: \n"
14
14
  "POT-Creation-Date: 2023-07-12 17:04+0000\n"
15
15
  "PO-Revision-Date: 2017-09-11 13:28+0000\n"
@@ -5,7 +5,7 @@
5
5
  #
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: hammer-cli-katello 1.15.0.pre.main\n"
8
+ "Project-Id-Version: hammer_cli_katello 1.16.0.pre.main\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
10
  "POT-Creation-Date: 2023-07-12 17:04+0000\n"
11
11
  "PO-Revision-Date: 2023-07-12 17:04+0000\n"
@@ -10,7 +10,7 @@
10
10
  #, fuzzy
11
11
  msgid ""
12
12
  msgstr ""
13
- "Project-Id-Version: hammer-cli-katello 1.15.0.pre.main\n"
13
+ "Project-Id-Version: hammer_cli_katello 1.16.0.pre.main\n"
14
14
  "Report-Msgid-Bugs-To: \n"
15
15
  "POT-Creation-Date: 2023-07-12 17:04+0000\n"
16
16
  "PO-Revision-Date: 2017-09-11 13:28+0000\n"
@@ -6,7 +6,7 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hammer-cli-katello 1.15.0.pre.main\n"
9
+ "Project-Id-Version: hammer_cli_katello 1.16.0.pre.main\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
11
  "POT-Creation-Date: 2023-07-12 17:04+0000\n"
12
12
  "PO-Revision-Date: 2017-09-11 13:28+0000\n"
@@ -17,12 +17,12 @@
17
17
  #, fuzzy
18
18
  msgid ""
19
19
  msgstr ""
20
- "Project-Id-Version: hammer-cli-katello 1.15.0.pre.main\n"
20
+ "Project-Id-Version: hammer_cli_katello 1.16.0.pre.main\n"
21
21
  "Report-Msgid-Bugs-To: \n"
22
22
  "POT-Creation-Date: 2023-07-12 17:04+0000\n"
23
23
  "PO-Revision-Date: 2017-09-11 13:28+0000\n"
24
- "Last-Translator: Ewoud Kohl van Wijngaarden <ewoud"
25
- "+transifex@kohlvanwijngaarden.nl>, 2024\n"
24
+ "Last-Translator: Ewoud Kohl van Wijngaarden "
25
+ "<ewoud+transifex@kohlvanwijngaarden.nl>, 2024\n"
26
26
  "Language-Team: Spanish (https://app.transifex.com/foreman/teams/114/es/)\n"
27
27
  "MIME-Version: 1.0\n"
28
28
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -6,7 +6,7 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hammer-cli-katello 1.15.0.pre.main\n"
9
+ "Project-Id-Version: hammer_cli_katello 1.16.0.pre.main\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
11
  "POT-Creation-Date: 2023-07-12 17:04+0000\n"
12
12
  "PO-Revision-Date: 2017-09-11 13:28+0000\n"