foreman-tasks 0.7.13 → 0.7.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 540901d45b40d16fded94918dcf5e85a6837366c
4
- data.tar.gz: c170dac55f4b345385ff53bb29985535634816ff
3
+ metadata.gz: a5dbbae7a8675fb9d97a7d21be33d72cbd45f4d4
4
+ data.tar.gz: f21021b14686f9ef30107e46006f5848cfab2e9a
5
5
  SHA512:
6
- metadata.gz: 8126d89fc3a5fd2c579ffbae50baf44bdedf93986e052079db70dc683a80f255946014e741a075aa271617befa62347bad2c12cebd59520570891aed24706f4d
7
- data.tar.gz: 392ae556aab5d96b791d09a1929b439beaf21524981c48e97097a96336b5010082a3eb46b8fc30121cb99d66bbb70f85ad57d0483582aa7c2a05bd2147fd15dd
6
+ metadata.gz: 62b2eb609c97a3de3c62645205efaccb50b81270fd18f253b1dd617e792d432fde847e44371a38fe128b9d5df3daa08f43d48e988bf982a61bc71a59f4234a27
7
+ data.tar.gz: 07ba62f2aa4f72304325812584e34d3ac692fba4bc3a46b9a7a185532f2760ba6ecc4961776fe79d0c1f83806c2550d6fbe58eecfab5bd12840b375919f313f2
data/.gitignore ADDED
@@ -0,0 +1,15 @@
1
+ .bundle/
2
+ log/*.log
3
+ pkg/
4
+ test/dummy/db/*.sqlite3
5
+ test/dummy/db/*.sqlite3-journal
6
+ test/dummy/log/*.log
7
+ test/dummy/tmp/
8
+ test/dummy/.sass-cache
9
+ Gemfile.lock
10
+ .idea
11
+ .*.sw?
12
+ locale/*.mo
13
+ locale/*/*.pox
14
+ locale/*/*.edit.po
15
+ locale/*/*.po.time_stamp
data/.tx/config ADDED
@@ -0,0 +1,8 @@
1
+ [main]
2
+ host = https://www.transifex.com
3
+
4
+ [foreman.tasks]
5
+ file_filter = locale/<lang>/foreman_tasks.edit.po
6
+ source_file = locale/foreman_tasks.pot
7
+ source_lang = en
8
+ type = PO
data/Gemfile ADDED
@@ -0,0 +1,14 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Declare your gem's dependencies in tasks.gemspec.
4
+ # Bundler will treat runtime dependencies like base dependencies, and
5
+ # development dependencies will be added by default to the :development group.
6
+ gemspec
7
+
8
+ # Declare any dependencies that are still in development here instead of in
9
+ # your gemspec. These might include edge Rails or gems from your path or
10
+ # Git. Remember to move these dependencies to your gemspec before releasing
11
+ # your gem to rubygems.org.
12
+
13
+ # To use debugger
14
+ # gem 'debugger'
@@ -0,0 +1,34 @@
1
+ # -*- coding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+
4
+ # Maintain your gem's version:
5
+ require "foreman_tasks/version"
6
+
7
+ # Describe your gem and declare its dependencies:
8
+ Gem::Specification.new do |s|
9
+ s.name = "foreman-tasks"
10
+ s.version = ForemanTasks::VERSION
11
+ s.authors = ["Ivan Nečas"]
12
+ s.email = ["inecas@redhat.com"]
13
+ s.homepage = "https://github.com/theforeman/foreman-tasks"
14
+ s.summary = "Foreman plugin for showing tasks information for resoruces and users"
15
+ s.description = <<DESC
16
+ The goal of this plugin is to unify the way of showing task statuses across the Foreman instance.
17
+ It defines Task model for keeping the information about the tasks and Lock for assigning the tasks
18
+ to resources. The locking allows dealing with preventing multiple colliding tasks to be run on the
19
+ same resource. It also optionally provides Dynflow infrastructure for using it for managing the tasks.
20
+ DESC
21
+
22
+ s.files = `git ls-files`.split("\n").reject do |file|
23
+ file.end_with? "test.rake"
24
+ end
25
+
26
+ s.test_files = `git ls-files test`.split("\n")
27
+ s.extra_rdoc_files = Dir['README*', 'LICENSE']
28
+
29
+ s.add_dependency "dynflow", '~> 0.8.8'
30
+ s.add_dependency "sequel" # for Dynflow process persistence
31
+ s.add_dependency "sinatra" # for Dynflow web console
32
+ s.add_dependency "daemons" # for running remote executor
33
+ s.add_dependency "parse-cron", '~> 0.1.4'
34
+ end
@@ -1,3 +1,3 @@
1
1
  module ForemanTasks
2
- VERSION = "0.7.13"
2
+ VERSION = "0.7.14"
3
3
  end
data/locale/Makefile ADDED
@@ -0,0 +1,60 @@
1
+ #
2
+ # Makefile for PO merging and MO generation. More info in the README.
3
+ #
4
+ # make all-mo (default) - generate MO files
5
+ # make check - check translations using translate-tool
6
+ # make tx-update - download and merge translations from Transifex
7
+ # make clean - clean everything
8
+ #
9
+ DOMAIN = foreman_tasks
10
+ VERSION = $(shell ruby -e 'require "rubygems";spec = Gem::Specification::load(Dir.glob("../*.gemspec")[0]);puts spec.version')
11
+ POTFILE = $(DOMAIN).pot
12
+ MOFILE = $(DOMAIN).mo
13
+ POFILES = $(shell find . -name '$(DOMAIN).po')
14
+ MOFILES = $(patsubst %.po,%.mo,$(POFILES))
15
+ POXFILES = $(patsubst %.po,%.pox,$(POFILES))
16
+ EDITFILES = $(patsubst %.po,%.edit.po,$(POFILES))
17
+
18
+ %.mo: %.po
19
+ mkdir -p $(shell dirname $@)/LC_MESSAGES
20
+ msgfmt -o $(shell dirname $@)/LC_MESSAGES/$(MOFILE) $<
21
+
22
+ # Generate MO files from PO files
23
+ all-mo: $(MOFILES)
24
+
25
+ # Check for malformed strings
26
+ %.pox: %.po
27
+ msgfmt -c $<
28
+ pofilter --nofuzzy -t variables -t blank -t urls -t emails -t long -t newlines \
29
+ -t endwhitespace -t endpunc -t puncspacing -t options -t printf -t validchars --gnome $< > $@
30
+ cat $@
31
+ ! grep -q msgid $@
32
+
33
+ %.edit.po:
34
+ touch $@
35
+
36
+ check: $(POXFILES)
37
+
38
+ # Unify duplicate translations
39
+ uniq-po:
40
+ for f in $(shell find ./ -name "*.po") ; do \
41
+ msguniq $$f -o $$f ; \
42
+ done
43
+
44
+ tx-pull: $(EDITFILES)
45
+ tx pull -f
46
+ for f in $(EDITFILES) ; do \
47
+ sed -i 's/^\("Project-Id-Version: \).*$$/\1$(DOMAIN) $(VERSION)\\n"/' $$f; \
48
+ done
49
+
50
+ tx-update: tx-pull
51
+ @echo
52
+ @echo Run rake plugin:gettext[$(DOMAIN)] from the Foreman installation, then make -C locale mo-files to finish
53
+ @echo
54
+
55
+ mo-files: $(MOFILES)
56
+ git add $(POFILES) $(POTFILE) ../locale/*/LC_MESSAGES
57
+ git commit -m "i18n - pulling from tx"
58
+ @echo
59
+ @echo Changes commited!
60
+ @echo
@@ -0,0 +1,7 @@
1
+ # Autogenerated!
2
+ _("Action with sub plans")
3
+ _("Import Puppet classes")
4
+ _("Create architecture")
5
+ _("Import facts")
6
+ _("Update architecture")
7
+ _("Delete architecture")
@@ -0,0 +1,520 @@
1
+ # English translations for foreman_tasks package.
2
+ # Copyright (C) 2016 THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the foreman_tasks package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: foreman_tasks 1.0.0\n"
9
+ "Report-Msgid-Bugs-To: \n"
10
+ "PO-Revision-Date: 2016-02-03 09:55-0500\n"
11
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
12
+ "Language-Team: English\n"
13
+ "Language: en\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
18
+ "\n"
19
+
20
+ msgid "List recurring logics"
21
+ msgstr ""
22
+
23
+ msgid "Show recurring logic details"
24
+ msgstr ""
25
+
26
+ msgid "Cancel recurring logic"
27
+ msgstr ""
28
+
29
+ msgid "Resume all paused error tasks"
30
+ msgstr ""
31
+
32
+ msgid "Resume tasks matching search string"
33
+ msgstr ""
34
+
35
+ msgid "Resume specific tasks by ID"
36
+ msgstr ""
37
+
38
+ msgid "List tasks"
39
+ msgstr ""
40
+
41
+ msgid "Search string"
42
+ msgstr ""
43
+
44
+ msgid "Page number, starting at 1"
45
+ msgstr ""
46
+
47
+ msgid "Number of results per page to return"
48
+ msgstr ""
49
+
50
+ msgid "Sort field and order, e.g. 'name DESC'"
51
+ msgstr ""
52
+
53
+ msgid "Hash version of 'order' param"
54
+ msgstr ""
55
+
56
+ msgid "Field to sort the results on"
57
+ msgstr ""
58
+
59
+ msgid "How to order the sorted results (e.g. ASC for ascending)"
60
+ msgstr ""
61
+
62
+ msgid "Send data to the task from external executor (such as smart_proxy_dynflow)"
63
+ msgstr ""
64
+
65
+ msgid "UUID of the task"
66
+ msgstr ""
67
+
68
+ msgid "The ID of the step inside the execution plan to send the event to"
69
+ msgstr ""
70
+
71
+ msgid "Data to be sent to the action"
72
+ msgstr ""
73
+
74
+ msgid "User search_params requires user_id to be specified"
75
+ msgstr ""
76
+
77
+ msgid "Resource search_params requires resource_type and resource_id to be specified"
78
+ msgstr ""
79
+
80
+ msgid "Task search_params requires task_id to be specified"
81
+ msgstr ""
82
+
83
+ msgid "Type %s for search_params is not supported"
84
+ msgstr ""
85
+
86
+ msgid "Added import task to queue, it will be run shortly"
87
+ msgstr ""
88
+
89
+ msgid "Failed to add task to queue: %s"
90
+ msgstr ""
91
+
92
+ msgid "Trying to cancel step %s"
93
+ msgstr ""
94
+
95
+ msgid "Trying to cancel the task"
96
+ msgstr ""
97
+
98
+ msgid "The task cannot be cancelled at the moment."
99
+ msgstr ""
100
+
101
+ msgid "The execution was resumed."
102
+ msgstr ""
103
+
104
+ msgid "The execution has to be resumable."
105
+ msgstr ""
106
+
107
+ msgid "The task resources were unlocked."
108
+ msgstr ""
109
+
110
+ msgid "The execution has to be paused."
111
+ msgstr ""
112
+
113
+ msgid "The task resources were unlocked with force."
114
+ msgstr ""
115
+
116
+ msgid "Cancel"
117
+ msgstr ""
118
+
119
+ msgid "Start at"
120
+ msgstr ""
121
+
122
+ msgid "Start before"
123
+ msgstr ""
124
+
125
+ msgid ""
126
+ "Indicates that the action should be cancelled if it cannot be started before t"
127
+ "his time."
128
+ msgstr ""
129
+
130
+ msgid "Explanation"
131
+ msgstr ""
132
+
133
+ msgid "Repeats"
134
+ msgstr ""
135
+
136
+ #. TRANSLATORS: this translation is referring to an option which is a time interval
137
+ msgid "is minute (range: 0-59)"
138
+ msgstr ""
139
+
140
+ #. TRANSLATORS: this translation is referring to an option which is a time interval
141
+ msgid "is hour (range: 0-23)"
142
+ msgstr ""
143
+
144
+ #. TRANSLATORS: this translation is referring to an option which is a time interval
145
+ msgid "is day of month (range: 1-31)"
146
+ msgstr ""
147
+
148
+ #. TRANSLATORS: this translation is referring to an option which is a time interval
149
+ msgid "is month (range: 1-12)"
150
+ msgstr ""
151
+
152
+ #. TRANSLATORS: this translation is referring to an option which is a time interval
153
+ msgid "is day of week (range: 0-6)"
154
+ msgstr ""
155
+
156
+ msgid "Cron line format 'a b c d e', where: %s"
157
+ msgstr ""
158
+
159
+ msgid "Cron line"
160
+ msgstr ""
161
+
162
+ msgid "Days"
163
+ msgstr ""
164
+
165
+ msgid "Days of week"
166
+ msgstr ""
167
+
168
+ msgid "Mon"
169
+ msgstr ""
170
+
171
+ msgid "Tue"
172
+ msgstr ""
173
+
174
+ msgid "Wed"
175
+ msgstr ""
176
+
177
+ msgid "Thu"
178
+ msgstr ""
179
+
180
+ msgid "Fri"
181
+ msgstr ""
182
+
183
+ msgid "Sat"
184
+ msgstr ""
185
+
186
+ msgid "Sun"
187
+ msgstr ""
188
+
189
+ #. TRANSLATORS: Time widget for when a task should start
190
+ msgid "At"
191
+ msgstr ""
192
+
193
+ msgid "Repeat N times"
194
+ msgstr ""
195
+
196
+ msgid "Ends"
197
+ msgstr ""
198
+
199
+ msgid "Never"
200
+ msgstr ""
201
+
202
+ #. TRANSLATORS: Button text for saying when a task should end
203
+ msgid "On"
204
+ msgstr ""
205
+
206
+ msgid "Ends at"
207
+ msgstr ""
208
+
209
+ msgid "Unlimited"
210
+ msgstr ""
211
+
212
+ msgid "%{total} task(s), %{success} success, %{failed} fail"
213
+ msgstr ""
214
+
215
+ msgid "Bulk action"
216
+ msgstr ""
217
+
218
+ msgid "Empty bulk action"
219
+ msgstr ""
220
+
221
+ msgid "The targets are of different types"
222
+ msgstr ""
223
+
224
+ msgid "Create architecture"
225
+ msgstr ""
226
+
227
+ msgid "Delete architecture"
228
+ msgstr ""
229
+
230
+ msgid "Update architecture"
231
+ msgstr ""
232
+
233
+ msgid "Import facts"
234
+ msgstr ""
235
+
236
+ msgid "Import Puppet classes"
237
+ msgstr ""
238
+
239
+ msgid "activation key"
240
+ msgstr ""
241
+
242
+ msgid "user"
243
+ msgstr ""
244
+
245
+ msgid "repository"
246
+ msgstr ""
247
+
248
+ msgid "content view version"
249
+ msgstr ""
250
+
251
+ msgid "content view"
252
+ msgstr ""
253
+
254
+ msgid "product"
255
+ msgstr ""
256
+
257
+ msgid "system"
258
+ msgstr ""
259
+
260
+ msgid "organization"
261
+ msgstr ""
262
+
263
+ msgid "The smart proxy task %s failed."
264
+ msgstr ""
265
+
266
+ msgid "Cancel enforced: the task might be still running on the proxy"
267
+ msgstr ""
268
+
269
+ msgid "Required lock is already taken by other running tasks."
270
+ msgstr ""
271
+
272
+ msgid "Please inspect their state, fix their errors and resume them."
273
+ msgstr ""
274
+
275
+ msgid "Required lock: %s"
276
+ msgstr ""
277
+
278
+ msgid "Conflicts with tasks:"
279
+ msgstr ""
280
+
281
+ msgid "Active"
282
+ msgstr ""
283
+
284
+ msgid "Cancelled"
285
+ msgstr ""
286
+
287
+ msgid "Finished"
288
+ msgstr ""
289
+
290
+ msgid "N/A"
291
+ msgstr ""
292
+
293
+ msgid "Recurring logic"
294
+ msgstr ""
295
+
296
+ msgid "%{value} is not allowed triggering mode"
297
+ msgstr ""
298
+
299
+ msgid "%{value} is not allowed input type"
300
+ msgstr ""
301
+
302
+ msgid "%{value} is wrong format"
303
+ msgstr ""
304
+
305
+ msgid "%s is not valid format of cron line"
306
+ msgstr ""
307
+
308
+ msgid "Allow unlocking actions which can have dangerous consequences."
309
+ msgstr ""
310
+
311
+ msgid "Enable the dynflow console (/foreman_tasks/dynflow) for debugging"
312
+ msgstr ""
313
+
314
+ msgid ""
315
+ "Require user to be authenticated as user with admin rights when accessing dynf"
316
+ "low console"
317
+ msgstr ""
318
+
319
+ msgid "Number of attempts to start a task on the smart proxy before failing"
320
+ msgstr ""
321
+
322
+ msgid "Time in seconds between retries"
323
+ msgstr ""
324
+
325
+ msgid "Time in second during which a task has to be started on the proxy"
326
+ msgstr ""
327
+
328
+ msgid "Schedule"
329
+ msgstr ""
330
+
331
+ msgid "Execute now"
332
+ msgstr ""
333
+
334
+ msgid "Schedule future execution"
335
+ msgstr ""
336
+
337
+ msgid "Set up recurring execution"
338
+ msgstr ""
339
+
340
+ msgid "Recurring logics"
341
+ msgstr ""
342
+
343
+ msgid "Task count"
344
+ msgstr ""
345
+
346
+ msgid "Action"
347
+ msgstr ""
348
+
349
+ msgid "Last occurrence"
350
+ msgstr ""
351
+
352
+ msgid "Next occurrence"
353
+ msgstr ""
354
+
355
+ msgid "Current iteration"
356
+ msgstr ""
357
+
358
+ msgid "Iteration limit"
359
+ msgstr ""
360
+
361
+ msgid "Repeat until"
362
+ msgstr ""
363
+
364
+ msgid "State"
365
+ msgstr ""
366
+
367
+ msgid "Details"
368
+ msgstr ""
369
+
370
+ msgid "ID"
371
+ msgstr ""
372
+
373
+ msgid "Task group common"
374
+ msgstr ""
375
+
376
+ msgid "Associated resources"
377
+ msgstr ""
378
+
379
+ msgid "Auto Reload"
380
+ msgstr ""
381
+
382
+ msgid "Dynflow console"
383
+ msgstr ""
384
+
385
+ msgid "Resume"
386
+ msgstr ""
387
+
388
+ msgid "Unlock"
389
+ msgstr ""
390
+
391
+ msgid "Force Unlock"
392
+ msgstr ""
393
+
394
+ msgid ""
395
+ "This will unlock the resources that the task is running against. Please note t"
396
+ "hat this might lead to inconsistent state and should be used with caution, aft"
397
+ "er making sure that the task can't be resumed."
398
+ msgstr ""
399
+
400
+ msgid ""
401
+ "I understand that this may cause harm and have working database backups of all"
402
+ " backend services."
403
+ msgstr ""
404
+
405
+ msgid ""
406
+ "Resources will be unlocked and will not prevent other tasks from being run. As"
407
+ " the task might be still running, it should be avoided to use this unless you "
408
+ "are really sure the task got stuck"
409
+ msgstr ""
410
+
411
+ msgid "Id"
412
+ msgstr ""
413
+
414
+ msgid "Label"
415
+ msgstr ""
416
+
417
+ msgid "Name"
418
+ msgstr ""
419
+
420
+ msgid "Owner"
421
+ msgstr ""
422
+
423
+ msgid "Execution type"
424
+ msgstr ""
425
+
426
+ msgid "Immediate"
427
+ msgstr ""
428
+
429
+ msgid "Delayed"
430
+ msgstr ""
431
+
432
+ msgid "Started at"
433
+ msgstr ""
434
+
435
+ msgid "Ended at"
436
+ msgstr ""
437
+
438
+ msgid "Result"
439
+ msgstr ""
440
+
441
+ msgid "Params"
442
+ msgstr ""
443
+
444
+ msgid "Parent task"
445
+ msgstr ""
446
+
447
+ msgid "Sub tasks"
448
+ msgstr ""
449
+
450
+ msgid "Output"
451
+ msgstr ""
452
+
453
+ msgid "Errors"
454
+ msgstr ""
455
+
456
+ msgid "No errors"
457
+ msgstr ""
458
+
459
+ msgid "Input"
460
+ msgstr ""
461
+
462
+ msgid "Exception"
463
+ msgstr ""
464
+
465
+ msgid "Backtrace"
466
+ msgstr ""
467
+
468
+ msgid "Raw input"
469
+ msgstr ""
470
+
471
+ msgid "Raw output"
472
+ msgstr ""
473
+
474
+ msgid "External Id"
475
+ msgstr ""
476
+
477
+ msgid "No running steps"
478
+ msgstr ""
479
+
480
+ msgid "Latest Warning/Error Tasks"
481
+ msgstr ""
482
+
483
+ msgid "Task Status"
484
+ msgstr ""
485
+
486
+ msgid "No. of Tasks"
487
+ msgstr ""
488
+
489
+ msgid "Tasks"
490
+ msgstr ""
491
+
492
+ msgid "User"
493
+ msgstr ""
494
+
495
+ msgid "Stop auto-reloading"
496
+ msgstr ""
497
+
498
+ msgid "Start auto-reloading"
499
+ msgstr ""
500
+
501
+ msgid "Task"
502
+ msgstr ""
503
+
504
+ msgid "Running Steps"
505
+ msgstr ""
506
+
507
+ msgid "Locks"
508
+ msgstr ""
509
+
510
+ msgid "Raw"
511
+ msgstr ""
512
+
513
+ msgid "Tasks Status table"
514
+ msgstr ""
515
+
516
+ msgid "Tasks in Error/Warning"
517
+ msgstr ""
518
+
519
+ msgid "Action with sub plans"
520
+ msgstr ""