hammer_cli_foreman_scc_manager 0.4.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 +4 -4
- data/lib/hammer_cli_foreman_scc_manager/scc_account.rb +25 -10
- data/lib/hammer_cli_foreman_scc_manager/scc_manager.rb +1 -1
- data/lib/hammer_cli_foreman_scc_manager/scc_product.rb +5 -1
- data/lib/hammer_cli_foreman_scc_manager/version.rb +1 -1
- data/lib/hammer_cli_foreman_scc_manager.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44cd681947325ae1233068515d1eb54f5415fd4ac9bd88c480f71dbb1d14bd85
|
4
|
+
data.tar.gz: 9d5da152f721204a7dee1b08380f4943f6eafda3df8dfba327a1565b47dd5f4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
@@ -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
|
-
|
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'
|