hammer_cli_katello 1.15.1 → 1.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hammer_cli_katello/activation_key.rb +0 -5
- data/lib/hammer_cli_katello/command_extensions/kickstart_repository.rb +0 -2
- data/lib/hammer_cli_katello/content_override.rb +7 -0
- data/lib/hammer_cli_katello/content_view.rb +0 -2
- data/lib/hammer_cli_katello/content_view_version.rb +0 -2
- data/lib/hammer_cli_katello/flatpak_remote.rb +82 -0
- data/lib/hammer_cli_katello/flatpak_remote_repository.rb +53 -0
- data/lib/hammer_cli_katello/host.rb +5 -0
- data/lib/hammer_cli_katello/host_bootc.rb +34 -0
- data/lib/hammer_cli_katello/host_extensions.rb +22 -1
- data/lib/hammer_cli_katello/i18n.rb +1 -1
- data/lib/hammer_cli_katello/id_resolver.rb +1 -0
- data/lib/hammer_cli_katello/repository.rb +1 -0
- data/lib/hammer_cli_katello/search_options_creators.rb +13 -0
- data/lib/hammer_cli_katello/version.rb +1 -1
- data/lib/hammer_cli_katello.rb +5 -1
- data/locale/bn/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/bn/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/bn_IN/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/bn_IN/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/bqi/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/bqi/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/ca/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/ca/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/cs_CZ/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/cs_CZ/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/de/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/de/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/de_AT/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/de_AT/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/de_DE/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/de_DE/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/el/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/el/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/en/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/en/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/en_GB/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/en_GB/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/en_US/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/en_US/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/es/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/es/{hammer-cli-katello.po → hammer_cli_katello.po} +3 -3
- data/locale/et_EE/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/et_EE/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/fr/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/fr/{hammer-cli-katello.po → hammer_cli_katello.po} +9 -9
- data/locale/gl/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/gl/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/gu/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/gu/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/he_IL/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/he_IL/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/hi/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/hi/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/id/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/id/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/it/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/it/{hammer-cli-katello.po → hammer_cli_katello.po} +3 -3
- data/locale/ja/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/ja/{hammer-cli-katello.po → hammer_cli_katello.po} +3 -3
- data/locale/ka/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/ka/{hammer-cli-katello.po → hammer_cli_katello.po} +4 -4
- data/locale/kn/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/kn/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/ko/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/ko/{hammer-cli-katello.po → hammer_cli_katello.po} +463 -405
- data/locale/ml_IN/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/ml_IN/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/mr/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/mr/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/nl_NL/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/nl_NL/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/or/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/or/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/pa/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/pa/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/pl/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/pl/{hammer-cli-katello.po → hammer_cli_katello.po} +4 -4
- data/locale/pl_PL/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/pl_PL/{hammer-cli-katello.po → hammer_cli_katello.po} +4 -4
- data/locale/pt/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/pt/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/pt_BR/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/pt_BR/{hammer-cli-katello.po → hammer_cli_katello.po} +4 -4
- data/locale/ro/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/ro/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/ro_RO/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/ro_RO/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/ru/LC_MESSAGES/hammer_cli_katello.mo +0 -0
- data/locale/ru/{hammer-cli-katello.po → hammer_cli_katello.po} +6 -6
- data/locale/sl/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/sl/{hammer-cli-katello.po → hammer_cli_katello.po} +3 -3
- data/locale/sv_SE/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/sv_SE/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/ta/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/ta/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/ta_IN/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/ta_IN/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/te/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/te/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/tr/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/tr/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/vi/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/vi/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/vi_VN/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/vi_VN/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/zh/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/zh/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- data/locale/zh_CN/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/zh_CN/{hammer-cli-katello.po → hammer_cli_katello.po} +3 -3
- data/locale/zh_TW/LC_MESSAGES/{hammer-cli-katello.mo → hammer_cli_katello.mo} +0 -0
- data/locale/zh_TW/{hammer-cli-katello.po → hammer_cli_katello.po} +1 -1
- metadata +147 -102
- data/locale/it/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/ko/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/pt_BR/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- data/locale/ru/LC_MESSAGES/hammer-cli-katello.mo +0 -0
- /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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bec412752eac31d8f73a6935437d786cc61398be577876ae9cb43545e4b52899
|
4
|
+
data.tar.gz: 644fcc8d7b838c2a7a889f0be91e97092a0efec0f1dab60064a6df7743a67980
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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')],
|
data/lib/hammer_cli_katello.rb
CHANGED
@@ -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"),
|
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'
|
Binary file
|
@@ -9,7 +9,7 @@
|
|
9
9
|
#, fuzzy
|
10
10
|
msgid ""
|
11
11
|
msgstr ""
|
12
|
-
"Project-Id-Version:
|
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"
|
Binary file
|
@@ -9,7 +9,7 @@
|
|
9
9
|
#, fuzzy
|
10
10
|
msgid ""
|
11
11
|
msgstr ""
|
12
|
-
"Project-Id-Version:
|
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"
|
Binary file
|
@@ -6,7 +6,7 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version:
|
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"
|
Binary file
|
@@ -9,7 +9,7 @@
|
|
9
9
|
#, fuzzy
|
10
10
|
msgid ""
|
11
11
|
msgstr ""
|
12
|
-
"Project-Id-Version:
|
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"
|
Binary file
|
@@ -10,7 +10,7 @@
|
|
10
10
|
#, fuzzy
|
11
11
|
msgid ""
|
12
12
|
msgstr ""
|
13
|
-
"Project-Id-Version:
|
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"
|
Binary file
|
@@ -23,7 +23,7 @@
|
|
23
23
|
#, fuzzy
|
24
24
|
msgid ""
|
25
25
|
msgstr ""
|
26
|
-
"Project-Id-Version:
|
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"
|
Binary file
|
@@ -6,7 +6,7 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version:
|
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"
|
Binary file
|
@@ -11,7 +11,7 @@
|
|
11
11
|
#, fuzzy
|
12
12
|
msgid ""
|
13
13
|
msgstr ""
|
14
|
-
"Project-Id-Version:
|
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"
|
Binary file
|
@@ -9,7 +9,7 @@
|
|
9
9
|
#, fuzzy
|
10
10
|
msgid ""
|
11
11
|
msgstr ""
|
12
|
-
"Project-Id-Version:
|
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"
|
Binary file
|
@@ -5,7 +5,7 @@
|
|
5
5
|
#
|
6
6
|
msgid ""
|
7
7
|
msgstr ""
|
8
|
-
"Project-Id-Version:
|
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"
|
Binary file
|
@@ -10,7 +10,7 @@
|
|
10
10
|
#, fuzzy
|
11
11
|
msgid ""
|
12
12
|
msgstr ""
|
13
|
-
"Project-Id-Version:
|
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"
|
Binary file
|
@@ -6,7 +6,7 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version:
|
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"
|
Binary file
|
@@ -17,12 +17,12 @@
|
|
17
17
|
#, fuzzy
|
18
18
|
msgid ""
|
19
19
|
msgstr ""
|
20
|
-
"Project-Id-Version:
|
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
|
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"
|
Binary file
|
@@ -6,7 +6,7 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version:
|
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"
|
Binary file
|