hammer_cli_foreman_remote_execution 0.3.0 → 0.3.2
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_remote_execution/foreign_input_set.rb +2 -0
- data/lib/hammer_cli_foreman_remote_execution/i18n.rb +5 -7
- data/lib/hammer_cli_foreman_remote_execution/interface_extensions.rb +2 -2
- data/lib/hammer_cli_foreman_remote_execution/job_invocation.rb +6 -4
- data/lib/hammer_cli_foreman_remote_execution/job_template.rb +8 -6
- data/lib/hammer_cli_foreman_remote_execution/options/normalizers.rb +5 -3
- data/lib/hammer_cli_foreman_remote_execution/remote_execution_feature.rb +4 -1
- data/lib/hammer_cli_foreman_remote_execution/subnet_extensions.rb +3 -1
- data/lib/hammer_cli_foreman_remote_execution/template_input.rb +2 -0
- data/lib/hammer_cli_foreman_remote_execution/version.rb +3 -1
- data/lib/hammer_cli_foreman_remote_execution.rb +2 -0
- data/locale/ca/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo +0 -0
- data/locale/ca/{hammer-cli-foreman-remote-execution.po → hammer_cli_foreman_remote_execution.po} +41 -47
- data/locale/cs_CZ/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo +0 -0
- data/locale/cs_CZ/{hammer-cli-foreman-remote-execution.po → hammer_cli_foreman_remote_execution.po} +41 -47
- data/locale/de/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo +0 -0
- data/locale/de/{hammer-cli-foreman-remote-execution.po → hammer_cli_foreman_remote_execution.po} +41 -47
- data/locale/en/LC_MESSAGES/{hammer-cli-foreman-remote-execution.mo → hammer_cli_foreman_remote_execution.mo} +0 -0
- data/locale/en/{hammer-cli-foreman-remote-execution.po → hammer_cli_foreman_remote_execution.po} +1 -1
- data/locale/es/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo +0 -0
- data/locale/es/{hammer-cli-foreman-remote-execution.po → hammer_cli_foreman_remote_execution.po} +42 -48
- data/locale/fr/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo +0 -0
- data/locale/fr/{hammer-cli-foreman-remote-execution.po → hammer_cli_foreman_remote_execution.po} +48 -52
- data/locale/it/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo +0 -0
- data/locale/it/{hammer-cli-foreman-remote-execution.po → hammer_cli_foreman_remote_execution.po} +41 -47
- data/locale/ja/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo +0 -0
- data/locale/ja/{hammer-cli-foreman-remote-execution.po → hammer_cli_foreman_remote_execution.po} +50 -56
- data/locale/ka/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo +0 -0
- data/locale/ka/{hammer-cli-foreman-remote-execution.po → hammer_cli_foreman_remote_execution.po} +41 -47
- data/locale/ko/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo +0 -0
- data/locale/ko/{hammer-cli-foreman-remote-execution.po → hammer_cli_foreman_remote_execution.po} +64 -70
- data/locale/pt_BR/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo +0 -0
- data/locale/pt_BR/{hammer-cli-foreman-remote-execution.po → hammer_cli_foreman_remote_execution.po} +41 -47
- data/locale/ru/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo +0 -0
- data/locale/ru/{hammer-cli-foreman-remote-execution.po → hammer_cli_foreman_remote_execution.po} +44 -50
- data/locale/zh_CN/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo +0 -0
- data/locale/zh_CN/{hammer-cli-foreman-remote-execution.po → hammer_cli_foreman_remote_execution.po} +50 -56
- data/locale/zh_TW/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo +0 -0
- data/locale/zh_TW/{hammer-cli-foreman-remote-execution.po → hammer_cli_foreman_remote_execution.po} +41 -47
- data/test/unit/foreign_input_set_test.rb +2 -0
- data/test/unit/job_invocation_test.rb +10 -6
- data/test/unit/job_template_test.rb +9 -4
- data/test/unit/remote_execution_feature_test.rb +2 -1
- data/test/unit/template_input_test.rb +2 -0
- metadata +39 -43
- data/.gitignore +0 -24
- data/.rubocop.yml +0 -8
- data/.travis.yml +0 -9
- data/.tx/config +0 -9
- data/Gemfile +0 -24
- data/Rakefile +0 -21
- data/hammer_cli_foreman_remote_execution.gemspec +0 -21
- data/locale/ca/LC_MESSAGES/hammer-cli-foreman-remote-execution.mo +0 -0
- data/locale/cs_CZ/LC_MESSAGES/hammer-cli-foreman-remote-execution.mo +0 -0
- data/locale/de/LC_MESSAGES/hammer-cli-foreman-remote-execution.mo +0 -0
- data/locale/es/LC_MESSAGES/hammer-cli-foreman-remote-execution.mo +0 -0
- data/locale/fr/LC_MESSAGES/hammer-cli-foreman-remote-execution.mo +0 -0
- data/locale/it/LC_MESSAGES/hammer-cli-foreman-remote-execution.mo +0 -0
- data/locale/ja/LC_MESSAGES/hammer-cli-foreman-remote-execution.mo +0 -0
- data/locale/ka/LC_MESSAGES/hammer-cli-foreman-remote-execution.mo +0 -0
- data/locale/ko/LC_MESSAGES/hammer-cli-foreman-remote-execution.mo +0 -0
- data/locale/pt_BR/LC_MESSAGES/hammer-cli-foreman-remote-execution.mo +0 -0
- data/locale/ru/LC_MESSAGES/hammer-cli-foreman-remote-execution.mo +0 -0
- data/locale/zh_CN/LC_MESSAGES/hammer-cli-foreman-remote-execution.mo +0 -0
- data/locale/zh_TW/LC_MESSAGES/hammer-cli-foreman-remote-execution.mo +0 -0
- /data/locale/{hammer-cli-foreman-remote-execution.pot → hammer_cli_foreman_remote_execution.pot} +0 -0
data/locale/zh_CN/{hammer-cli-foreman-remote-execution.po → hammer_cli_foreman_remote_execution.po}
RENAMED
@@ -5,9 +5,9 @@
|
|
5
5
|
# Translators:
|
6
6
|
msgid ""
|
7
7
|
msgstr ""
|
8
|
-
"Project-Id-Version:
|
8
|
+
"Project-Id-Version: hammer_cli_foreman_remote_execution 0.3.0\n"
|
9
9
|
"Report-Msgid-Bugs-To: \n"
|
10
|
-
"POT-Creation-Date:
|
10
|
+
"POT-Creation-Date: 2023-07-12 15:59+0000\n"
|
11
11
|
"PO-Revision-Date: 2016-02-12 07:57+0000\n"
|
12
12
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13
13
|
"Language-Team: Chinese (China) (http://app.transifex.com/foreman/foreman/"
|
@@ -60,6 +60,12 @@ msgstr "删除外输入集"
|
|
60
60
|
msgid "Could not delete the input set"
|
61
61
|
msgstr "无法删除输入集"
|
62
62
|
|
63
|
+
msgid "Execution"
|
64
|
+
msgstr "执行"
|
65
|
+
|
66
|
+
msgid "execution"
|
67
|
+
msgstr "执行"
|
68
|
+
|
63
69
|
msgid "Description"
|
64
70
|
msgstr "描述"
|
65
71
|
|
@@ -81,6 +87,21 @@ msgstr "总计"
|
|
81
87
|
msgid "Start"
|
82
88
|
msgstr "开始"
|
83
89
|
|
90
|
+
msgid "Randomized ordering"
|
91
|
+
msgstr "随机排序"
|
92
|
+
|
93
|
+
msgid "Inputs"
|
94
|
+
msgstr "输入"
|
95
|
+
|
96
|
+
msgid "Show the complete input of the job"
|
97
|
+
msgstr "显示作业的完整输入"
|
98
|
+
|
99
|
+
msgid "Show job status for the hosts"
|
100
|
+
msgstr "显示主机的作业状态"
|
101
|
+
|
102
|
+
msgid "Missing"
|
103
|
+
msgstr "缺少"
|
104
|
+
|
84
105
|
msgid "Job Category"
|
85
106
|
msgstr "作业类别"
|
86
107
|
|
@@ -93,6 +114,9 @@ msgstr "Cron 行"
|
|
93
114
|
msgid "Recurring logic ID"
|
94
115
|
msgstr "重复逻辑 ID"
|
95
116
|
|
117
|
+
msgid "Time to pickup"
|
118
|
+
msgstr "抓取时间"
|
119
|
+
|
96
120
|
msgid "Hosts"
|
97
121
|
msgstr "主机"
|
98
122
|
|
@@ -103,10 +127,10 @@ msgid "Do not wait for job to complete, shows current output only"
|
|
103
127
|
msgstr "不要等待作业完成,仅显示当前输出"
|
104
128
|
|
105
129
|
msgid "The job is scheduled to start at %{timestamp}"
|
106
|
-
msgstr "该作业被调度为在
|
130
|
+
msgstr "该作业被调度为在 %{timestamp} 开始"
|
107
131
|
|
108
132
|
msgid "Job invocation %{id} created"
|
109
|
-
msgstr "作业调用
|
133
|
+
msgstr "作业调用 %{id} 已创建"
|
110
134
|
|
111
135
|
msgid "Schedule the execution for a later time"
|
112
136
|
msgstr "将执行调度为一个以后的时间"
|
@@ -133,7 +157,7 @@ msgid "Cancel the job"
|
|
133
157
|
msgstr "取消任务"
|
134
158
|
|
135
159
|
msgid "Job invocation %{id} cancelled"
|
136
|
-
msgstr "作业调用
|
160
|
+
msgstr "作业调用 %{id} 已取消"
|
137
161
|
|
138
162
|
msgid "Could not cancel the job invocation"
|
139
163
|
msgstr "无法取消作业调用"
|
@@ -142,7 +166,7 @@ msgid "Rerun the job"
|
|
142
166
|
msgstr "重新运行作业"
|
143
167
|
|
144
168
|
msgid "Job invocation was rerun as %{id}"
|
145
|
-
msgstr "作业调用已作为
|
169
|
+
msgstr "作业调用已作为 %{id} 重新运行。"
|
146
170
|
|
147
171
|
msgid "Manage job invocations"
|
148
172
|
msgstr "管理作业调用"
|
@@ -153,9 +177,6 @@ msgstr "提供者"
|
|
153
177
|
msgid "Type"
|
154
178
|
msgstr "类型"
|
155
179
|
|
156
|
-
msgid "Inputs"
|
157
|
-
msgstr "输入"
|
158
|
-
|
159
180
|
msgid "View job template content"
|
160
181
|
msgstr "查看任务模板内容"
|
161
182
|
|
@@ -233,6 +254,15 @@ msgstr "远程执行功能已更新"
|
|
233
254
|
msgid "Could not update the remote execution feature"
|
234
255
|
msgstr "无法更新远程执行功能"
|
235
256
|
|
257
|
+
msgid "Smart Proxies"
|
258
|
+
msgstr "智能代理"
|
259
|
+
|
260
|
+
msgid "Remote execution proxies"
|
261
|
+
msgstr "远程执行代理"
|
262
|
+
|
263
|
+
msgid "Id"
|
264
|
+
msgstr "ID"
|
265
|
+
|
236
266
|
msgid "Manage template inputs"
|
237
267
|
msgstr "管理模板输入"
|
238
268
|
|
@@ -251,59 +281,23 @@ msgstr "Puppet 参数名称"
|
|
251
281
|
msgid "Options"
|
252
282
|
msgstr "选项"
|
253
283
|
|
254
|
-
msgid "Template input created"
|
255
|
-
msgstr "模板输入已创建"
|
256
|
-
|
257
|
-
msgid "Could not create the template input"
|
258
|
-
msgstr "无法创建模板输入"
|
259
|
-
|
260
|
-
msgid "Template input deleted"
|
261
|
-
msgstr "模板输入已删除"
|
262
|
-
|
263
|
-
msgid "Could not delete the template input"
|
264
|
-
msgstr "无法删除模板输入"
|
265
|
-
|
266
|
-
msgid "Execution"
|
267
|
-
msgstr ""
|
268
|
-
|
269
|
-
msgid "execution"
|
270
|
-
msgstr ""
|
271
|
-
|
272
|
-
msgid "Randomized ordering"
|
273
|
-
msgstr ""
|
274
|
-
|
275
|
-
msgid "Show the complete input of the job"
|
276
|
-
msgstr ""
|
277
|
-
|
278
|
-
msgid "Show job status for the hosts"
|
279
|
-
msgstr ""
|
280
|
-
|
281
|
-
msgid "Missing"
|
282
|
-
msgstr ""
|
283
|
-
|
284
|
-
msgid "Time to pickup"
|
285
|
-
msgstr ""
|
286
|
-
|
287
|
-
msgid "Smart Proxies"
|
288
|
-
msgstr ""
|
289
|
-
|
290
|
-
msgid "Remote execution proxies"
|
291
|
-
msgstr ""
|
292
|
-
|
293
|
-
msgid "Id"
|
294
|
-
msgstr ""
|
295
|
-
|
296
284
|
msgid "Default value"
|
297
|
-
msgstr ""
|
285
|
+
msgstr "默认值"
|
298
286
|
|
299
287
|
msgid "Template input created."
|
300
|
-
msgstr ""
|
288
|
+
msgstr "模板输入已创建。"
|
289
|
+
|
290
|
+
msgid "Could not create the template input"
|
291
|
+
msgstr "无法创建模板输入"
|
301
292
|
|
302
293
|
msgid "Template input updated."
|
303
|
-
msgstr ""
|
294
|
+
msgstr "模板输入已更新。"
|
304
295
|
|
305
296
|
msgid "Could not update the template input"
|
306
|
-
msgstr ""
|
297
|
+
msgstr "无法创建模板输入"
|
307
298
|
|
308
299
|
msgid "Template input deleted."
|
309
|
-
msgstr ""
|
300
|
+
msgstr "模板输入已删除。"
|
301
|
+
|
302
|
+
msgid "Could not delete the template input"
|
303
|
+
msgstr "无法删除模板输入"
|
Binary file
|
data/locale/zh_TW/{hammer-cli-foreman-remote-execution.po → hammer_cli_foreman_remote_execution.po}
RENAMED
@@ -5,9 +5,9 @@
|
|
5
5
|
# Translators:
|
6
6
|
msgid ""
|
7
7
|
msgstr ""
|
8
|
-
"Project-Id-Version:
|
8
|
+
"Project-Id-Version: hammer_cli_foreman_remote_execution 0.3.0\n"
|
9
9
|
"Report-Msgid-Bugs-To: \n"
|
10
|
-
"POT-Creation-Date:
|
10
|
+
"POT-Creation-Date: 2023-07-12 15:59+0000\n"
|
11
11
|
"PO-Revision-Date: 2016-02-12 07:57+0000\n"
|
12
12
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13
13
|
"Language-Team: Chinese (Taiwan) (http://app.transifex.com/foreman/foreman/"
|
@@ -60,6 +60,12 @@ msgstr "外部輸入集已刪除"
|
|
60
60
|
msgid "Could not delete the input set"
|
61
61
|
msgstr "無法刪除輸入集"
|
62
62
|
|
63
|
+
msgid "Execution"
|
64
|
+
msgstr "執行"
|
65
|
+
|
66
|
+
msgid "execution"
|
67
|
+
msgstr ""
|
68
|
+
|
63
69
|
msgid "Description"
|
64
70
|
msgstr "說明"
|
65
71
|
|
@@ -81,6 +87,21 @@ msgstr "總數"
|
|
81
87
|
msgid "Start"
|
82
88
|
msgstr "開始"
|
83
89
|
|
90
|
+
msgid "Randomized ordering"
|
91
|
+
msgstr ""
|
92
|
+
|
93
|
+
msgid "Inputs"
|
94
|
+
msgstr "輸入"
|
95
|
+
|
96
|
+
msgid "Show the complete input of the job"
|
97
|
+
msgstr ""
|
98
|
+
|
99
|
+
msgid "Show job status for the hosts"
|
100
|
+
msgstr ""
|
101
|
+
|
102
|
+
msgid "Missing"
|
103
|
+
msgstr ""
|
104
|
+
|
84
105
|
msgid "Job Category"
|
85
106
|
msgstr "工作類別"
|
86
107
|
|
@@ -93,6 +114,9 @@ msgstr "Cron 行"
|
|
93
114
|
msgid "Recurring logic ID"
|
94
115
|
msgstr "週期性的邏輯 ID"
|
95
116
|
|
117
|
+
msgid "Time to pickup"
|
118
|
+
msgstr ""
|
119
|
+
|
96
120
|
msgid "Hosts"
|
97
121
|
msgstr "主機"
|
98
122
|
|
@@ -153,9 +177,6 @@ msgstr "供應商"
|
|
153
177
|
msgid "Type"
|
154
178
|
msgstr "類型"
|
155
179
|
|
156
|
-
msgid "Inputs"
|
157
|
-
msgstr "輸入"
|
158
|
-
|
159
180
|
msgid "View job template content"
|
160
181
|
msgstr "新工作範本內容"
|
161
182
|
|
@@ -233,6 +254,15 @@ msgstr ""
|
|
233
254
|
msgid "Could not update the remote execution feature"
|
234
255
|
msgstr ""
|
235
256
|
|
257
|
+
msgid "Smart Proxies"
|
258
|
+
msgstr "智慧型代理伺服器"
|
259
|
+
|
260
|
+
msgid "Remote execution proxies"
|
261
|
+
msgstr ""
|
262
|
+
|
263
|
+
msgid "Id"
|
264
|
+
msgstr "ID"
|
265
|
+
|
236
266
|
msgid "Manage template inputs"
|
237
267
|
msgstr "管理範本輸入"
|
238
268
|
|
@@ -251,54 +281,15 @@ msgstr "Puppet 參數名稱"
|
|
251
281
|
msgid "Options"
|
252
282
|
msgstr "選項"
|
253
283
|
|
254
|
-
msgid "Template input created"
|
255
|
-
msgstr "已建立範本輸入"
|
256
|
-
|
257
|
-
msgid "Could not create the template input"
|
258
|
-
msgstr "無法建立範本輸入"
|
259
|
-
|
260
|
-
msgid "Template input deleted"
|
261
|
-
msgstr "已刪除範本輸入"
|
262
|
-
|
263
|
-
msgid "Could not delete the template input"
|
264
|
-
msgstr "無法刪除範本輸入"
|
265
|
-
|
266
|
-
msgid "Execution"
|
267
|
-
msgstr ""
|
268
|
-
|
269
|
-
msgid "execution"
|
270
|
-
msgstr ""
|
271
|
-
|
272
|
-
msgid "Randomized ordering"
|
273
|
-
msgstr ""
|
274
|
-
|
275
|
-
msgid "Show the complete input of the job"
|
276
|
-
msgstr ""
|
277
|
-
|
278
|
-
msgid "Show job status for the hosts"
|
279
|
-
msgstr ""
|
280
|
-
|
281
|
-
msgid "Missing"
|
282
|
-
msgstr ""
|
283
|
-
|
284
|
-
msgid "Time to pickup"
|
285
|
-
msgstr ""
|
286
|
-
|
287
|
-
msgid "Smart Proxies"
|
288
|
-
msgstr ""
|
289
|
-
|
290
|
-
msgid "Remote execution proxies"
|
291
|
-
msgstr ""
|
292
|
-
|
293
|
-
msgid "Id"
|
294
|
-
msgstr ""
|
295
|
-
|
296
284
|
msgid "Default value"
|
297
285
|
msgstr ""
|
298
286
|
|
299
287
|
msgid "Template input created."
|
300
288
|
msgstr ""
|
301
289
|
|
290
|
+
msgid "Could not create the template input"
|
291
|
+
msgstr "無法建立範本輸入"
|
292
|
+
|
302
293
|
msgid "Template input updated."
|
303
294
|
msgstr ""
|
304
295
|
|
@@ -307,3 +298,6 @@ msgstr ""
|
|
307
298
|
|
308
299
|
msgid "Template input deleted."
|
309
300
|
msgstr ""
|
301
|
+
|
302
|
+
msgid "Could not delete the template input"
|
303
|
+
msgstr "無法刪除範本輸入"
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
ENV['TEST_API_VERSION'] = '1.17'
|
2
4
|
|
3
5
|
require File.join(Gem.loaded_specs['hammer_cli_foreman'].full_gem_path, 'test/unit/test_helper')
|
@@ -34,14 +36,15 @@ describe HammerCLIForemanRemoteExecution::JobInvocation do
|
|
34
36
|
|
35
37
|
it 'should not accept name' do
|
36
38
|
_out, _err = capture_io do
|
37
|
-
cmd.run(%w
|
39
|
+
_(cmd.run(%w[--name foobar])).must_equal HammerCLI::EX_USAGE
|
38
40
|
end
|
39
41
|
end
|
40
42
|
end
|
41
43
|
|
42
44
|
describe 'output' do
|
43
45
|
with_params ['--id=1'] do
|
44
|
-
it_should_print_columns ['ID','Description','Status','Success','Failed','Pending','Total','Start',
|
46
|
+
it_should_print_columns ['ID', 'Description', 'Status', 'Success', 'Failed', 'Pending', 'Total', 'Start',
|
47
|
+
'Job Category', 'Mode', 'Cron line', 'Recurring logic ID', 'Hosts', 'Randomized ordering']
|
45
48
|
end
|
46
49
|
end
|
47
50
|
end
|
@@ -53,9 +56,10 @@ describe HammerCLIForemanRemoteExecution::JobInvocation do
|
|
53
56
|
it 'detects async flag correctly' do
|
54
57
|
refute cmd.option_async?
|
55
58
|
_out, err = capture_io do
|
56
|
-
cmd.run(['--job-template="Run Command - SSH Default', '--inputs=command="hostname"',
|
59
|
+
_(cmd.run(['--job-template="Run Command - SSH Default', '--inputs=command="hostname"',
|
60
|
+
'--search-query="name ~ foreman"', '--start-at="2099-01-01 12:00"', '--async'])).must_equal HammerCLI::EX_OK
|
57
61
|
end
|
58
|
-
err.must_be :empty?
|
62
|
+
_(err).must_be :empty?
|
59
63
|
assert cmd.option_async?
|
60
64
|
end
|
61
65
|
end
|
@@ -68,7 +72,7 @@ describe HammerCLIForemanRemoteExecution::JobInvocation do
|
|
68
72
|
|
69
73
|
it 'should not accept name' do
|
70
74
|
_out, _err = capture_io do
|
71
|
-
cmd.run(%w
|
75
|
+
_(cmd.run(%w[--name foobar])).must_equal HammerCLI::EX_USAGE
|
72
76
|
end
|
73
77
|
end
|
74
78
|
end
|
@@ -80,7 +84,7 @@ describe HammerCLIForemanRemoteExecution::JobInvocation do
|
|
80
84
|
|
81
85
|
it 'should not accept name' do
|
82
86
|
_out, _err = capture_io do
|
83
|
-
cmd.run(%w
|
87
|
+
_(cmd.run(%w[--name foobar])).must_equal HammerCLI::EX_USAGE
|
84
88
|
end
|
85
89
|
end
|
86
90
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
ENV['TEST_API_VERSION'] = '1.17'
|
2
4
|
|
3
5
|
require File.join(Gem.loaded_specs['hammer_cli_foreman'].full_gem_path, 'test/unit/test_helper')
|
@@ -55,7 +57,7 @@ describe HammerCLIForemanRemoteExecution::JobTemplate do
|
|
55
57
|
out, _err = capture_io do
|
56
58
|
cmd.run(['--id=1'])
|
57
59
|
end
|
58
|
-
out.must_match(/id/)
|
60
|
+
_(out).must_match(/id/)
|
59
61
|
end
|
60
62
|
end
|
61
63
|
end
|
@@ -64,7 +66,8 @@ describe HammerCLIForemanRemoteExecution::JobTemplate do
|
|
64
66
|
let(:cmd) { HammerCLIForemanRemoteExecution::JobTemplate::ImportCommand.new('', ctx) }
|
65
67
|
|
66
68
|
describe 'parameters' do
|
67
|
-
it_should_accept 'import options',
|
69
|
+
it_should_accept 'import options',
|
70
|
+
["--file=#{File.join(File.dirname(__FILE__), '..', 'data', 'export.erb')}", '--overwrite=false']
|
68
71
|
end
|
69
72
|
end
|
70
73
|
|
@@ -82,7 +85,7 @@ describe HammerCLIForemanRemoteExecution::JobTemplate do
|
|
82
85
|
out, _err = capture_io do
|
83
86
|
cmd.run(['--id=1'])
|
84
87
|
end
|
85
|
-
out.must_match(/id/)
|
88
|
+
_(out).must_match(/id/)
|
86
89
|
end
|
87
90
|
end
|
88
91
|
end
|
@@ -100,7 +103,9 @@ describe HammerCLIForemanRemoteExecution::JobTemplate do
|
|
100
103
|
let(:cmd) { HammerCLIForemanRemoteExecution::JobTemplate::CreateCommand.new('', ctx) }
|
101
104
|
|
102
105
|
describe 'parameters' do
|
103
|
-
it_should_accept 'create options',
|
106
|
+
it_should_accept 'create options',
|
107
|
+
['--name=Test', "--file=#{File.join(File.dirname(__FILE__), '..', 'data', 'template.txt')}", '--job-category=Install',
|
108
|
+
'--provider-type=SSH']
|
104
109
|
end
|
105
110
|
end
|
106
111
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
ENV['TEST_API_VERSION'] = '1.17'
|
2
4
|
|
3
5
|
require File.join(Gem.loaded_specs['hammer_cli_foreman'].full_gem_path, 'test/unit/test_helper')
|
@@ -33,7 +35,6 @@ describe HammerCLIForemanRemoteExecution::RemoteExecutionFeature do
|
|
33
35
|
end
|
34
36
|
end
|
35
37
|
|
36
|
-
|
37
38
|
describe 'CreateCommand' do
|
38
39
|
let(:cmd) { HammerCLIForemanRemoteExecution::RemoteExecutionFeature::UpdateCommand.new('', ctx) }
|
39
40
|
|
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.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Foreman Remote Execution team
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hammer_cli_foreman
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 0.0.3
|
47
|
-
description: CLI for the Foreman remote execution plugin
|
47
|
+
description: This gem provides CLI support for the Foreman remote execution plugin
|
48
48
|
email:
|
49
49
|
- foreman-dev@googlegroups.com
|
50
50
|
executables: []
|
@@ -53,16 +53,9 @@ extra_rdoc_files:
|
|
53
53
|
- README.md
|
54
54
|
- LICENSE
|
55
55
|
files:
|
56
|
-
- ".gitignore"
|
57
|
-
- ".rubocop.yml"
|
58
|
-
- ".travis.yml"
|
59
|
-
- ".tx/config"
|
60
|
-
- Gemfile
|
61
56
|
- LICENSE
|
62
57
|
- README.md
|
63
|
-
- Rakefile
|
64
58
|
- config/foreman_remote_execution.yml
|
65
|
-
- hammer_cli_foreman_remote_execution.gemspec
|
66
59
|
- lib/hammer_cli_foreman_remote_execution.rb
|
67
60
|
- lib/hammer_cli_foreman_remote_execution/foreign_input_set.rb
|
68
61
|
- lib/hammer_cli_foreman_remote_execution/i18n.rb
|
@@ -76,35 +69,35 @@ files:
|
|
76
69
|
- lib/hammer_cli_foreman_remote_execution/version.rb
|
77
70
|
- locale/Makefile
|
78
71
|
- locale/README.md
|
79
|
-
- locale/ca/LC_MESSAGES/
|
80
|
-
- locale/ca/
|
81
|
-
- locale/cs_CZ/LC_MESSAGES/
|
82
|
-
- locale/cs_CZ/
|
83
|
-
- locale/de/LC_MESSAGES/
|
84
|
-
- locale/de/
|
85
|
-
- locale/en/LC_MESSAGES/
|
86
|
-
- locale/en/
|
87
|
-
- locale/es/LC_MESSAGES/
|
88
|
-
- locale/es/
|
89
|
-
- locale/fr/LC_MESSAGES/
|
90
|
-
- locale/fr/
|
91
|
-
- locale/
|
92
|
-
- locale/it/LC_MESSAGES/
|
93
|
-
- locale/it/
|
94
|
-
- locale/ja/LC_MESSAGES/
|
95
|
-
- locale/ja/
|
96
|
-
- locale/ka/LC_MESSAGES/
|
97
|
-
- locale/ka/
|
98
|
-
- locale/ko/LC_MESSAGES/
|
99
|
-
- locale/ko/
|
100
|
-
- locale/pt_BR/LC_MESSAGES/
|
101
|
-
- locale/pt_BR/
|
102
|
-
- locale/ru/LC_MESSAGES/
|
103
|
-
- locale/ru/
|
104
|
-
- locale/zh_CN/LC_MESSAGES/
|
105
|
-
- locale/zh_CN/
|
106
|
-
- locale/zh_TW/LC_MESSAGES/
|
107
|
-
- locale/zh_TW/
|
72
|
+
- locale/ca/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo
|
73
|
+
- locale/ca/hammer_cli_foreman_remote_execution.po
|
74
|
+
- locale/cs_CZ/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo
|
75
|
+
- locale/cs_CZ/hammer_cli_foreman_remote_execution.po
|
76
|
+
- locale/de/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo
|
77
|
+
- locale/de/hammer_cli_foreman_remote_execution.po
|
78
|
+
- locale/en/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo
|
79
|
+
- locale/en/hammer_cli_foreman_remote_execution.po
|
80
|
+
- locale/es/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo
|
81
|
+
- locale/es/hammer_cli_foreman_remote_execution.po
|
82
|
+
- locale/fr/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo
|
83
|
+
- locale/fr/hammer_cli_foreman_remote_execution.po
|
84
|
+
- locale/hammer_cli_foreman_remote_execution.pot
|
85
|
+
- locale/it/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo
|
86
|
+
- locale/it/hammer_cli_foreman_remote_execution.po
|
87
|
+
- locale/ja/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo
|
88
|
+
- locale/ja/hammer_cli_foreman_remote_execution.po
|
89
|
+
- locale/ka/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo
|
90
|
+
- locale/ka/hammer_cli_foreman_remote_execution.po
|
91
|
+
- locale/ko/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo
|
92
|
+
- locale/ko/hammer_cli_foreman_remote_execution.po
|
93
|
+
- locale/pt_BR/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo
|
94
|
+
- locale/pt_BR/hammer_cli_foreman_remote_execution.po
|
95
|
+
- locale/ru/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo
|
96
|
+
- locale/ru/hammer_cli_foreman_remote_execution.po
|
97
|
+
- locale/zh_CN/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo
|
98
|
+
- locale/zh_CN/hammer_cli_foreman_remote_execution.po
|
99
|
+
- locale/zh_TW/LC_MESSAGES/hammer_cli_foreman_remote_execution.mo
|
100
|
+
- locale/zh_TW/hammer_cli_foreman_remote_execution.po
|
108
101
|
- test/data/1.14/foreman_api.json
|
109
102
|
- test/data/1.16/foreman_api.json
|
110
103
|
- test/data/1.17/foreman_api.json
|
@@ -119,7 +112,7 @@ homepage: https://github.com/theforeman/hammer_cli_foreman_remote_execution
|
|
119
112
|
licenses:
|
120
113
|
- GPL-3.0-or-later
|
121
114
|
metadata: {}
|
122
|
-
post_install_message:
|
115
|
+
post_install_message:
|
123
116
|
rdoc_options: []
|
124
117
|
require_paths:
|
125
118
|
- lib
|
@@ -127,7 +120,10 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
127
120
|
requirements:
|
128
121
|
- - ">="
|
129
122
|
- !ruby/object:Gem::Version
|
130
|
-
version: '
|
123
|
+
version: '2.7'
|
124
|
+
- - "<"
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '4'
|
131
127
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
128
|
requirements:
|
133
129
|
- - ">="
|
@@ -135,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
131
|
version: '0'
|
136
132
|
requirements: []
|
137
133
|
rubygems_version: 3.2.33
|
138
|
-
signing_key:
|
134
|
+
signing_key:
|
139
135
|
specification_version: 4
|
140
136
|
summary: CLI for the Foreman remote execution plugin
|
141
137
|
test_files:
|
data/.gitignore
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# Ruby + project files
|
2
|
-
Gemfile.lock
|
3
|
-
Gemfile.local
|
4
|
-
pkg
|
5
|
-
*.gem
|
6
|
-
|
7
|
-
# Tests
|
8
|
-
test/reports
|
9
|
-
coverage
|
10
|
-
|
11
|
-
# RVM
|
12
|
-
.rvmrc
|
13
|
-
.ruby-version
|
14
|
-
.ruby-gemset
|
15
|
-
|
16
|
-
# Editors
|
17
|
-
tags
|
18
|
-
.idea
|
19
|
-
*.sw?
|
20
|
-
*~
|
21
|
-
|
22
|
-
# Locale files
|
23
|
-
locale/*/*.edit.po
|
24
|
-
locale/*/*.po.time_stamp
|
data/.rubocop.yml
DELETED
data/.travis.yml
DELETED
data/.tx/config
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
[main]
|
2
|
-
host = https://app.transifex.com
|
3
|
-
|
4
|
-
[o:foreman:p:foreman:r:hammer-cli-foreman-remote-execution]
|
5
|
-
file_filter = locale/<lang>/hammer-cli-foreman-remote-execution.edit.po
|
6
|
-
source_file = locale/hammer-cli-foreman-remote-execution.pot
|
7
|
-
source_lang = en
|
8
|
-
type = PO
|
9
|
-
resource_name = hammer-cli-foreman-remote-execution
|
data/Gemfile
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
gemspec
|
4
|
-
|
5
|
-
gem 'gettext', '>= 3.1.3', '< 4.0.0'
|
6
|
-
if RUBY_VERSION < '2.1.0'
|
7
|
-
gem 'fast_gettext', '< 1.2.0'
|
8
|
-
end
|
9
|
-
|
10
|
-
group :test do
|
11
|
-
gem 'rake', '~> 13.1.0'
|
12
|
-
gem 'thor'
|
13
|
-
gem 'minitest', '< 4.7.4'
|
14
|
-
gem 'minitest-spec-context'
|
15
|
-
gem 'simplecov'
|
16
|
-
gem 'mocha'
|
17
|
-
gem 'ci_reporter', '>= 1.6.3', "< 2.0.0", :require => false
|
18
|
-
end
|
19
|
-
|
20
|
-
# load local gemfile
|
21
|
-
['Gemfile.local.rb', 'Gemfile.local'].map do |file_name|
|
22
|
-
local_gemfile = File.join(File.dirname(__FILE__), file_name)
|
23
|
-
self.instance_eval(Bundler.read_file(local_gemfile)) if File.exist?(local_gemfile)
|
24
|
-
end
|