hammer_cli_katello 1.17.0 → 1.17.2
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d34c5f35998c691f8932a9cf98aa8aca549580741108f7edb3e35e51c40ec494
|
|
4
|
+
data.tar.gz: 1e812b2237dd77419855caa60d04b1eb9f578e606337a0981ec41c18e34a2519
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 631c95867137a29663338bf7fc36be6d978d2ebc087dbeea8257f913ab13c1e0dc314fbe4402076c2ee6df58f489e0f09893fa6aa056db97a9c789e78485682a
|
|
7
|
+
data.tar.gz: 1202367c582d0ffd255896b0f664d54d62800da23d4a47ed8f3dffcb281c050709efe2d8998e3c03d2ac130a1b2f439c20b12a85f690fb428cbeb08e6653f395
|
|
@@ -8,8 +8,25 @@ module HammerCLIKatello
|
|
|
8
8
|
success_message _("Updated content override.")
|
|
9
9
|
failure_message _("Could not update content override")
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
setup_options
|
|
12
|
+
|
|
13
|
+
validate_options do
|
|
14
|
+
any(:option_remove, :option_value).required
|
|
15
|
+
|
|
16
|
+
if option(:option_remove).exist?
|
|
17
|
+
option(:option_value).rejected
|
|
18
|
+
elsif option(:option_value).exist?
|
|
19
|
+
if !@option_values['option_override_name'].casecmp('enabled').zero? &&
|
|
20
|
+
!option(:option_force).exist?
|
|
21
|
+
raise ArgumentError, _("You must use --force to set an override other than 'enabled'")
|
|
22
|
+
end
|
|
23
|
+
option(:option_remove).rejected
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def self.setup_options
|
|
29
|
+
option "--force", :flag, _("Force the override. Required for overrides other than 'enabled'")
|
|
13
30
|
|
|
14
31
|
option "--content-label", "CONTENT_LABEL", _("Label of the content"),
|
|
15
32
|
:attribute_name => :option_content_label, :required => true
|
|
@@ -24,20 +41,6 @@ module HammerCLIKatello
|
|
|
24
41
|
:attribute_name => :option_value, :required => false
|
|
25
42
|
|
|
26
43
|
option ["--remove"], :flag, _("Remove a content override")
|
|
27
|
-
|
|
28
|
-
validate_options do
|
|
29
|
-
any(:option_remove, :option_value).required
|
|
30
|
-
|
|
31
|
-
if option(:option_remove).exist?
|
|
32
|
-
option(:option_value).rejected
|
|
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
|
|
38
|
-
option(:option_remove).rejected
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
44
|
end
|
|
42
45
|
|
|
43
46
|
def request_params
|
|
@@ -6,6 +6,7 @@ require 'hammer_cli_katello/host_package_group'
|
|
|
6
6
|
require 'hammer_cli_katello/host_traces'
|
|
7
7
|
require 'hammer_cli_katello/host_bootc'
|
|
8
8
|
|
|
9
|
+
# rubocop:disable Metrics/ModuleLength
|
|
9
10
|
module HammerCLIKatello
|
|
10
11
|
module HostExtensions
|
|
11
12
|
::HammerCLIForeman::Host::CreateCommand.instance_eval do
|
|
@@ -57,18 +58,34 @@ module HammerCLIKatello
|
|
|
57
58
|
_("Content View Environment Labels"), Fields::Field
|
|
58
59
|
collection :content_view_environments, _('Content View Environments') do
|
|
59
60
|
from :content_view do
|
|
60
|
-
label
|
|
61
|
-
|
|
62
|
-
field :
|
|
63
|
-
|
|
64
|
-
field :
|
|
61
|
+
# Deprecated label. To be removed in future versions.
|
|
62
|
+
label _("Content view"), :sets => ['ALL'] do
|
|
63
|
+
field :id, _("Id"), Fields::Field,
|
|
64
|
+
:replaced_by => [_('Content Information'), _('Content View Environments'), _('CV Id')].join('/')
|
|
65
|
+
field :name, _("Name"), Fields::Field,
|
|
66
|
+
:replaced_by => [_('Content Information'), _('Content View Environments'), _('CV Name')].join('/')
|
|
67
|
+
field :composite, _("Composite"), Fields::Boolean,
|
|
68
|
+
:replaced_by => [_('Content Information'), _('Content View Environments'), _('Composite CV')].join('/')
|
|
69
|
+
field :rolling, _("Rolling"), Fields::Boolean,
|
|
70
|
+
:replaced_by => [_('Content Information'), _('Content View Environments'), _('Rolling CV')].join('/')
|
|
65
71
|
end
|
|
72
|
+
|
|
73
|
+
field :id, _("CV Id")
|
|
74
|
+
field :name, _("CV Name")
|
|
75
|
+
field :composite, _("Composite CV"), Fields::Boolean
|
|
76
|
+
field :rolling, _("Rolling CV"), Fields::Boolean
|
|
66
77
|
end
|
|
67
78
|
from :lifecycle_environment do
|
|
68
|
-
label
|
|
69
|
-
|
|
70
|
-
field :
|
|
79
|
+
# Deprecated label. To be removed in future versions.
|
|
80
|
+
label _("Lifecycle environment"), :sets => ['ALL'] do
|
|
81
|
+
field :id, _("Id"), Fields::Field,
|
|
82
|
+
:replaced_by => [_('Content Information'), _('Content View Environments'), _('LE Id')].join('/')
|
|
83
|
+
field :name, _("Name"), Fields::Field,
|
|
84
|
+
:replaced_by => [_('Content Information'), _('Content View Environments'), _('LE Name')].join('/')
|
|
71
85
|
end
|
|
86
|
+
|
|
87
|
+
field :id, _("LE Id")
|
|
88
|
+
field :name, _("LE Name")
|
|
72
89
|
end
|
|
73
90
|
field :label, _("Label")
|
|
74
91
|
end
|
|
@@ -138,3 +155,4 @@ module HammerCLIKatello
|
|
|
138
155
|
end
|
|
139
156
|
end
|
|
140
157
|
end
|
|
158
|
+
# rubocop:enable Metrics/ModuleLength
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hammer_cli_katello
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.17.
|
|
4
|
+
version: 1.17.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adam Price
|
|
@@ -37,7 +37,7 @@ authors:
|
|
|
37
37
|
autorequire:
|
|
38
38
|
bindir: bin
|
|
39
39
|
cert_chain: []
|
|
40
|
-
date: 2025-
|
|
40
|
+
date: 2025-11-25 00:00:00.000000000 Z
|
|
41
41
|
dependencies:
|
|
42
42
|
- !ruby/object:Gem::Dependency
|
|
43
43
|
name: csv
|
|
@@ -564,7 +564,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
564
564
|
- !ruby/object:Gem::Version
|
|
565
565
|
version: '0'
|
|
566
566
|
requirements: []
|
|
567
|
-
rubygems_version: 3.
|
|
567
|
+
rubygems_version: 3.2.33
|
|
568
568
|
signing_key:
|
|
569
569
|
specification_version: 4
|
|
570
570
|
summary: Katello commands for Hammer
|