hammer_cli_foreman_scc_manager 0.4.0 → 0.6.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: 62f84b8ad105d6619e70199de5a4d10e3ab8bfe9d5093a9c7fec018bd4ffc76d
4
- data.tar.gz: 9563045a8d4713871766a6765271dd580e9d4a81b7877d341240e4c194f4817b
3
+ metadata.gz: b291a524a01134fcdf3adbb819c1061b8e4805731d87176b32639ccf3406006d
4
+ data.tar.gz: 40cded165637e6ee794907177292a212171fd8855ee3de627a175f323cbfddf3
5
5
  SHA512:
6
- metadata.gz: d78d17835f938917fb4c189c60927dcf6bfeffdc82c6e6ecf8bbd962fe9a7d78e2a77a51f7949ca1509a497b83ee5deb9a829b9c230d177e8af53f4eb8c8eda9
7
- data.tar.gz: 62b38f4ce283879c4a448499e56353e550c651f23268b311a45ebc0f4a8cdcab4b0fbc0909e1b544c6b81ad40f66607fa0a7ff5583ce4f4966e12116b2d234c6
6
+ metadata.gz: 82f1c6e9c605ba2b851a63f3ac454d7f57e7dd64faf340a8c85b95b16e9e10a2cdd95da9da6918e0bee64ed1dc0822edbd4b27632e64ff482643b0c8d2d1d800
7
+ data.tar.gz: e69ffd0c7b121e5f1bcb90b8abe82a85557ce34c991175c8d5aeb164e7d643d0c934d211365012723d94d9e2ca0b83682ce449ef2000d0a08aac23c8ada13760
@@ -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'
@@ -25,29 +25,42 @@ module HammerCLIForemanSCCManager
25
25
  end
26
26
 
27
27
  class InfoCommand < HammerCLIForeman::InfoCommand
28
- output SCCAccountsCommand::ListCommand.output_definition
29
- build_options
28
+ output SCCAccountsCommand::ListCommand.output_definition do
29
+ field :download_policy, _('Download policy')
30
+ field :mirroring_policy, _('Mirroring policy')
31
+ field :katello_gpg_key_id, _('Katello GPG Key')
32
+ end
33
+
34
+ build_options do |o|
35
+ o.expand.including(:organizations)
36
+ end
30
37
  end
31
38
 
32
39
  class CreateCommand < HammerCLIForeman::CreateCommand
33
40
  success_message _('SCC account created.')
34
41
  failure_message _('Could not create SCC account')
35
42
 
36
- build_options
43
+ build_options do |o|
44
+ o.expand.including(:organizations)
45
+ end
37
46
  end
38
47
 
39
48
  class DeleteCommand < HammerCLIForeman::DeleteCommand
40
49
  success_message _('SCC account [%{name}] was deleted.')
41
50
  failure_message _('Could not delete the account')
42
51
 
43
- build_options
52
+ build_options do |o|
53
+ o.expand.including(:organizations)
54
+ end
44
55
  end
45
56
 
46
57
  class UpdateCommand < HammerCLIForeman::UpdateCommand
47
58
  success_message _('SCC account [%{name}] updated.')
48
59
  failure_message _('Could not update the SCC account')
49
60
 
50
- build_options
61
+ build_options do |o|
62
+ o.expand.including(:organizations)
63
+ end
51
64
  end
52
65
 
53
66
  class SyncCommand < HammerCLIForeman::Command
@@ -70,27 +83,33 @@ module HammerCLIForemanSCCManager
70
83
  HammerCLI::EX_TEMPFAIL
71
84
  end
72
85
 
73
- build_options
86
+ build_options do |o|
87
+ o.expand.including(:organizations)
88
+ end
74
89
  end
75
90
 
76
91
  class TestConnectionCommand < HammerCLIForeman::Command
77
92
  action :test_connection
78
- command_name 'test_connection'
93
+ command_names 'test-connection', 'test_connection'
79
94
 
80
95
  success_message _('Testing connection for SCC account succeeded.')
81
96
  failure_message _('Testing connection for SCC account failed')
82
97
 
83
- build_options
98
+ build_options do |o|
99
+ o.expand.including(:organizations)
100
+ end
84
101
  end
85
102
 
86
103
  class BulkSubscribeCommand < HammerCLIForeman::Command
87
104
  action :bulk_subscribe
88
- command_name 'bulk_subscribe'
105
+ command_names 'bulk-subscribe', 'bulk_subscribe'
89
106
 
90
107
  success_message _('Bulk subscribing successfully started.')
91
108
  failure_message _('Bulk subscription failed')
92
109
 
93
- build_options
110
+ build_options do |o|
111
+ o.expand.including(:organizations)
112
+ end
94
113
  end
95
114
 
96
115
  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'
@@ -39,7 +39,11 @@ module HammerCLIForemanSCCManager
39
39
  success_message _('Subscribing to product succeeded.')
40
40
  failure_message _('Subscribing to product failed')
41
41
 
42
- 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
43
47
  end
44
48
  autoload_subcommands
45
49
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module HammerCLIForemanSCCManager
4
4
  def self.version
5
- @version ||= Gem::Version.new '0.4.0'
5
+ @version ||= Gem::Version.new '0.6.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'
@@ -1,21 +1,21 @@
1
- # English translations for hammer_cli_foreman_scc_manager package.
2
- # Copyright (C) 2023 THE PACKAGE'S COPYRIGHT HOLDER
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
3
  # This file is distributed under the same license as the hammer_cli_foreman_scc_manager package.
4
- # FIRST AUTHOR <EMAIL@ADDRESS>, 2023.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: hammer_cli_foreman_scc_manager 0.1.0\n"
8
+ "Project-Id-Version: hammer_cli_foreman_scc_manager 0.5.0\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
+ "POT-Creation-Date: 2026-03-02 07:04+0000\n"
10
11
  "PO-Revision-Date: 2023-07-12 16:25+0000\n"
11
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
12
- "Language-Team: English\n"
13
- "Language: en\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+ "Language: \n"
14
15
  "MIME-Version: 1.0\n"
15
16
  "Content-Type: text/plain; charset=UTF-8\n"
16
17
  "Content-Transfer-Encoding: 8bit\n"
17
- "Plural-Forms: nplurals=; plural=;\n"
18
- "\n"
18
+ "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
19
19
 
20
20
  msgid "SCC account name"
21
21
  msgstr ""
@@ -35,6 +35,15 @@ msgstr ""
35
35
  msgid "Sync date"
36
36
  msgstr ""
37
37
 
38
+ msgid "Download policy"
39
+ msgstr ""
40
+
41
+ msgid "Mirroring policy"
42
+ msgstr ""
43
+
44
+ msgid "Katello GPG Key"
45
+ msgstr ""
46
+
38
47
  msgid "SCC account created."
39
48
  msgstr ""
40
49
 
@@ -104,6 +113,9 @@ msgstr ""
104
113
  msgid "Product description"
105
114
  msgstr ""
106
115
 
116
+ msgid "Id of associated scc account"
117
+ msgstr ""
118
+
107
119
  msgid "Subscribing to product succeeded."
108
120
  msgstr ""
109
121
 
@@ -0,0 +1,116 @@
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the hammer_cli_foreman_scc_manager package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ # Translators:
7
+ # Andi Chandler <andi@gowling.com>, 2025
8
+ #
9
+ #, fuzzy
10
+ msgid ""
11
+ msgstr ""
12
+ "Project-Id-Version: hammer_cli_foreman_scc_manager 0.5.0\n"
13
+ "Report-Msgid-Bugs-To: \n"
14
+ "POT-Creation-Date: 2023-07-12 16:25+0000\n"
15
+ "PO-Revision-Date: 2025-01-07 15:00+0000\n"
16
+ "Last-Translator: Andi Chandler <andi@gowling.com>, 2025\n"
17
+ "Language-Team: English (United Kingdom) (https://app.transifex.com/foreman/"
18
+ "teams/114/en_GB/)\n"
19
+ "MIME-Version: 1.0\n"
20
+ "Content-Type: text/plain; charset=UTF-8\n"
21
+ "Content-Transfer-Encoding: 8bit\n"
22
+ "Language: en_GB\n"
23
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
24
+
25
+ msgid "SCC account name"
26
+ msgstr "SCC account name"
27
+
28
+ msgid "SCC account id"
29
+ msgstr "SCC account id"
30
+
31
+ msgid "Organization name"
32
+ msgstr "Organisation name"
33
+
34
+ msgid "Base URL"
35
+ msgstr "Base URL"
36
+
37
+ msgid "Sync interval"
38
+ msgstr "Sync interval"
39
+
40
+ msgid "Sync date"
41
+ msgstr "Sync date"
42
+
43
+ msgid "SCC account created."
44
+ msgstr "SCC account created."
45
+
46
+ msgid "Could not create SCC account"
47
+ msgstr "Could not create SCC account"
48
+
49
+ msgid "SCC account [%{name}] was deleted."
50
+ msgstr "SCC account [%{name}] was deleted."
51
+
52
+ msgid "Could not delete the account"
53
+ msgstr "Could not delete the account"
54
+
55
+ msgid "SCC account [%{name}] updated."
56
+ msgstr "SCC account [%{name}] updated."
57
+
58
+ msgid "Could not update the SCC account"
59
+ msgstr "Could not update the SCC account"
60
+
61
+ msgid "Could not sync SCC account [%{name}]"
62
+ msgstr "Could not sync SCC account [%{name}]"
63
+
64
+ msgid "Started at: %{param}"
65
+ msgstr "Started at: %{param}"
66
+
67
+ msgid "State: %{param}"
68
+ msgstr "State: %{param}"
69
+
70
+ msgid "State updated at: %{param}"
71
+ msgstr "State updated at: %{param}"
72
+
73
+ msgid "Task ID: %{param}"
74
+ msgstr "Task ID: %{param}"
75
+
76
+ msgid "Sync process failed, error: %{param}"
77
+ msgstr "Sync process failed, error: %{param}"
78
+
79
+ msgid "Testing connection for SCC account succeeded."
80
+ msgstr "Testing connection for SCC account succeeded."
81
+
82
+ msgid "Testing connection for SCC account failed"
83
+ msgstr "Testing connection for SCC account failed"
84
+
85
+ msgid "Bulk subscribing successfully started."
86
+ msgstr "Bulk subscribing successfully started."
87
+
88
+ msgid "Bulk subscription failed"
89
+ msgstr "Bulk subscription failed"
90
+
91
+ msgid "Manage SCC accounts"
92
+ msgstr "Manage SCC accounts"
93
+
94
+ msgid "Id"
95
+ msgstr "Id"
96
+
97
+ msgid "Product name"
98
+ msgstr "Product name"
99
+
100
+ msgid "Friendly product name"
101
+ msgstr "Friendly product name"
102
+
103
+ msgid "Architecture"
104
+ msgstr "Architecture"
105
+
106
+ msgid "Katello product id"
107
+ msgstr "Katello product id"
108
+
109
+ msgid "Product description"
110
+ msgstr "Product description"
111
+
112
+ msgid "Subscribing to product succeeded."
113
+ msgstr "Subscribing to product succeeded."
114
+
115
+ msgid "Subscribing to product failed"
116
+ msgstr "Subscribing to product failed"
@@ -6,10 +6,10 @@
6
6
  #, fuzzy
7
7
  msgid ""
8
8
  msgstr ""
9
- "Project-Id-Version: hammer_cli_foreman_scc_manager 0.1.0\n"
9
+ "Project-Id-Version: hammer_cli_foreman_scc_manager 0.5.0\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2023-07-12 16:25+0000\n"
12
- "PO-Revision-Date: 2023-07-12 16:25+0000\n"
11
+ "POT-Creation-Date: 2026-03-02 07:04+0000\n"
12
+ "PO-Revision-Date: 2026-03-02 07:04+0000\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -43,67 +43,79 @@ msgstr ""
43
43
  msgid "Sync date"
44
44
  msgstr ""
45
45
 
46
- #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:33
46
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:29
47
+ msgid "Download policy"
48
+ msgstr ""
49
+
50
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:30
51
+ msgid "Mirroring policy"
52
+ msgstr ""
53
+
54
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:31
55
+ msgid "Katello GPG Key"
56
+ msgstr ""
57
+
58
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:40
47
59
  msgid "SCC account created."
48
60
  msgstr ""
49
61
 
50
- #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:34
62
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:41
51
63
  msgid "Could not create SCC account"
52
64
  msgstr ""
53
65
 
54
- #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:40
66
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:49
55
67
  msgid "SCC account [%{name}] was deleted."
56
68
  msgstr ""
57
69
 
58
- #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:41
70
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:50
59
71
  msgid "Could not delete the account"
60
72
  msgstr ""
61
73
 
62
- #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:47
74
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:58
63
75
  msgid "SCC account [%{name}] updated."
64
76
  msgstr ""
65
77
 
66
- #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:48
78
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:59
67
79
  msgid "Could not update the SCC account"
68
80
  msgstr ""
69
81
 
70
- #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:57
82
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:70
71
83
  msgid "Could not sync SCC account [%{name}]"
72
84
  msgstr ""
73
85
 
74
- #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:62
86
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:75
75
87
  msgid "Started at: %{param}"
76
88
  msgstr ""
77
89
 
78
- #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:63
90
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:76
79
91
  msgid "State: %{param}"
80
92
  msgstr ""
81
93
 
82
- #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:64
94
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:77
83
95
  msgid "State updated at: %{param}"
84
96
  msgstr ""
85
97
 
86
- #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:65
98
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:78
87
99
  msgid "Task ID: %{param}"
88
100
  msgstr ""
89
101
 
90
- #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:69
102
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:82
91
103
  msgid "Sync process failed, error: %{param}"
92
104
  msgstr ""
93
105
 
94
- #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:80
106
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:95
95
107
  msgid "Testing connection for SCC account succeeded."
96
108
  msgstr ""
97
109
 
98
- #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:81
110
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:96
99
111
  msgid "Testing connection for SCC account failed"
100
112
  msgstr ""
101
113
 
102
- #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:90
114
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:107
103
115
  msgid "Bulk subscribing successfully started."
104
116
  msgstr ""
105
117
 
106
- #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:91
118
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_account.rb:108
107
119
  msgid "Bulk subscription failed"
108
120
  msgstr ""
109
121
 
@@ -135,10 +147,16 @@ msgstr ""
135
147
  msgid "Product description"
136
148
  msgstr ""
137
149
 
138
- #: ../lib/hammer_cli_foreman_scc_manager/scc_product.rb:30
150
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_product.rb:18
151
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_product.rb:28
152
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_product.rb:42
153
+ msgid "Id of associated scc account"
154
+ msgstr ""
155
+
156
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_product.rb:39
139
157
  msgid "Subscribing to product succeeded."
140
158
  msgstr ""
141
159
 
142
- #: ../lib/hammer_cli_foreman_scc_manager/scc_product.rb:31
160
+ #: ../lib/hammer_cli_foreman_scc_manager/scc_product.rb:40
143
161
  msgid "Subscribing to product failed"
144
162
  msgstr ""
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_foreman_scc_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nadja Heitmann
@@ -43,14 +43,14 @@ dependencies:
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '12.0'
46
+ version: '13.0'
47
47
  type: :development
48
48
  prerelease: false
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '12.0'
53
+ version: '13.0'
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: rdoc
56
56
  requirement: !ruby/object:Gem::Requirement
@@ -94,7 +94,10 @@ files:
94
94
  - lib/hammer_cli_foreman_scc_manager/scc_manager.rb
95
95
  - lib/hammer_cli_foreman_scc_manager/scc_product.rb
96
96
  - lib/hammer_cli_foreman_scc_manager/version.rb
97
+ - locale/en/LC_MESSAGES/hammer_cli_foreman_scc_manager.mo
97
98
  - locale/en/hammer_cli_foreman_scc_manager.po
99
+ - locale/en_GB/LC_MESSAGES/hammer_cli_foreman_scc_manager.mo
100
+ - locale/en_GB/hammer_cli_foreman_scc_manager.po
98
101
  - locale/hammer_cli_foreman_scc_manager.pot
99
102
  - test/test_helper.rb
100
103
  homepage: https://github.com/ATIX-AG/hammer-cli-foreman-scc-manager
@@ -118,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
121
  - !ruby/object:Gem::Version
119
122
  version: '0'
120
123
  requirements: []
121
- rubygems_version: 3.6.9
124
+ rubygems_version: 4.0.3
122
125
  specification_version: 4
123
126
  summary: Foreman SCC Manager plugin for Hammer CLI
124
127
  test_files: