hammer_cli_foreman_remote_execution 0.1.0 → 0.1.1
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/.travis.yml +0 -1
- data/hammer_cli_foreman_remote_execution.gemspec +3 -3
- data/lib/hammer_cli_foreman_remote_execution/job_invocation.rb +6 -2
- data/lib/hammer_cli_foreman_remote_execution/job_template.rb +1 -0
- data/lib/hammer_cli_foreman_remote_execution/template_input.rb +10 -2
- data/lib/hammer_cli_foreman_remote_execution/version.rb +1 -1
- data/locale/hammer-cli-foreman-remote-execution.pot +105 -33
- data/test/unit/job_invocation_test.rb +2 -4
- data/test/unit/template_input_test.rb +8 -0
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfe330b86da113a5a6376d1aabc5acda1187048eba2d40f89b1807977e61b2d1
|
4
|
+
data.tar.gz: 3c4bc1f61da2e243f5826811ae5edd3e555d989d51f28b589921302f09507700
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d8bea4d75e163357cebe8d7843947fe8eb92bdadbc6b576b9159efa4c701f5e1bb7a70b4c0b4dc43bd50b72fd553f99a5e910ddb00257664a9f383b46afaef4
|
7
|
+
data.tar.gz: e021f8c88f05b847d08abfd96020dd557eeba971a3a6b8d2c915015b62fbd7115a8a481a09dccd32a4262bcc97742dfd205b601cc492a9e9eaaa2206d08d9b01
|
data/.travis.yml
CHANGED
@@ -6,8 +6,8 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.platform = Gem::Platform::RUBY
|
7
7
|
s.authors = ['Foreman Remote Execution team']
|
8
8
|
s.email = ['foreman-dev@googlegroups.com']
|
9
|
-
s.homepage = '
|
10
|
-
s.license = 'GPL
|
9
|
+
s.homepage = 'https://github.com/theforeman/hammer_cli_foreman_remote_execution'
|
10
|
+
s.license = 'GPL-3.0-or-later'
|
11
11
|
|
12
12
|
s.summary = 'CLI for the Foreman remote execution plugin'
|
13
13
|
s.description = 'CLI for the Foreman remote execution plugin'
|
@@ -16,6 +16,6 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.test_files = `git ls-files test`.split("\n")
|
17
17
|
s.extra_rdoc_files = `git ls-files doc`.split("\n") + Dir['README*', 'LICENSE']
|
18
18
|
|
19
|
-
s.add_dependency 'hammer_cli_foreman', '>= 0.1.3', '<
|
19
|
+
s.add_dependency 'hammer_cli_foreman', '>= 0.1.3', '< 3.0.0'
|
20
20
|
s.add_dependency 'hammer_cli_foreman_tasks', '~> 0.0.3'
|
21
21
|
end
|
@@ -18,6 +18,7 @@ module HammerCLIForemanRemoteExecution
|
|
18
18
|
field :pending, _('Pending')
|
19
19
|
field :total, _('Total')
|
20
20
|
field :start_at, _('Start')
|
21
|
+
field :randomized_ordering, _('Randomized ordering')
|
21
22
|
end
|
22
23
|
|
23
24
|
def extend_data(invocation)
|
@@ -184,8 +185,11 @@ module HammerCLIForemanRemoteExecution
|
|
184
185
|
end
|
185
186
|
|
186
187
|
def self.extend_data(invocation)
|
187
|
-
if invocation['targeting'] && invocation['targeting']['hosts']
|
188
|
-
invocation['
|
188
|
+
if (targeting = invocation['targeting']) && invocation['targeting']['hosts']
|
189
|
+
invocation['randomized_ordering'] = targeting['randomized_ordering']
|
190
|
+
if (hosts = targeting['hosts'])
|
191
|
+
invocation['hosts'] = "\n" + hosts.map { |host| " - #{host['name']}" }.join("\n")
|
192
|
+
end
|
189
193
|
end
|
190
194
|
|
191
195
|
if invocation['recurrence']
|
@@ -20,6 +20,7 @@ module HammerCLIForemanRemoteExecution
|
|
20
20
|
|
21
21
|
class InfoCommand < HammerCLIForeman::InfoCommand
|
22
22
|
output ListCommand.output_definition do
|
23
|
+
field :description, _('Description'), Fields::Text
|
23
24
|
field :template_inputs, _('Inputs')
|
24
25
|
HammerCLIForeman::References.taxonomies(self)
|
25
26
|
end
|
@@ -23,20 +23,28 @@ module HammerCLIForemanRemoteExecution
|
|
23
23
|
field :variable_name, _('Variable name')
|
24
24
|
field :puppet_parameter_name, _('Puppet parameter name')
|
25
25
|
field :options, _('Options'), Fields::List, :width => 25, :hide_blank => true
|
26
|
+
field :default, _('Default value')
|
26
27
|
end
|
27
28
|
|
28
29
|
build_options
|
29
30
|
end
|
30
31
|
|
31
32
|
class CreateCommand < HammerCLIForeman::CreateCommand
|
32
|
-
success_message _('Template input created')
|
33
|
+
success_message _('Template input created.')
|
33
34
|
failure_message _('Could not create the template input')
|
34
35
|
|
35
36
|
build_options
|
36
37
|
end
|
37
38
|
|
39
|
+
class UpdateCommand < HammerCLIForeman::UpdateCommand
|
40
|
+
success_message _('Template input updated.')
|
41
|
+
failure_message _('Could not update the template input')
|
42
|
+
|
43
|
+
build_options
|
44
|
+
end
|
45
|
+
|
38
46
|
class DeleteCommand < HammerCLIForeman::DeleteCommand
|
39
|
-
success_message _('Template input deleted')
|
47
|
+
success_message _('Template input deleted.')
|
40
48
|
failure_message _('Could not delete the template input')
|
41
49
|
|
42
50
|
build_options
|
@@ -6,10 +6,10 @@
|
|
6
6
|
#, fuzzy
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
|
-
"Project-Id-Version: hammer-cli-foreman-remote-execution 0.
|
9
|
+
"Project-Id-Version: hammer-cli-foreman-remote-execution 0.1.1\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date:
|
12
|
-
"PO-Revision-Date:
|
11
|
+
"POT-Creation-Date: 2019-02-26 10:44-0500\n"
|
12
|
+
"PO-Revision-Date: 2019-02-26 10:44-0500\n"
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15
15
|
"Language: \n"
|
@@ -25,8 +25,10 @@ msgstr ""
|
|
25
25
|
|
26
26
|
#: ../lib/hammer_cli_foreman_remote_execution/foreign_input_set.rb:8
|
27
27
|
#: ../lib/hammer_cli_foreman_remote_execution/foreign_input_set.rb:18
|
28
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
28
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:13
|
29
29
|
#: ../lib/hammer_cli_foreman_remote_execution/job_template.rb:7
|
30
|
+
#: ../lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb:8
|
31
|
+
#: ../lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb:19
|
30
32
|
#: ../lib/hammer_cli_foreman_remote_execution/template_input.rb:8
|
31
33
|
#: ../lib/hammer_cli_foreman_remote_execution/template_input.rb:18
|
32
34
|
msgid "ID"
|
@@ -44,6 +46,8 @@ msgstr ""
|
|
44
46
|
|
45
47
|
#: ../lib/hammer_cli_foreman_remote_execution/foreign_input_set.rb:19
|
46
48
|
#: ../lib/hammer_cli_foreman_remote_execution/job_template.rb:8
|
49
|
+
#: ../lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb:9
|
50
|
+
#: ../lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb:21
|
47
51
|
#: ../lib/hammer_cli_foreman_remote_execution/template_input.rb:9
|
48
52
|
#: ../lib/hammer_cli_foreman_remote_execution/template_input.rb:19
|
49
53
|
msgid "Name"
|
@@ -85,96 +89,122 @@ msgstr ""
|
|
85
89
|
msgid "Could not delete the input set"
|
86
90
|
msgstr ""
|
87
91
|
|
88
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
92
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:14
|
93
|
+
#: ../lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb:10
|
94
|
+
#: ../lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb:22
|
89
95
|
msgid "Description"
|
90
96
|
msgstr ""
|
91
97
|
|
92
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
98
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:15
|
93
99
|
msgid "Status"
|
94
100
|
msgstr ""
|
95
101
|
|
96
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
102
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:16
|
97
103
|
msgid "Success"
|
98
104
|
msgstr ""
|
99
105
|
|
100
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
106
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:17
|
101
107
|
msgid "Failed"
|
102
108
|
msgstr ""
|
103
109
|
|
104
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
110
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:18
|
105
111
|
msgid "Pending"
|
106
112
|
msgstr ""
|
107
113
|
|
108
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
114
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:19
|
109
115
|
msgid "Total"
|
110
116
|
msgstr ""
|
111
117
|
|
112
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
118
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:20
|
113
119
|
msgid "Start"
|
114
120
|
msgstr ""
|
115
121
|
|
116
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
122
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:33
|
117
123
|
#: ../lib/hammer_cli_foreman_remote_execution/job_template.rb:9
|
118
124
|
msgid "Job Category"
|
119
125
|
msgstr ""
|
120
126
|
|
121
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
127
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:34
|
122
128
|
msgid "Mode"
|
123
129
|
msgstr ""
|
124
130
|
|
125
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
131
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:35
|
126
132
|
msgid "Cron line"
|
127
133
|
msgstr ""
|
128
134
|
|
129
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
135
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:36
|
130
136
|
msgid "Recurring logic ID"
|
131
137
|
msgstr ""
|
132
138
|
|
133
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
139
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:37
|
134
140
|
msgid "Hosts"
|
135
141
|
msgstr ""
|
136
142
|
|
137
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
143
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:52
|
138
144
|
msgid "View the output for a host"
|
139
145
|
msgstr ""
|
140
146
|
|
141
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
147
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:54
|
142
148
|
msgid "Do not wait for job to complete, shows current output only"
|
143
149
|
msgstr ""
|
144
150
|
|
145
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
151
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:70
|
152
|
+
msgid "The job is scheduled to start at %{timestamp}"
|
153
|
+
msgstr ""
|
154
|
+
|
155
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:102
|
146
156
|
msgid "Job invocation %{id} created"
|
147
157
|
msgstr ""
|
148
158
|
|
149
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
159
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:105
|
150
160
|
msgid "Schedule the execution for a later time"
|
151
161
|
msgstr ""
|
152
162
|
|
153
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
163
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:108
|
154
164
|
msgid "Execution should be cancelled if it cannot be started before --start-at"
|
155
165
|
msgstr ""
|
156
166
|
|
157
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
167
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:112
|
158
168
|
msgid "Create a recurring execution"
|
159
169
|
msgstr ""
|
160
170
|
|
161
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
171
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:114
|
162
172
|
msgid "Perform no more executions after this time, used with --cron-line"
|
163
173
|
msgstr ""
|
164
174
|
|
165
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
175
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:118
|
166
176
|
msgid "Specify inputs from command line"
|
167
177
|
msgstr ""
|
168
178
|
|
169
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
179
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:122
|
170
180
|
msgid "Read input values from files"
|
171
181
|
msgstr ""
|
172
182
|
|
173
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
183
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:125
|
174
184
|
msgid "Dynamic search queries are evaluated at run time"
|
175
185
|
msgstr ""
|
176
186
|
|
177
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:
|
187
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:168
|
188
|
+
msgid "Cancel the job"
|
189
|
+
msgstr ""
|
190
|
+
|
191
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:169
|
192
|
+
msgid "Job invocation %{id} cancelled"
|
193
|
+
msgstr ""
|
194
|
+
|
195
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:170
|
196
|
+
msgid "Could not cancel the job invocation"
|
197
|
+
msgstr ""
|
198
|
+
|
199
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:180
|
200
|
+
msgid "Rerun the job"
|
201
|
+
msgstr ""
|
202
|
+
|
203
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:181
|
204
|
+
msgid "Job invocation was rerun as %{id}"
|
205
|
+
msgstr ""
|
206
|
+
|
207
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_invocation.rb:202
|
178
208
|
msgid "Manage job invocations"
|
179
209
|
msgstr ""
|
180
210
|
|
@@ -195,7 +225,7 @@ msgid "View job template content"
|
|
195
225
|
msgstr ""
|
196
226
|
|
197
227
|
#: ../lib/hammer_cli_foreman_remote_execution/job_template.rb:46
|
198
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_template.rb:
|
228
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_template.rb:88
|
199
229
|
msgid "Path to a file that contains the template"
|
200
230
|
msgstr ""
|
201
231
|
|
@@ -207,23 +237,39 @@ msgstr ""
|
|
207
237
|
msgid "Could not create the job template"
|
208
238
|
msgstr ""
|
209
239
|
|
210
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_template.rb:
|
240
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_template.rb:62
|
241
|
+
msgid "Path to a file that contains the template - must include ERB metadata"
|
242
|
+
msgstr ""
|
243
|
+
|
244
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_template.rb:66
|
245
|
+
msgid "Job template imported"
|
246
|
+
msgstr ""
|
247
|
+
|
248
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_template.rb:67
|
249
|
+
msgid "Could not import the job template"
|
250
|
+
msgstr ""
|
251
|
+
|
252
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_template.rb:78
|
253
|
+
msgid "Export a template including all metadata"
|
254
|
+
msgstr ""
|
255
|
+
|
256
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_template.rb:92
|
211
257
|
msgid "Job template updated"
|
212
258
|
msgstr ""
|
213
259
|
|
214
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_template.rb:
|
260
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_template.rb:93
|
215
261
|
msgid "Could not update the job template"
|
216
262
|
msgstr ""
|
217
263
|
|
218
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_template.rb:
|
264
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_template.rb:101
|
219
265
|
msgid "Job template deleted"
|
220
266
|
msgstr ""
|
221
267
|
|
222
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_template.rb:
|
268
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_template.rb:102
|
223
269
|
msgid "Could not delete the job template"
|
224
270
|
msgstr ""
|
225
271
|
|
226
|
-
#: ../lib/hammer_cli_foreman_remote_execution/job_template.rb:
|
272
|
+
#: ../lib/hammer_cli_foreman_remote_execution/job_template.rb:121
|
227
273
|
msgid "Manage job templates"
|
228
274
|
msgstr ""
|
229
275
|
|
@@ -243,6 +289,32 @@ msgid ""
|
|
243
289
|
" e. is day of week (range: 0-6)"
|
244
290
|
msgstr ""
|
245
291
|
|
292
|
+
#: ../lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb:4
|
293
|
+
#: ../lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb:40
|
294
|
+
msgid "Manage remote execution features"
|
295
|
+
msgstr ""
|
296
|
+
|
297
|
+
#: ../lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb:11
|
298
|
+
#: ../lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb:23
|
299
|
+
msgid "Job template name"
|
300
|
+
msgstr ""
|
301
|
+
|
302
|
+
#: ../lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb:20
|
303
|
+
msgid "Label"
|
304
|
+
msgstr ""
|
305
|
+
|
306
|
+
#: ../lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb:24
|
307
|
+
msgid "Job template ID"
|
308
|
+
msgstr ""
|
309
|
+
|
310
|
+
#: ../lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb:31
|
311
|
+
msgid "Remote execution feature updated"
|
312
|
+
msgstr ""
|
313
|
+
|
314
|
+
#: ../lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb:32
|
315
|
+
msgid "Could not update the remote execution feature"
|
316
|
+
msgstr ""
|
317
|
+
|
246
318
|
#: ../lib/hammer_cli_foreman_remote_execution/template_input.rb:4
|
247
319
|
#: ../lib/hammer_cli_foreman_remote_execution/template_input.rb:48
|
248
320
|
msgid "Manage template inputs"
|
@@ -41,7 +41,7 @@ describe HammerCLIForemanRemoteExecution::JobInvocation do
|
|
41
41
|
|
42
42
|
context 'output' do
|
43
43
|
with_params ['--id=1'] do
|
44
|
-
it_should_print_columns ['ID','Description','Status','Success','Failed','Pending','Total','Start','Job Category','Mode','Cron line','Recurring logic ID','Hosts']
|
44
|
+
it_should_print_columns ['ID','Description','Status','Success','Failed','Pending','Total','Start','Job Category','Mode','Cron line','Recurring logic ID','Hosts', 'Randomized ordering']
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
@@ -50,12 +50,10 @@ describe HammerCLIForemanRemoteExecution::JobInvocation do
|
|
50
50
|
let(:cmd) { HammerCLIForemanRemoteExecution::JobInvocation::CreateCommand.new('', ctx) }
|
51
51
|
|
52
52
|
context 'parameters' do
|
53
|
-
it_should_accept 'create options', ['--job-template="Run Command - SSH Default', '--inputs=command="hostname"', '--search-query="name ~ foreman"', '--start-at="2099-01-01 12:00"', '--async']
|
54
|
-
|
55
53
|
it 'detects async flag correctly' do
|
56
54
|
refute cmd.option_async?
|
57
55
|
_out, err = capture_io do
|
58
|
-
cmd.run(
|
56
|
+
cmd.run(['--job-template="Run Command - SSH Default', '--inputs=command="hostname"', '--search-query="name ~ foreman"', '--start-at="2099-01-01 12:00"', '--async']).must_equal HammerCLI::EX_OK
|
59
57
|
end
|
60
58
|
err.must_be :empty?
|
61
59
|
assert cmd.option_async?
|
@@ -48,4 +48,12 @@ describe HammerCLIForemanRemoteExecution::TemplateInput do
|
|
48
48
|
it_should_accept 'create options', ['--template-id=1', "--name=asdf", '--input-type=user']
|
49
49
|
end
|
50
50
|
end
|
51
|
+
|
52
|
+
context 'UpdateCommand' do
|
53
|
+
let(:cmd) { HammerCLIForemanRemoteExecution::TemplateInput::UpdateCommand.new('', ctx) }
|
54
|
+
|
55
|
+
context 'parameters' do
|
56
|
+
it_should_accept 'update options', ['--template-id=1', '--name=asdf', '--input-type=user', '--new-name=fdsa']
|
57
|
+
end
|
58
|
+
end
|
51
59
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hammer_cli_foreman_remote_execution
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Foreman Remote Execution team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hammer_cli_foreman
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 0.1.3
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: 3.0.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 0.1.3
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: 3.0.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: hammer_cli_foreman_tasks
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -96,9 +96,9 @@ files:
|
|
96
96
|
- test/unit/job_template_test.rb
|
97
97
|
- test/unit/remote_execution_feature_test.rb
|
98
98
|
- test/unit/template_input_test.rb
|
99
|
-
homepage:
|
99
|
+
homepage: https://github.com/theforeman/hammer_cli_foreman_remote_execution
|
100
100
|
licenses:
|
101
|
-
- GPL
|
101
|
+
- GPL-3.0-or-later
|
102
102
|
metadata: {}
|
103
103
|
post_install_message:
|
104
104
|
rdoc_options: []
|
@@ -115,8 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0'
|
117
117
|
requirements: []
|
118
|
-
|
119
|
-
rubygems_version: 2.7.3
|
118
|
+
rubygems_version: 3.0.3
|
120
119
|
signing_key:
|
121
120
|
specification_version: 4
|
122
121
|
summary: CLI for the Foreman remote execution plugin
|