foreman-tasks 0.9.3 → 0.9.4
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/.rubocop.yml +2 -0
- data/app/models/foreman_tasks/task.rb +10 -0
- data/bin/dynflow-executor +13 -13
- data/lib/foreman_tasks/version.rb +1 -1
- data/locale/en/LC_MESSAGES/foreman_tasks.mo +0 -0
- data/locale/en/foreman_tasks.po +1 -1
- data/locale/foreman_tasks.pot +8 -8
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a742bb53eee4218bb416d13f27591864e779bc34
|
|
4
|
+
data.tar.gz: 3f229ddbcde5da4a71467ca6ae0c38fc8d54bab7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3c686088b57ac3eecbd7e7baeb7ef16d78fb7053eeebc98921747c60a547d3cfaf477aa30c48272385d9eadfa30256fa649d830e609eb18291b9f30e56adaf95
|
|
7
|
+
data.tar.gz: 699713e7bd48e5811d12cae6ff630ab77869cf0079f385defc106ba43851ebac14058f178c260ce5f81000ce4c1fe72132c2058c2af894f6cfd485ed3a2914f5
|
data/.rubocop.yml
CHANGED
|
@@ -4,6 +4,16 @@ module ForemanTasks
|
|
|
4
4
|
class Task < ActiveRecord::Base
|
|
5
5
|
include Authorizable
|
|
6
6
|
|
|
7
|
+
def check_permissions_after_save
|
|
8
|
+
# there's no create_tasks permission, tasks are created as a result of internal actions, in such case we
|
|
9
|
+
# don't do authorization, that should have been performed on wrapping action level
|
|
10
|
+
if id_changed?
|
|
11
|
+
true
|
|
12
|
+
else
|
|
13
|
+
super
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
|
|
7
17
|
# TODO: missing validation of states
|
|
8
18
|
|
|
9
19
|
self.primary_key = :id
|
data/bin/dynflow-executor
CHANGED
|
@@ -37,23 +37,23 @@ class ArgvParser
|
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
def banner(file)
|
|
40
|
-
banner = <<BANNER
|
|
41
|
-
|
|
40
|
+
banner = <<BANNER
|
|
41
|
+
Run Dynflow executor for Foreman tasks.
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
Usage: #{File.basename(file)} [options] ACTION"
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
ACTION can be one of:
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
* start - start the executor on background. It creates these files
|
|
48
|
+
in tmp/pid directory:
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
* dynflow_executor_monitor.pid - pid of monitor ensuring
|
|
51
|
+
the executor keeps running
|
|
52
|
+
* dynflow_executor.pid - pid of the executor itself
|
|
53
|
+
* dynflow_executor.output - stdout of the executor
|
|
54
|
+
* stop - stops the running executor
|
|
55
|
+
* restart - restarts the running executor
|
|
56
|
+
* run - run the executor in foreground
|
|
57
57
|
|
|
58
58
|
BANNER
|
|
59
59
|
banner
|
|
Binary file
|
data/locale/en/foreman_tasks.po
CHANGED
data/locale/foreman_tasks.pot
CHANGED
|
@@ -8,8 +8,8 @@ msgid ""
|
|
|
8
8
|
msgstr ""
|
|
9
9
|
"Project-Id-Version: foreman_tasks 1.0.0\n"
|
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
|
11
|
-
"POT-Creation-Date: 2017-
|
|
12
|
-
"PO-Revision-Date: 2017-
|
|
11
|
+
"POT-Creation-Date: 2017-07-11 18:00+0200\n"
|
|
12
|
+
"PO-Revision-Date: 2017-07-11 18:00+0200\n"
|
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
15
|
"Language: \n"
|
|
@@ -302,7 +302,7 @@ msgstr ""
|
|
|
302
302
|
msgid "The targets are of different types"
|
|
303
303
|
msgstr ""
|
|
304
304
|
|
|
305
|
-
#: ../app/lib/actions/foreman/host/import_facts.rb:38 action_names.rb:
|
|
305
|
+
#: ../app/lib/actions/foreman/host/import_facts.rb:38 action_names.rb:3
|
|
306
306
|
msgid "Import facts"
|
|
307
307
|
msgstr ""
|
|
308
308
|
|
|
@@ -394,11 +394,11 @@ msgstr ""
|
|
|
394
394
|
msgid "Finished"
|
|
395
395
|
msgstr ""
|
|
396
396
|
|
|
397
|
-
#: ../app/models/foreman_tasks/task.rb:
|
|
397
|
+
#: ../app/models/foreman_tasks/task.rb:87
|
|
398
398
|
msgid "Delayed"
|
|
399
399
|
msgstr ""
|
|
400
400
|
|
|
401
|
-
#: ../app/models/foreman_tasks/task.rb:
|
|
401
|
+
#: ../app/models/foreman_tasks/task.rb:87
|
|
402
402
|
msgid "Immediate"
|
|
403
403
|
msgstr ""
|
|
404
404
|
|
|
@@ -754,13 +754,13 @@ msgid "Recurring Logics"
|
|
|
754
754
|
msgstr ""
|
|
755
755
|
|
|
756
756
|
#: action_names.rb:2
|
|
757
|
-
msgid "
|
|
757
|
+
msgid "Action with sub plans"
|
|
758
758
|
msgstr ""
|
|
759
759
|
|
|
760
|
-
#: action_names.rb:
|
|
760
|
+
#: action_names.rb:5
|
|
761
761
|
msgid "Remote action:"
|
|
762
762
|
msgstr ""
|
|
763
763
|
|
|
764
764
|
#: action_names.rb:6
|
|
765
|
-
msgid "
|
|
765
|
+
msgid "Play Ansible roles"
|
|
766
766
|
msgstr ""
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman-tasks
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Nečas
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-07-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: foreman-tasks-core
|