hammer_cli_katello 0.13.6 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hammer_cli_katello.rb +6 -6
- data/lib/hammer_cli_katello/activation_key.rb +6 -6
- data/lib/hammer_cli_katello/associating_commands.rb +6 -6
- data/lib/hammer_cli_katello/capsule.rb +3 -3
- data/lib/hammer_cli_katello/content_override.rb +1 -1
- data/lib/hammer_cli_katello/content_view.rb +9 -9
- data/lib/hammer_cli_katello/content_view_component.rb +3 -3
- data/lib/hammer_cli_katello/content_view_puppet_module.rb +2 -2
- data/lib/hammer_cli_katello/content_view_version.rb +4 -4
- data/lib/hammer_cli_katello/filter.rb +3 -3
- data/lib/hammer_cli_katello/filter_rule.rb +3 -3
- data/lib/hammer_cli_katello/gpg_key.rb +3 -3
- data/lib/hammer_cli_katello/host_collection.rb +6 -6
- data/lib/hammer_cli_katello/host_errata.rb +1 -1
- data/lib/hammer_cli_katello/host_kickstart_repository_options.rb +3 -3
- data/lib/hammer_cli_katello/host_package.rb +4 -4
- data/lib/hammer_cli_katello/host_package_group.rb +2 -2
- data/lib/hammer_cli_katello/host_subscription.rb +5 -5
- data/lib/hammer_cli_katello/lifecycle_environment.rb +3 -3
- data/lib/hammer_cli_katello/organization.rb +3 -3
- data/lib/hammer_cli_katello/product.rb +8 -8
- data/lib/hammer_cli_katello/repository.rb +8 -8
- data/lib/hammer_cli_katello/repository_set.rb +2 -2
- data/lib/hammer_cli_katello/subscription.rb +3 -3
- data/lib/hammer_cli_katello/sync_plan.rb +3 -3
- data/lib/hammer_cli_katello/version.rb +1 -1
- data/test/data/3.7/foreman_api.json +1 -1
- data/test/data/3.8/foreman_api.json +1 -0
- data/test/functional/activation_key/content_override_test.rb +4 -4
- data/test/functional/content_view/create_test.rb +3 -3
- data/test/functional/content_view/filter/create_test.rb +2 -2
- data/test/functional/content_view/remove_test.rb +4 -4
- data/test/functional/host/errata/apply_test.rb +1 -1
- data/test/functional/host/subscription/attach_test.rb +2 -2
- data/test/functional/host/subscription/auto_attach_test.rb +1 -1
- data/test/functional/host/subscription/content_override_test.rb +4 -4
- data/test/functional/host/subscription/register_test.rb +2 -2
- data/test/functional/host/subscription/remove_test.rb +2 -2
- data/test/functional/host/subscription/unregister_test.rb +1 -1
- data/test/functional/repository/export_test.rb +10 -10
- data/test/functional/repository/synchronize_test.rb +3 -3
- data/test/test_helper.rb +1 -1
- metadata +15 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4ef8dac27e309571debdddb948696928de63007
|
4
|
+
data.tar.gz: 5900174695022c9164014e2952044b824ac1a728
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c48f6e89596376521ea42deddc289fc119fad5470ea6b848f0b7e353e5849641d035efaf010c8ec8a55462e121624db635eb1651d42994bbe31995668158f61
|
7
|
+
data.tar.gz: 788183af7a6811184d0acdd93fd1414549ded7c69866c6dc61e6a7ddebb83ec58a141f059453e1ee71e26d155f084ad7ef89f465cc0a5d05bd707b2bb9588045
|
data/lib/hammer_cli_katello.rb
CHANGED
@@ -28,7 +28,7 @@ module HammerCLIKatello
|
|
28
28
|
require 'hammer_cli_katello/id_name_options_validator'
|
29
29
|
|
30
30
|
# commands
|
31
|
-
HammerCLI::MainCommand.lazy_subcommand("activation-key", _("Manipulate activation keys
|
31
|
+
HammerCLI::MainCommand.lazy_subcommand("activation-key", _("Manipulate activation keys"),
|
32
32
|
'HammerCLIKatello::ActivationKeyCommand',
|
33
33
|
'hammer_cli_katello/activation_key'
|
34
34
|
)
|
@@ -54,12 +54,12 @@ module HammerCLIKatello
|
|
54
54
|
'hammer_cli_katello/ping'
|
55
55
|
)
|
56
56
|
|
57
|
-
HammerCLI::MainCommand.lazy_subcommand("product", _("Manipulate products
|
57
|
+
HammerCLI::MainCommand.lazy_subcommand("product", _("Manipulate products"),
|
58
58
|
'HammerCLIKatello::Product',
|
59
59
|
'hammer_cli_katello/product'
|
60
60
|
)
|
61
61
|
|
62
|
-
HammerCLI::MainCommand.lazy_subcommand("puppet-module", _("View Puppet Module details
|
62
|
+
HammerCLI::MainCommand.lazy_subcommand("puppet-module", _("View Puppet Module details"),
|
63
63
|
'HammerCLIKatello::PuppetModule',
|
64
64
|
'hammer_cli_katello/puppet_module'
|
65
65
|
)
|
@@ -75,7 +75,7 @@ module HammerCLIKatello
|
|
75
75
|
'hammer_cli_katello/repository_set'
|
76
76
|
)
|
77
77
|
|
78
|
-
HammerCLI::MainCommand.lazy_subcommand("subscription", _("Manipulate subscriptions
|
78
|
+
HammerCLI::MainCommand.lazy_subcommand("subscription", _("Manipulate subscriptions"),
|
79
79
|
'HammerCLIKatello::SubscriptionCommand',
|
80
80
|
'hammer_cli_katello/subscription'
|
81
81
|
)
|
@@ -90,7 +90,7 @@ module HammerCLIKatello
|
|
90
90
|
'hammer_cli_katello/host_collection'
|
91
91
|
)
|
92
92
|
|
93
|
-
HammerCLI::MainCommand.lazy_subcommand("content-view", _("Manipulate content views
|
93
|
+
HammerCLI::MainCommand.lazy_subcommand("content-view", _("Manipulate content views"),
|
94
94
|
'HammerCLIKatello::ContentView',
|
95
95
|
'hammer_cli_katello/content_view'
|
96
96
|
)
|
@@ -101,7 +101,7 @@ module HammerCLIKatello
|
|
101
101
|
'hammer_cli_foreman/smart_proxy'
|
102
102
|
)
|
103
103
|
|
104
|
-
HammerCLI::MainCommand.lazy_subcommand("package", _("Manipulate packages
|
104
|
+
HammerCLI::MainCommand.lazy_subcommand("package", _("Manipulate packages"),
|
105
105
|
'HammerCLIKatello::PackageCommand',
|
106
106
|
'hammer_cli_katello/package'
|
107
107
|
)
|
@@ -85,7 +85,7 @@ module HammerCLIKatello
|
|
85
85
|
include LifecycleEnvironmentNameMapping
|
86
86
|
include LifecycleEnvironmentNameResolvable
|
87
87
|
action :create
|
88
|
-
success_message _("Activation key created")
|
88
|
+
success_message _("Activation key created.")
|
89
89
|
failure_message _("Could not create the activation key")
|
90
90
|
|
91
91
|
option "--unlimited-hosts", :flag, "Set hosts max to unlimited"
|
@@ -107,7 +107,7 @@ module HammerCLIKatello
|
|
107
107
|
|
108
108
|
build_options
|
109
109
|
|
110
|
-
success_message _("Activation key copied")
|
110
|
+
success_message _("Activation key copied.")
|
111
111
|
failure_message _("Could not copy the activation key")
|
112
112
|
end
|
113
113
|
|
@@ -115,7 +115,7 @@ module HammerCLIKatello
|
|
115
115
|
include LifecycleEnvironmentNameMapping
|
116
116
|
include LifecycleEnvironmentNameResolvable
|
117
117
|
action :update
|
118
|
-
success_message _("Activation key updated")
|
118
|
+
success_message _("Activation key updated.")
|
119
119
|
failure_message _("Could not update the activation key")
|
120
120
|
|
121
121
|
option "--unlimited-hosts", :flag, "set hosts max to unlimited"
|
@@ -131,7 +131,7 @@ module HammerCLIKatello
|
|
131
131
|
include LifecycleEnvironmentNameMapping
|
132
132
|
include LifecycleEnvironmentNameResolvable
|
133
133
|
action :destroy
|
134
|
-
success_message _("Activation key deleted")
|
134
|
+
success_message _("Activation key deleted.")
|
135
135
|
failure_message _("Could not delete the activation key")
|
136
136
|
|
137
137
|
build_options
|
@@ -180,7 +180,7 @@ module HammerCLIKatello
|
|
180
180
|
o.without(:subscriptions)
|
181
181
|
end
|
182
182
|
|
183
|
-
success_message _("Subscription added to activation key")
|
183
|
+
success_message _("Subscription added to activation key.")
|
184
184
|
failure_message _("Could not add subscription to activation key")
|
185
185
|
end
|
186
186
|
|
@@ -198,7 +198,7 @@ module HammerCLIKatello
|
|
198
198
|
o.without(:subscriptions)
|
199
199
|
end
|
200
200
|
|
201
|
-
success_message _("Subscription removed from activation key")
|
201
|
+
success_message _("Subscription removed from activation key.")
|
202
202
|
failure_message _("Could not remove subscription from activation key")
|
203
203
|
end
|
204
204
|
|
@@ -33,7 +33,7 @@ module HammerCLIKatello
|
|
33
33
|
validator.any(:option_repository_id, :option_repository_name).required
|
34
34
|
end
|
35
35
|
|
36
|
-
success_message _("The repository has been associated")
|
36
|
+
success_message _("The repository has been associated.")
|
37
37
|
failure_message _("Could not add repository")
|
38
38
|
end
|
39
39
|
|
@@ -49,7 +49,7 @@ module HammerCLIKatello
|
|
49
49
|
validator.any(:option_repository_id, :option_repository_name).required
|
50
50
|
end
|
51
51
|
|
52
|
-
success_message _("The repository has been removed")
|
52
|
+
success_message _("The repository has been removed.")
|
53
53
|
failure_message _("Could not remove repository")
|
54
54
|
end
|
55
55
|
end
|
@@ -61,7 +61,7 @@ module HammerCLIKatello
|
|
61
61
|
command_name 'add-host-collection'
|
62
62
|
associated_resource :host_collections
|
63
63
|
|
64
|
-
success_message _("The host collection has been associated")
|
64
|
+
success_message _("The host collection has been associated.")
|
65
65
|
failure_message _("Could not add host collection")
|
66
66
|
end
|
67
67
|
|
@@ -69,7 +69,7 @@ module HammerCLIKatello
|
|
69
69
|
command_name 'remove-host-collection'
|
70
70
|
associated_resource :host_collections
|
71
71
|
|
72
|
-
success_message _("The host collection has been removed")
|
72
|
+
success_message _("The host collection has been removed.")
|
73
73
|
failure_message _("Could not remove host collection")
|
74
74
|
end
|
75
75
|
end
|
@@ -81,7 +81,7 @@ module HammerCLIKatello
|
|
81
81
|
command_name 'add-host'
|
82
82
|
associated_resource :hosts
|
83
83
|
|
84
|
-
success_message _("The host has been added")
|
84
|
+
success_message _("The host has been added.")
|
85
85
|
failure_message _("Could not add host")
|
86
86
|
end
|
87
87
|
|
@@ -89,7 +89,7 @@ module HammerCLIKatello
|
|
89
89
|
command_name 'remove-host'
|
90
90
|
associated_resource :hosts
|
91
91
|
|
92
|
-
success_message _("The host has been removed")
|
92
|
+
success_message _("The host has been removed.")
|
93
93
|
failure_message _("Could not remove host")
|
94
94
|
end
|
95
95
|
end
|
@@ -43,7 +43,7 @@ module HammerCLIKatello
|
|
43
43
|
resource :capsule_content, :add_lifecycle_environment
|
44
44
|
command_name 'add-lifecycle-environment'
|
45
45
|
|
46
|
-
success_message _("Lifecycle environment successfully added to the capsule")
|
46
|
+
success_message _("Lifecycle environment successfully added to the capsule.")
|
47
47
|
failure_message _("Could not add the lifecycle environment to the capsule")
|
48
48
|
|
49
49
|
option "--organization-id", "ID", _("Organization ID"),
|
@@ -58,7 +58,7 @@ module HammerCLIKatello
|
|
58
58
|
resource :capsule_content, :remove_lifecycle_environment
|
59
59
|
command_name 'remove-lifecycle-environment'
|
60
60
|
|
61
|
-
success_message _("Lifecycle environment successfully removed from the capsule")
|
61
|
+
success_message _("Lifecycle environment successfully removed from the capsule.")
|
62
62
|
failure_message _("Could not remove the lifecycle environment from the capsule")
|
63
63
|
|
64
64
|
option "--organization-id", "ID", _("Organization ID"),
|
@@ -74,7 +74,7 @@ module HammerCLIKatello
|
|
74
74
|
resource :capsule_content, :sync
|
75
75
|
command_name "synchronize"
|
76
76
|
|
77
|
-
success_message _("Capsule content is being synchronized in task %{id}")
|
77
|
+
success_message _("Capsule content is being synchronized in task %{id}.")
|
78
78
|
failure_message _("Could not synchronize capsule content")
|
79
79
|
|
80
80
|
option "--organization-id", "ID", _("Organization ID"),
|
@@ -5,7 +5,7 @@ module HammerCLIKatello
|
|
5
5
|
desc _("Override product content defaults")
|
6
6
|
command_name "content-override"
|
7
7
|
|
8
|
-
success_message _("Updated content override")
|
8
|
+
success_message _("Updated content override.")
|
9
9
|
failure_message _("Could not update content override")
|
10
10
|
|
11
11
|
option "--content-label", "CONTENT_LABEL", _("Label of the content"),
|
@@ -98,7 +98,7 @@ module HammerCLIKatello
|
|
98
98
|
end
|
99
99
|
|
100
100
|
class CreateCommand < HammerCLIKatello::CreateCommand
|
101
|
-
success_message _("Content view created")
|
101
|
+
success_message _("Content view created.")
|
102
102
|
failure_message _("Could not create the content view")
|
103
103
|
|
104
104
|
option ["--composite"], :flag, _("Create a composite content view")
|
@@ -155,14 +155,14 @@ module HammerCLIKatello
|
|
155
155
|
|
156
156
|
build_options
|
157
157
|
|
158
|
-
success_message _("Content view copied")
|
158
|
+
success_message _("Content view copied.")
|
159
159
|
failure_message _("Could not copy the content view")
|
160
160
|
end
|
161
161
|
|
162
162
|
class UpdateCommand < HammerCLIKatello::UpdateCommand
|
163
163
|
include OrganizationOptions
|
164
164
|
|
165
|
-
success_message _("Content view updated")
|
165
|
+
success_message _("Content view updated.")
|
166
166
|
failure_message _("Could not update the content view")
|
167
167
|
|
168
168
|
validate_options do
|
@@ -184,7 +184,7 @@ module HammerCLIKatello
|
|
184
184
|
action :destroy
|
185
185
|
command_name "delete"
|
186
186
|
|
187
|
-
success_message _("Content view is being deleted with task %{id}")
|
187
|
+
success_message _("Content view is being deleted with task %{id}.")
|
188
188
|
failure_message _("Could not delete the content view")
|
189
189
|
|
190
190
|
validate_options do
|
@@ -206,7 +206,7 @@ module HammerCLIKatello
|
|
206
206
|
action :publish
|
207
207
|
command_name "publish"
|
208
208
|
|
209
|
-
success_message _("Content view is being published with task %{id}")
|
209
|
+
success_message _("Content view is being published with task %{id}.")
|
210
210
|
failure_message _("Could not publish the content view")
|
211
211
|
|
212
212
|
build_options
|
@@ -221,7 +221,7 @@ module HammerCLIKatello
|
|
221
221
|
action :remove_from_environment
|
222
222
|
command_name "remove-from-environment"
|
223
223
|
|
224
|
-
success_message _("Content view is being removed from environment with task %{id}")
|
224
|
+
success_message _("Content view is being removed from environment with task %{id}.")
|
225
225
|
failure_message _("Could not remove the content view from environment")
|
226
226
|
|
227
227
|
build_options
|
@@ -270,7 +270,7 @@ module HammerCLIKatello
|
|
270
270
|
end
|
271
271
|
end
|
272
272
|
|
273
|
-
success_message _("Content view objects are being removed task %{id}")
|
273
|
+
success_message _("Content view objects are being removed task %{id}.")
|
274
274
|
failure_message _("Could not remove objects from content view")
|
275
275
|
|
276
276
|
build_options
|
@@ -307,7 +307,7 @@ module HammerCLIKatello
|
|
307
307
|
o.expand.including(:content_views)
|
308
308
|
end
|
309
309
|
|
310
|
-
success_message _("The component version has been added")
|
310
|
+
success_message _("The component version has been added.")
|
311
311
|
failure_message _("Could not add version")
|
312
312
|
end
|
313
313
|
|
@@ -342,7 +342,7 @@ module HammerCLIKatello
|
|
342
342
|
o.expand.including(:content_views)
|
343
343
|
end
|
344
344
|
|
345
|
-
success_message _("The component version has been removed")
|
345
|
+
success_message _("The component version has been removed.")
|
346
346
|
failure_message _("Could not remove version")
|
347
347
|
end
|
348
348
|
|
@@ -128,7 +128,7 @@ module HammerCLIKatello
|
|
128
128
|
end
|
129
129
|
end
|
130
130
|
|
131
|
-
success_message _("Component added to content view")
|
131
|
+
success_message _("Component added to content view.")
|
132
132
|
failure_message _("Could not add the component")
|
133
133
|
|
134
134
|
build_options do |o|
|
@@ -141,7 +141,7 @@ module HammerCLIKatello
|
|
141
141
|
action :update
|
142
142
|
command_name "update"
|
143
143
|
|
144
|
-
success_message _("Content view component updated")
|
144
|
+
success_message _("Content view component updated.")
|
145
145
|
failure_message _("Could not update the content view component")
|
146
146
|
|
147
147
|
def update_id(opts)
|
@@ -187,7 +187,7 @@ module HammerCLIKatello
|
|
187
187
|
_("Array of component content view identfiers to remove. Comma separated list of values"),
|
188
188
|
:attribute_name => :option_component_content_view_ids
|
189
189
|
|
190
|
-
success_message _("Components removed from content view")
|
190
|
+
success_message _("Components removed from content view.")
|
191
191
|
failure_message _("Could not remove the components")
|
192
192
|
|
193
193
|
def component_content_view_names
|
@@ -31,7 +31,7 @@ module HammerCLIKatello
|
|
31
31
|
|
32
32
|
command_name "add"
|
33
33
|
|
34
|
-
success_message _("Puppet module added to content view")
|
34
|
+
success_message _("Puppet module added to content view.")
|
35
35
|
failure_message _("Could not add the puppet module")
|
36
36
|
|
37
37
|
build_options
|
@@ -49,7 +49,7 @@ module HammerCLIKatello
|
|
49
49
|
|
50
50
|
command_name "remove"
|
51
51
|
|
52
|
-
success_message _("Puppet module removed from content view")
|
52
|
+
success_message _("Puppet module removed from content view.")
|
53
53
|
failure_message _("Couldn't remove puppet module from the content view")
|
54
54
|
|
55
55
|
build_options
|
@@ -68,7 +68,7 @@ module HammerCLIKatello
|
|
68
68
|
action :republish_repositories
|
69
69
|
command_name "republish-repositories"
|
70
70
|
|
71
|
-
success_message _("Content View Version is being republished with task %{id}")
|
71
|
+
success_message _("Content View Version is being republished with task %{id}.")
|
72
72
|
failure_message _("Could not republish the Content View")
|
73
73
|
build_options do |o|
|
74
74
|
o.expand(:all).including(:content_views, :organizations)
|
@@ -81,7 +81,7 @@ module HammerCLIKatello
|
|
81
81
|
action :promote
|
82
82
|
command_name "promote"
|
83
83
|
|
84
|
-
success_message _("Content view is being promoted with task %{id}")
|
84
|
+
success_message _("Content view is being promoted with task %{id}.")
|
85
85
|
failure_message _("Could not promote the content view")
|
86
86
|
|
87
87
|
option "--force",
|
@@ -129,7 +129,7 @@ module HammerCLIKatello
|
|
129
129
|
action :destroy
|
130
130
|
command_name "delete"
|
131
131
|
|
132
|
-
success_message _("Content view is being deleted with task %{id}")
|
132
|
+
success_message _("Content view is being deleted with task %{id}.")
|
133
133
|
failure_message _("Could not delete the content view")
|
134
134
|
|
135
135
|
build_options do |o|
|
@@ -251,7 +251,7 @@ module HammerCLIKatello
|
|
251
251
|
action :export
|
252
252
|
command_name "export"
|
253
253
|
|
254
|
-
success_message _("Content view is being exported in task %{id}")
|
254
|
+
success_message _("Content view is being exported in task %{id}.")
|
255
255
|
failure_message _("Could not export the content view")
|
256
256
|
|
257
257
|
build_options do |o|
|
@@ -61,7 +61,7 @@ module HammerCLIKatello
|
|
61
61
|
class CreateCommand < HammerCLIKatello::CreateCommand
|
62
62
|
include OrganizationOptions
|
63
63
|
|
64
|
-
success_message _("Filter created")
|
64
|
+
success_message _("Filter created.")
|
65
65
|
failure_message _("Could not create the filter")
|
66
66
|
|
67
67
|
validate_options do
|
@@ -87,7 +87,7 @@ module HammerCLIKatello
|
|
87
87
|
include OrganizationOptions
|
88
88
|
extend IdNameOptionsValidator
|
89
89
|
|
90
|
-
success_message _("Filter updated")
|
90
|
+
success_message _("Filter updated.")
|
91
91
|
failure_message _("Could not update the filter")
|
92
92
|
|
93
93
|
build_options :without => [:content_view_id]
|
@@ -99,7 +99,7 @@ module HammerCLIKatello
|
|
99
99
|
include OrganizationOptions
|
100
100
|
extend IdNameOptionsValidator
|
101
101
|
|
102
|
-
success_message _("Filter deleted")
|
102
|
+
success_message _("Filter deleted.")
|
103
103
|
failure_message _("Could not delete the filter")
|
104
104
|
|
105
105
|
build_options :without => [:content_view_id]
|
@@ -51,7 +51,7 @@ module HammerCLIKatello
|
|
51
51
|
class CreateCommand < HammerCLIKatello::CreateCommand
|
52
52
|
include OrganizationOptions
|
53
53
|
|
54
|
-
success_message _("Filter rule created")
|
54
|
+
success_message _("Filter rule created.")
|
55
55
|
failure_message _("Could not create the filter rule")
|
56
56
|
|
57
57
|
option '--names', 'NAMES', _('Package and package group names')
|
@@ -67,7 +67,7 @@ module HammerCLIKatello
|
|
67
67
|
class UpdateCommand < HammerCLIKatello::UpdateCommand
|
68
68
|
include OrganizationOptions
|
69
69
|
|
70
|
-
success_message _("Filter rule updated")
|
70
|
+
success_message _("Filter rule updated.")
|
71
71
|
failure_message _("Could not update the filter rule")
|
72
72
|
|
73
73
|
build_options
|
@@ -76,7 +76,7 @@ module HammerCLIKatello
|
|
76
76
|
class DeleteCommand < HammerCLIKatello::DeleteCommand
|
77
77
|
include OrganizationOptions
|
78
78
|
|
79
|
-
success_message _("Filter rule deleted")
|
79
|
+
success_message _("Filter rule deleted.")
|
80
80
|
failure_message _("Could not delete the filter rule")
|
81
81
|
|
82
82
|
build_options
|
@@ -35,7 +35,7 @@ module HammerCLIKatello
|
|
35
35
|
end
|
36
36
|
|
37
37
|
class CreateCommand < HammerCLIKatello::CreateCommand
|
38
|
-
success_message _("GPG Key created")
|
38
|
+
success_message _("GPG Key created.")
|
39
39
|
failure_message _("Could not create GPG Key")
|
40
40
|
|
41
41
|
build_options :without => [:content]
|
@@ -46,7 +46,7 @@ module HammerCLIKatello
|
|
46
46
|
end
|
47
47
|
|
48
48
|
class UpdateCommand < HammerCLIKatello::UpdateCommand
|
49
|
-
success_message _("GPG Key updated")
|
49
|
+
success_message _("GPG Key updated.")
|
50
50
|
failure_message _("Could not update GPG Key")
|
51
51
|
|
52
52
|
build_options :without => [:content]
|
@@ -56,7 +56,7 @@ module HammerCLIKatello
|
|
56
56
|
end
|
57
57
|
|
58
58
|
class DeleteCommand < HammerCLIKatello::DeleteCommand
|
59
|
-
success_message _("GPG Key deleted")
|
59
|
+
success_message _("GPG Key deleted.")
|
60
60
|
failure_message _("Could not delete the GPG Key")
|
61
61
|
|
62
62
|
build_options
|
@@ -47,7 +47,7 @@ module HammerCLIKatello
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
-
success_message _("Host collection created")
|
50
|
+
success_message _("Host collection created.")
|
51
51
|
failure_message _("Could not create the host collection")
|
52
52
|
|
53
53
|
build_options
|
@@ -113,7 +113,7 @@ module HammerCLIKatello
|
|
113
113
|
|
114
114
|
option "--new-name", "NEW_NAME", _("New host collection name"), required: true
|
115
115
|
|
116
|
-
success_message _("New host collection created")
|
116
|
+
success_message _("New host collection created.")
|
117
117
|
failure_message _("Could not create the new host collection")
|
118
118
|
|
119
119
|
def request_params
|
@@ -127,7 +127,7 @@ module HammerCLIKatello
|
|
127
127
|
end
|
128
128
|
|
129
129
|
class UpdateCommand < HammerCLIKatello::UpdateCommand
|
130
|
-
success_message _("Host collection updated")
|
130
|
+
success_message _("Host collection updated.")
|
131
131
|
failure_message _("Could not update the the host collection")
|
132
132
|
|
133
133
|
build_options { |o| o.expand(:all).including(:organizations) }
|
@@ -136,7 +136,7 @@ module HammerCLIKatello
|
|
136
136
|
class DeleteCommand < HammerCLIKatello::DeleteCommand
|
137
137
|
resource :host_collections, :destroy
|
138
138
|
|
139
|
-
success_message _("Host collection deleted")
|
139
|
+
success_message _("Host collection deleted.")
|
140
140
|
failure_message _("Could not delete the host collection")
|
141
141
|
|
142
142
|
build_options { |o| o.expand(:all).including(:organizations) }
|
@@ -148,7 +148,7 @@ module HammerCLIKatello
|
|
148
148
|
command_name 'add-host'
|
149
149
|
action :add_hosts
|
150
150
|
|
151
|
-
success_message _("The host(s) has been added")
|
151
|
+
success_message _("The host(s) has been added.")
|
152
152
|
failure_message _("Could not add host(s)")
|
153
153
|
|
154
154
|
build_options { |o| o.expand(:all).including(:organizations) }
|
@@ -160,7 +160,7 @@ module HammerCLIKatello
|
|
160
160
|
command_name 'remove-host'
|
161
161
|
action :remove_hosts
|
162
162
|
|
163
|
-
success_message _("The host(s) has been removed")
|
163
|
+
success_message _("The host(s) has been removed.")
|
164
164
|
failure_message _("Could not remove host(s)")
|
165
165
|
|
166
166
|
build_options { |o| o.expand(:all).including(:organizations) }
|