hammer_cli_katello 1.17.0 → 1.18.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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11993d76a908604fa648d32b89a6405dab1273cfc13808d92183cfb518d40859
|
4
|
+
data.tar.gz: 13337e4418ed6180fea5b605271ccfda86d31b8751b1eed4db2a955b15d9b65f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6abba75efa7d9fb8a04af2f47ad41fa22a5ac57672b53574dfcf903fc51f0221fb9b3a235dc87bfe0a048cdac632511a49cfb859cd37b8f9adc89612a394fdfc
|
7
|
+
data.tar.gz: e11518844534a627761185fa3348f9029295da5afd45474cbefe42dd5db8360c8ce1c7cb970f94333e7e4b141076c16c037b8e3fc588ef27da6ed8c6878d10eb
|
@@ -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
|
@@ -49,6 +49,7 @@ module HammerCLIKatello
|
|
49
49
|
field :start_date, _("Start Date"), Fields::Field, :hide_blank => true
|
50
50
|
field :end_date, _("End Date"), Fields::Field, :hide_blank => true
|
51
51
|
field :types, _("Types"), Fields::List, :hide_blank => true
|
52
|
+
field :module_stream_id, _("Module Stream ID"), Fields::Field, :hide_blank => true
|
52
53
|
field :created_at, _("Created"), Fields::Date
|
53
54
|
field :updated_at, _("Updated"), Fields::Date
|
54
55
|
end
|
@@ -19,6 +19,7 @@ module HammerCLIKatello
|
|
19
19
|
field :errata_id, _("Errata ID")
|
20
20
|
field :start_date, _("Start Date")
|
21
21
|
field :end_date, _("End Date")
|
22
|
+
field :module_stream_id, _("Module Stream ID")
|
22
23
|
end
|
23
24
|
|
24
25
|
build_options
|
@@ -41,6 +42,7 @@ module HammerCLIKatello
|
|
41
42
|
field :end_date, _("End Date"), Fields::Field, :hide_blank => true
|
42
43
|
field :date_type, _("Date Type"), Fields::Field, :hide_blank => true
|
43
44
|
field :types, _("Types"), Fields::List, :hide_blank => true
|
45
|
+
field :module_stream_id, _("Module Stream ID"), Fields::Field, :hide_blank => true
|
44
46
|
field :created_at, _("Created"), Fields::Date
|
45
47
|
field :updated_at, _("Updated"), Fields::Date
|
46
48
|
end
|
@@ -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.
|
4
|
+
version: 1.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Price
|
@@ -34,10 +34,9 @@ authors:
|
|
34
34
|
- Tom McKay
|
35
35
|
- Walden Raines
|
36
36
|
- Zach Huntington-Meath
|
37
|
-
autorequire:
|
38
37
|
bindir: bin
|
39
38
|
cert_chain: []
|
40
|
-
date:
|
39
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
41
40
|
dependencies:
|
42
41
|
- !ruby/object:Gem::Dependency
|
43
42
|
name: csv
|
@@ -546,7 +545,6 @@ homepage: https://github.com/Katello/hammer-cli-katello
|
|
546
545
|
licenses:
|
547
546
|
- GPL-3.0-or-later
|
548
547
|
metadata: {}
|
549
|
-
post_install_message:
|
550
548
|
rdoc_options: []
|
551
549
|
require_paths:
|
552
550
|
- lib
|
@@ -564,8 +562,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
564
562
|
- !ruby/object:Gem::Version
|
565
563
|
version: '0'
|
566
564
|
requirements: []
|
567
|
-
rubygems_version: 3.
|
568
|
-
signing_key:
|
565
|
+
rubygems_version: 3.6.7
|
569
566
|
specification_version: 4
|
570
567
|
summary: Katello commands for Hammer
|
571
568
|
test_files:
|