hammer_cli_katello 1.17.1 → 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: ccd3f88de4919470d99fe785ad514ec780fef1e0b3754b378e496a52844bcd6c
4
- data.tar.gz: 7a9c219ff668ff1b6bffb465c1f4bc236f7f4022160e04b4292bf698aeffa156
3
+ metadata.gz: 11993d76a908604fa648d32b89a6405dab1273cfc13808d92183cfb518d40859
4
+ data.tar.gz: 13337e4418ed6180fea5b605271ccfda86d31b8751b1eed4db2a955b15d9b65f
5
5
  SHA512:
6
- metadata.gz: 03dc9e68f5676e8cf61b3d219501d3bd64f25b6d2950728fa03f1175d1ca582d6af1a45fb3c1196c96a551b8e6ecf10b105a33dacbb1f7cc15efacab18323f81
7
- data.tar.gz: ca04025daa063fccc7aaf21f88d4932253af4b3ada5836b9de4a81a2fe16be9536bdfae0be11829b04a646b0f32b7b7bb7f50101de18142ca5974cd58b70775f
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
- option "--force", "FORCE", _("Force the override. Required for overrides other than 'enabled'"),
12
- :attribute_name => :option_force, default: false
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
@@ -1,5 +1,5 @@
1
1
  module HammerCLIKatello
2
2
  def self.version
3
- @version ||= Gem::Version.new('1.17.1')
3
+ @version ||= Gem::Version.new('1.18.0')
4
4
  end
5
5
  end
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.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: 2025-05-29 00:00:00.000000000 Z
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.2.33
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: