hammer_cli_foreman_scc_manager 0.3.0 → 0.5.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: '098592a2d2d649ba3440f4944171b6c6ce74d3b338a14b24624ef7a8d6545948'
4
- data.tar.gz: 921f852c59531d4d73aeadb63c3b34300ffb465f37668023dec1e788eca51ca7
3
+ metadata.gz: 44cd681947325ae1233068515d1eb54f5415fd4ac9bd88c480f71dbb1d14bd85
4
+ data.tar.gz: 9d5da152f721204a7dee1b08380f4943f6eafda3df8dfba327a1565b47dd5f4c
5
5
  SHA512:
6
- metadata.gz: 4dca2a4e117d59ceaf3a8e013fbc6427f007de66eab6f1280f99479504186548d9256295fe16f3be24bc2dbb980288516f3c1de3b4185042bed54611bf1fb30c
7
- data.tar.gz: 970cccfc2e3416f6dbb53b737c9e45df487b86117f1de03f44f227f295e84d0b803b171ae7713d14de82f20d58c75d50f265ea5939bbda5336f3d92f053f2d60
6
+ metadata.gz: d3a30beeb4faa821eed3734533428431619b3a33ebf7a64db039487f468dcbe492ae64cc4c7177f71a5e74d8d4dcb6474b9fec7f3f606e77ccd3828de2ba5d69
7
+ data.tar.gz: a245499bb965a554a9e3d56daa02d7fb6aad00491d627b93366df06af18591db2f05609dc1ed644d9a6063ade1f704bed2a0cf812d5c569f3d61927b386ed1ec
@@ -6,7 +6,7 @@ module HammerCLIForemanSCCManager
6
6
 
7
7
  # include scc products as sub command of scc account
8
8
  lazy_subcommand(
9
- 'scc_products',
9
+ %w[scc-products scc_products],
10
10
  'Subcommands for SCC products',
11
11
  'HammerCLIForemanSCCManager::SCCProductsCommand',
12
12
  'hammer_cli_foreman_scc_manager/scc_product'
@@ -26,28 +26,37 @@ module HammerCLIForemanSCCManager
26
26
 
27
27
  class InfoCommand < HammerCLIForeman::InfoCommand
28
28
  output SCCAccountsCommand::ListCommand.output_definition
29
- build_options
29
+
30
+ build_options do |o|
31
+ o.expand.including(:organizations)
32
+ end
30
33
  end
31
34
 
32
35
  class CreateCommand < HammerCLIForeman::CreateCommand
33
36
  success_message _('SCC account created.')
34
37
  failure_message _('Could not create SCC account')
35
38
 
36
- build_options
39
+ build_options do |o|
40
+ o.expand.including(:organizations)
41
+ end
37
42
  end
38
43
 
39
44
  class DeleteCommand < HammerCLIForeman::DeleteCommand
40
45
  success_message _('SCC account [%{name}] was deleted.')
41
46
  failure_message _('Could not delete the account')
42
47
 
43
- build_options
48
+ build_options do |o|
49
+ o.expand.including(:organizations)
50
+ end
44
51
  end
45
52
 
46
53
  class UpdateCommand < HammerCLIForeman::UpdateCommand
47
54
  success_message _('SCC account [%{name}] updated.')
48
55
  failure_message _('Could not update the SCC account')
49
56
 
50
- build_options
57
+ build_options do |o|
58
+ o.expand.including(:organizations)
59
+ end
51
60
  end
52
61
 
53
62
  class SyncCommand < HammerCLIForeman::Command
@@ -70,27 +79,33 @@ module HammerCLIForemanSCCManager
70
79
  HammerCLI::EX_TEMPFAIL
71
80
  end
72
81
 
73
- build_options
82
+ build_options do |o|
83
+ o.expand.including(:organizations)
84
+ end
74
85
  end
75
86
 
76
87
  class TestConnectionCommand < HammerCLIForeman::Command
77
88
  action :test_connection
78
- command_name 'test_connection'
89
+ command_names 'test-connection', 'test_connection'
79
90
 
80
91
  success_message _('Testing connection for SCC account succeeded.')
81
92
  failure_message _('Testing connection for SCC account failed')
82
93
 
83
- build_options
94
+ build_options do |o|
95
+ o.expand.including(:organizations)
96
+ end
84
97
  end
85
98
 
86
99
  class BulkSubscribeCommand < HammerCLIForeman::Command
87
100
  action :bulk_subscribe
88
- command_name 'bulk_subscribe'
101
+ command_names 'bulk-subscribe', 'bulk_subscribe'
89
102
 
90
103
  success_message _('Bulk subscribing successfully started.')
91
104
  failure_message _('Bulk subscription failed')
92
105
 
93
- build_options
106
+ build_options do |o|
107
+ o.expand.including(:organizations)
108
+ end
94
109
  end
95
110
 
96
111
  autoload_subcommands
@@ -3,7 +3,7 @@
3
3
  module HammerCLIForemanSCCManager
4
4
  class SCCManagerCommand < HammerCLI::AbstractCommand
5
5
  lazy_subcommand(
6
- 'scc_accounts',
6
+ %w[scc-accounts scc_accounts],
7
7
  _('Manage SCC accounts'),
8
8
  'HammerCLIForemanSCCManager::SCCAccountsCommand',
9
9
  'hammer_cli_foreman_scc_manager/scc_account'
@@ -15,12 +15,21 @@ module HammerCLIForemanSCCManager
15
15
  field :description, _('Product description')
16
16
  end
17
17
 
18
- build_options
18
+ option '--scc-account-id', 'SCC account id', _('Id of associated scc account')
19
+
20
+ build_options do |o|
21
+ o.without('scc_account_id')
22
+ end
19
23
  end
20
24
 
21
25
  class InfoCommand < HammerCLIForeman::InfoCommand
22
26
  output SCCProductsCommand::ListCommand.output_definition
23
- build_options
27
+
28
+ option '--scc-account-id', 'SCC account id', _('Id of associated scc account')
29
+
30
+ build_options do |o|
31
+ o.without('scc_account_id')
32
+ end
24
33
  end
25
34
 
26
35
  class SubscribeProductCommand < HammerCLIForeman::Command
@@ -30,7 +39,11 @@ module HammerCLIForemanSCCManager
30
39
  success_message _('Subscribing to product succeeded.')
31
40
  failure_message _('Subscribing to product failed')
32
41
 
33
- build_options
42
+ option '--scc-account-id', 'SCC account id', _('Id of associated scc account')
43
+
44
+ build_options do |o|
45
+ o.without('scc_account_id')
46
+ end
34
47
  end
35
48
  autoload_subcommands
36
49
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module HammerCLIForemanSCCManager
4
4
  def self.version
5
- @version ||= Gem::Version.new '0.3.0'
5
+ @version ||= Gem::Version.new '0.5.0'
6
6
  end
7
7
  end
@@ -7,7 +7,7 @@ module HammerCLIForemanSCCManager
7
7
  require 'hammer_cli_foreman_scc_manager/scc_account'
8
8
 
9
9
  HammerCLI::MainCommand.lazy_subcommand(
10
- 'scc_manager',
10
+ %w[scc-manager scc_manager],
11
11
  'Manage SUSE accounts and product subscriptions',
12
12
  'HammerCLIForemanSCCManager::SCCManagerCommand',
13
13
  'hammer_cli_foreman_scc_manager/scc_manager'
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_foreman_scc_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nadja Heitmann
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-08-22 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: hammer_cli_foreman
@@ -24,20 +23,6 @@ dependencies:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
25
  version: '3.10'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "<"
32
- - !ruby/object:Gem::Version
33
- version: '2.5'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "<"
39
- - !ruby/object:Gem::Version
40
- version: '2.5'
41
26
  - !ruby/object:Gem::Dependency
42
27
  name: minitest
43
28
  requirement: !ruby/object:Gem::Requirement
@@ -94,7 +79,6 @@ dependencies:
94
79
  - - "~>"
95
80
  - !ruby/object:Gem::Version
96
81
  version: 0.1.2
97
- description:
98
82
  email:
99
83
  - heitmann@atix.de
100
84
  executables: []
@@ -115,9 +99,8 @@ files:
115
99
  - test/test_helper.rb
116
100
  homepage: https://github.com/ATIX-AG/hammer-cli-foreman-scc-manager
117
101
  licenses:
118
- - GPL-3.0
102
+ - GPL-3.0-only
119
103
  metadata: {}
120
- post_install_message:
121
104
  rdoc_options: []
122
105
  require_paths:
123
106
  - lib
@@ -135,8 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
118
  - !ruby/object:Gem::Version
136
119
  version: '0'
137
120
  requirements: []
138
- rubygems_version: 3.3.27
139
- signing_key:
121
+ rubygems_version: 3.6.9
140
122
  specification_version: 4
141
123
  summary: Foreman SCC Manager plugin for Hammer CLI
142
124
  test_files: