hammer_cli_foreman_remote_execution 0.3.3 → 0.4.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: f725f475f060c65cf1b527e0b7322e44d60c1cfdaeeb66260bf668354fdf210c
4
- data.tar.gz: c325b4726512ead157bc3da74d1581b773b604760db61eed679a1cfe8425c0f0
3
+ metadata.gz: 420ed2ef07e5be66a18b1e2e504e4b9c226ef9513332315574d6fcca3c13ae7f
4
+ data.tar.gz: 4bc010f9e9e0acb8a0b6ca0377e4baaa2bd05a970a8efadf40f5b7abab660f02
5
5
  SHA512:
6
- metadata.gz: d5cf6c027083b0855d91d95f1ee21150b7d72cec752f2fffa98d722e7707513bacdeafb2dd2f783fd9adcc1798f4e206e5935df526191d8da75db79524a2026c
7
- data.tar.gz: 4c096ab6df209ad9796f490e2cb16391b709683ab8e8418a59b5c54598ab3c4989da3b19b31c8f9e26959cf5667f6030a8dee19a85fd0cd6bd13b87f9d75317f
6
+ metadata.gz: 278b99088d60ca4de83042abdfde5d9523981fa94e3dd0aac7955a4ceff70bbcef06b10b316d76997db89b9f8894cb93fc16930b21679b1fee1e91852add863f
7
+ data.tar.gz: 2186ba3924b47a4db361fd257f6042de0ff79fac0bb6c528cd218611e663af33c1b2cb5125d2b39abf78f0ec69131b1c5297de05a4706f75dd398842facadd45
@@ -59,6 +59,28 @@ module HammerCLIForemanRemoteExecution
59
59
  end
60
60
  end
61
61
 
62
+ class CloneCommand < HammerCLIForeman::CreateCommand
63
+ command_name 'clone'
64
+ action :clone
65
+ desc _('Clone a job template')
66
+
67
+ option '--new-name', 'NEW_NAME', N_('Name for the cloned template'),
68
+ :attribute_name => :option_new_name, :required => true
69
+
70
+ success_message _('Job template cloned')
71
+ failure_message _('Could not clone the job template')
72
+
73
+ def request_params
74
+ params = super
75
+ params['job_template']['name'] = option_new_name
76
+ params
77
+ end
78
+
79
+ build_options do |o|
80
+ o.without(:name)
81
+ end
82
+ end
83
+
62
84
  class ImportCommand < HammerCLIForeman::CreateCommand
63
85
  command_name 'import'
64
86
  action :import
@@ -2,6 +2,6 @@
2
2
 
3
3
  module HammerCLIForemanRemoteExecution
4
4
  def self.version
5
- @version ||= Gem::Version.new '0.3.3'
5
+ @version ||= Gem::Version.new '0.4.0'
6
6
  end
7
7
  end
@@ -1,6 +1,6 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the hammer-cli-foreman-remote-execution package.
3
+ # This file is distributed under the same license as the hammer_cli_foreman_remote_execution package.
4
4
  #
5
5
  # Translators:
6
6
  # Robert Antoni Buj i Gelonch <rbuj@fedoraproject.org>, 2017
@@ -9,7 +9,7 @@ msgid ""
9
9
  msgstr ""
10
10
  "Project-Id-Version: hammer_cli_foreman_remote_execution 0.3.3\n"
11
11
  "Report-Msgid-Bugs-To: \n"
12
- "POT-Creation-Date: 2023-07-12 15:59+0000\n"
12
+ "POT-Creation-Date: 2025-09-25 14:54+0000\n"
13
13
  "PO-Revision-Date: 2016-02-12 07:57+0000\n"
14
14
  "Last-Translator: Robert Antoni Buj i Gelonch <rbuj@fedoraproject.org>, 2017\n"
15
15
  "Language-Team: Catalan (http://app.transifex.com/foreman/foreman/language/"
@@ -183,6 +183,9 @@ msgstr "Proveïdor"
183
183
  msgid "Type"
184
184
  msgstr "Tipus"
185
185
 
186
+ msgid "Cloned from id"
187
+ msgstr ""
188
+
186
189
  msgid "View job template content"
187
190
  msgstr "Visualitza el contingut de la plantilla del treball"
188
191
 
@@ -309,6 +312,3 @@ msgstr ""
309
312
 
310
313
  msgid "Could not delete the template input"
311
314
  msgstr "No s'ha pogut eliminar l'entrada de la plantilla"
312
-
313
- msgid "Cloned from id"
314
- msgstr ""
@@ -1,6 +1,6 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the hammer-cli-foreman-remote-execution package.
3
+ # This file is distributed under the same license as the hammer_cli_foreman_remote_execution package.
4
4
  #
5
5
  # Translators:
6
6
  # Pavel Borecki <pavel.borecki@gmail.com>, 2018,2020
@@ -8,7 +8,7 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: hammer_cli_foreman_remote_execution 0.3.3\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2023-07-12 15:59+0000\n"
11
+ "POT-Creation-Date: 2025-09-25 14:54+0000\n"
12
12
  "PO-Revision-Date: 2016-02-12 07:57+0000\n"
13
13
  "Last-Translator: Pavel Borecki <pavel.borecki@gmail.com>, 2018,2020\n"
14
14
  "Language-Team: Czech (Czech Republic) (http://app.transifex.com/foreman/"
@@ -179,6 +179,9 @@ msgstr "Poskytovatel"
179
179
  msgid "Type"
180
180
  msgstr "Typ"
181
181
 
182
+ msgid "Cloned from id"
183
+ msgstr ""
184
+
182
185
  msgid "View job template content"
183
186
  msgstr ""
184
187
 
@@ -297,6 +300,3 @@ msgstr ""
297
300
 
298
301
  msgid "Could not delete the template input"
299
302
  msgstr "Nedaří se smazat vstup šablony"
300
-
301
- msgid "Cloned from id"
302
- msgstr ""
@@ -1,6 +1,6 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the hammer-cli-foreman-remote-execution package.
3
+ # This file is distributed under the same license as the hammer_cli_foreman_remote_execution package.
4
4
  #
5
5
  # Translators:
6
6
  # Ettore Atalan <atalanttore@googlemail.com>, 2016,2023
@@ -9,7 +9,7 @@ msgid ""
9
9
  msgstr ""
10
10
  "Project-Id-Version: hammer_cli_foreman_remote_execution 0.3.3\n"
11
11
  "Report-Msgid-Bugs-To: \n"
12
- "POT-Creation-Date: 2023-07-12 15:59+0000\n"
12
+ "POT-Creation-Date: 2025-09-25 14:54+0000\n"
13
13
  "PO-Revision-Date: 2016-02-12 07:57+0000\n"
14
14
  "Last-Translator: Ettore Atalan <atalanttore@googlemail.com>, 2016,2023\n"
15
15
  "Language-Team: German (http://app.transifex.com/foreman/foreman/language/"
@@ -182,6 +182,9 @@ msgstr "Dienstanbieter"
182
182
  msgid "Type"
183
183
  msgstr "Typ"
184
184
 
185
+ msgid "Cloned from id"
186
+ msgstr ""
187
+
185
188
  msgid "View job template content"
186
189
  msgstr "Inhalte der Auftragsvorlagen ansehen"
187
190
 
@@ -309,6 +312,3 @@ msgstr ""
309
312
 
310
313
  msgid "Could not delete the template input"
311
314
  msgstr "Vorlageneingabe konnte nicht gelöscht werden"
312
-
313
- msgid "Cloned from id"
314
- msgstr ""
@@ -1,6 +1,6 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the hammer-cli-foreman-remote-execution package.
3
+ # This file is distributed under the same license as the hammer_cli_foreman_remote_execution package.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
6
  msgid ""
@@ -8,7 +8,7 @@ msgstr ""
8
8
  "Project-Id-Version: hammer_cli_foreman_remote_execution 0.3.3\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
10
  "POT-Creation-Date: 2025-09-25 14:54+0000\n"
11
- "PO-Revision-Date: 2023-07-12 15:59+0000\n"
11
+ "PO-Revision-Date: 2025-09-25 14:54+0000\n"
12
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
14
  "Language: \n"
@@ -1,13 +1,13 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the hammer-cli-foreman-remote-execution package.
3
+ # This file is distributed under the same license as the hammer_cli_foreman_remote_execution package.
4
4
  #
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: hammer_cli_foreman_remote_execution 0.3.3\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2023-07-12 15:59+0000\n"
10
+ "POT-Creation-Date: 2025-09-25 14:54+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: Spanish (http://app.transifex.com/foreman/foreman/language/"
@@ -179,6 +179,9 @@ msgstr "Proveedor"
179
179
  msgid "Type"
180
180
  msgstr "Tipo"
181
181
 
182
+ msgid "Cloned from id"
183
+ msgstr ""
184
+
182
185
  msgid "View job template content"
183
186
  msgstr "Ver el contenido de la plantilla"
184
187
 
@@ -306,6 +309,3 @@ msgstr ""
306
309
 
307
310
  msgid "Could not delete the template input"
308
311
  msgstr "No se ha podido eliminar la entrada de plantilla"
309
-
310
- msgid "Cloned from id"
311
- msgstr ""
@@ -1,6 +1,6 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the hammer-cli-foreman-remote-execution package.
3
+ # This file is distributed under the same license as the hammer_cli_foreman_remote_execution package.
4
4
  #
5
5
  # Translators:
6
6
  # Claer <transiblu@claer.hammock.fr>, 2016
@@ -9,7 +9,7 @@ msgid ""
9
9
  msgstr ""
10
10
  "Project-Id-Version: hammer_cli_foreman_remote_execution 0.3.3\n"
11
11
  "Report-Msgid-Bugs-To: \n"
12
- "POT-Creation-Date: 2023-07-12 15:59+0000\n"
12
+ "POT-Creation-Date: 2025-09-25 14:54+0000\n"
13
13
  "PO-Revision-Date: 2016-02-12 07:57+0000\n"
14
14
  "Last-Translator: Ewoud Kohl van Wijngaarden <ewoud"
15
15
  "+transifex@kohlvanwijngaarden.nl>, 2024\n"
@@ -185,6 +185,9 @@ msgstr "Fournisseur"
185
185
  msgid "Type"
186
186
  msgstr "Type"
187
187
 
188
+ msgid "Cloned from id"
189
+ msgstr ""
190
+
188
191
  msgid "View job template content"
189
192
  msgstr "Voir le contenu du modèle de travail"
190
193
 
@@ -313,6 +316,3 @@ msgstr "Entrée de modèle supprimée."
313
316
 
314
317
  msgid "Could not delete the template input"
315
318
  msgstr "Impossible de supprimer l'entrée du modèle"
316
-
317
- msgid "Cloned from id"
318
- msgstr ""
@@ -1,13 +1,13 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the hammer-cli-foreman-remote-execution package.
3
+ # This file is distributed under the same license as the hammer_cli_foreman_remote_execution package.
4
4
  #
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: hammer_cli_foreman_remote_execution 0.3.3\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2023-07-12 15:59+0000\n"
10
+ "POT-Creation-Date: 2025-09-25 14:54+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: Italian (http://app.transifex.com/foreman/foreman/language/"
@@ -178,6 +178,9 @@ msgstr "Provider"
178
178
  msgid "Type"
179
179
  msgstr "Tipo"
180
180
 
181
+ msgid "Cloned from id"
182
+ msgstr ""
183
+
181
184
  msgid "View job template content"
182
185
  msgstr ""
183
186
 
@@ -296,6 +299,3 @@ msgstr ""
296
299
 
297
300
  msgid "Could not delete the template input"
298
301
  msgstr ""
299
-
300
- msgid "Cloned from id"
301
- msgstr ""
@@ -1,13 +1,13 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the hammer-cli-foreman-remote-execution package.
3
+ # This file is distributed under the same license as the hammer_cli_foreman_remote_execution package.
4
4
  #
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: hammer_cli_foreman_remote_execution 0.3.3\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2023-07-12 15:59+0000\n"
10
+ "POT-Creation-Date: 2025-09-25 14:54+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: Japanese (http://app.transifex.com/foreman/foreman/language/"
@@ -177,6 +177,9 @@ msgstr "プロバイダー"
177
177
  msgid "Type"
178
178
  msgstr "タイプ"
179
179
 
180
+ msgid "Cloned from id"
181
+ msgstr ""
182
+
180
183
  msgid "View job template content"
181
184
  msgstr "ジョブテンプレートコンテンツを表示します"
182
185
 
@@ -304,6 +307,3 @@ msgstr "テンプレート入力が削除されました。"
304
307
 
305
308
  msgid "Could not delete the template input"
306
309
  msgstr "テンプレート入力を削除できませんでした"
307
-
308
- msgid "Cloned from id"
309
- msgstr ""
@@ -1,13 +1,13 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the hammer-cli-foreman-remote-execution package.
3
+ # This file is distributed under the same license as the hammer_cli_foreman_remote_execution package.
4
4
  #
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: hammer_cli_foreman_remote_execution 0.3.3\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2023-07-12 15:59+0000\n"
10
+ "POT-Creation-Date: 2025-09-25 14:54+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: Georgian (http://app.transifex.com/foreman/foreman/language/"
@@ -179,6 +179,9 @@ msgstr "სერვისის მომწოდებელი"
179
179
  msgid "Type"
180
180
  msgstr "ტიპი"
181
181
 
182
+ msgid "Cloned from id"
183
+ msgstr ""
184
+
182
185
  msgid "View job template content"
183
186
  msgstr "დავალების შაბლონის შემცველობის ნახვა"
184
187
 
@@ -305,6 +308,3 @@ msgstr ""
305
308
 
306
309
  msgid "Could not delete the template input"
307
310
  msgstr "შაბლონის შეყვანის წაშლის პრობლემა"
308
-
309
- msgid "Cloned from id"
310
- msgstr ""
@@ -1,13 +1,13 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the hammer-cli-foreman-remote-execution package.
3
+ # This file is distributed under the same license as the hammer_cli_foreman_remote_execution package.
4
4
  #
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: hammer_cli_foreman_remote_execution 0.3.3\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2023-07-12 15:59+0000\n"
10
+ "POT-Creation-Date: 2025-09-25 14:54+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: Korean (http://app.transifex.com/foreman/foreman/language/"
@@ -177,6 +177,9 @@ msgstr "공급처"
177
177
  msgid "Type"
178
178
  msgstr "유형 "
179
179
 
180
+ msgid "Cloned from id"
181
+ msgstr ""
182
+
180
183
  msgid "View job template content"
181
184
  msgstr "작업 템플릿 내용 보기"
182
185
 
@@ -303,6 +306,3 @@ msgstr "템플릿 입력이 삭제되었습니다."
303
306
 
304
307
  msgid "Could not delete the template input"
305
308
  msgstr "템플릿 입력을 삭제할 수 없습니다"
306
-
307
- msgid "Cloned from id"
308
- msgstr ""
@@ -1,13 +1,13 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the hammer-cli-foreman-remote-execution package.
3
+ # This file is distributed under the same license as the hammer_cli_foreman_remote_execution package.
4
4
  #
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: hammer_cli_foreman_remote_execution 0.3.3\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2023-07-12 15:59+0000\n"
10
+ "POT-Creation-Date: 2025-09-25 14:54+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: Portuguese (Brazil) (http://app.transifex.com/foreman/foreman/"
@@ -179,6 +179,9 @@ msgstr "Fornecedor"
179
179
  msgid "Type"
180
180
  msgstr "Tipo"
181
181
 
182
+ msgid "Cloned from id"
183
+ msgstr ""
184
+
182
185
  msgid "View job template content"
183
186
  msgstr "Ver o conteúdo do modelo de trabalho"
184
187
 
@@ -306,6 +309,3 @@ msgstr ""
306
309
 
307
310
  msgid "Could not delete the template input"
308
311
  msgstr "Não foi possível excluir a entrada do modelo"
309
-
310
- msgid "Cloned from id"
311
- msgstr ""
@@ -1,6 +1,6 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the hammer-cli-foreman-remote-execution package.
3
+ # This file is distributed under the same license as the hammer_cli_foreman_remote_execution package.
4
4
  #
5
5
  # Translators:
6
6
  # Yulia <yulia.poyarkova@redhat.com>, 2016
@@ -8,7 +8,7 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: hammer_cli_foreman_remote_execution 0.3.3\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2023-07-12 15:59+0000\n"
11
+ "POT-Creation-Date: 2025-09-25 14:54+0000\n"
12
12
  "PO-Revision-Date: 2016-02-12 07:57+0000\n"
13
13
  "Last-Translator: Yulia <yulia.poyarkova@redhat.com>, 2016\n"
14
14
  "Language-Team: Russian (http://app.transifex.com/foreman/foreman/language/"
@@ -183,6 +183,9 @@ msgstr "Провайдер"
183
183
  msgid "Type"
184
184
  msgstr "Тип"
185
185
 
186
+ msgid "Cloned from id"
187
+ msgstr ""
188
+
186
189
  msgid "View job template content"
187
190
  msgstr "Показать содержимое шаблона задания"
188
191
 
@@ -309,6 +312,3 @@ msgstr ""
309
312
 
310
313
  msgid "Could not delete the template input"
311
314
  msgstr "Не удалось удалить входной параметр"
312
-
313
- msgid "Cloned from id"
314
- msgstr ""
@@ -1,13 +1,13 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the hammer-cli-foreman-remote-execution package.
3
+ # This file is distributed under the same license as the hammer_cli_foreman_remote_execution package.
4
4
  #
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: hammer_cli_foreman_remote_execution 0.3.3\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2023-07-12 15:59+0000\n"
10
+ "POT-Creation-Date: 2025-09-25 14:54+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/"
@@ -177,6 +177,9 @@ msgstr "提供者"
177
177
  msgid "Type"
178
178
  msgstr "类型"
179
179
 
180
+ msgid "Cloned from id"
181
+ msgstr ""
182
+
180
183
  msgid "View job template content"
181
184
  msgstr "查看任务模板内容"
182
185
 
@@ -301,6 +304,3 @@ msgstr "模板输入已删除。"
301
304
 
302
305
  msgid "Could not delete the template input"
303
306
  msgstr "无法删除模板输入"
304
-
305
- msgid "Cloned from id"
306
- msgstr ""
@@ -1,13 +1,13 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the hammer-cli-foreman-remote-execution package.
3
+ # This file is distributed under the same license as the hammer_cli_foreman_remote_execution package.
4
4
  #
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: hammer_cli_foreman_remote_execution 0.3.3\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2023-07-12 15:59+0000\n"
10
+ "POT-Creation-Date: 2025-09-25 14:54+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/"
@@ -177,6 +177,9 @@ msgstr "供應商"
177
177
  msgid "Type"
178
178
  msgstr "類型"
179
179
 
180
+ msgid "Cloned from id"
181
+ msgstr ""
182
+
180
183
  msgid "View job template content"
181
184
  msgstr "新工作範本內容"
182
185
 
@@ -301,6 +304,3 @@ msgstr ""
301
304
 
302
305
  msgid "Could not delete the template input"
303
306
  msgstr "無法刪除範本輸入"
304
-
305
- msgid "Cloned from id"
306
- msgstr ""
@@ -108,4 +108,13 @@ describe HammerCLIForemanRemoteExecution::JobTemplate do
108
108
  '--provider-type=SSH']
109
109
  end
110
110
  end
111
+
112
+ describe 'CloneCommand' do
113
+ let(:cmd) { HammerCLIForemanRemoteExecution::JobTemplate::CloneCommand.new('', ctx) }
114
+
115
+ describe 'parameters' do
116
+ it_should_accept 'id and new-name', ['--id=1', '--new-name=Cloned Template']
117
+ it_should_accept 'name and new-name', ['--name=Parent Template', '--new-name=Cloned Template']
118
+ end
119
+ end
111
120
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.3
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman Remote Execution team
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  - !ruby/object:Gem::Version
129
129
  version: '0'
130
130
  requirements: []
131
- rubygems_version: 3.6.9
131
+ rubygems_version: 4.0.3
132
132
  specification_version: 4
133
133
  summary: CLI for the Foreman remote execution plugin
134
134
  test_files: