foreman-tasks 0.9.3 → 0.9.4

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: d31cadc48f84c4f4caad24b0ad802d57aaf46f25
4
- data.tar.gz: f35037cdaadcdba4a71356606bf850c2e1114e79
3
+ metadata.gz: a742bb53eee4218bb416d13f27591864e779bc34
4
+ data.tar.gz: 3f229ddbcde5da4a71467ca6ae0c38fc8d54bab7
5
5
  SHA512:
6
- metadata.gz: 7c2b7ef02e4954ceb8d2e52694745bf51648665fe47ff43336c5544d8af786ac75ab39b86cf513ad906fb182f5387b553eb7fa3400fdfd32361080eae3afa9d4
7
- data.tar.gz: d4c9c8641b39bd7b60e1dcf68d40d74cbd3be262ef29312f3182db3136c2590e60b70d3c48f21f7c0310ba6ceffb0c9e7e9598e87de952de8607ae9490a6ec99
6
+ metadata.gz: 3c686088b57ac3eecbd7e7baeb7ef16d78fb7053eeebc98921747c60a547d3cfaf477aa30c48272385d9eadfa30256fa649d830e609eb18291b9f30e56adaf95
7
+ data.tar.gz: 699713e7bd48e5811d12cae6ff630ab77869cf0079f385defc106ba43851ebac14058f178c260ce5f81000ce4c1fe72132c2058c2af894f6cfd485ed3a2914f5
@@ -74,3 +74,5 @@ Style/FileName:
74
74
  Layout/IndentHeredoc:
75
75
  Exclude:
76
76
  - '*.gemspec'
77
+ - bin/*
78
+
@@ -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
@@ -37,23 +37,23 @@ class ArgvParser
37
37
  end
38
38
 
39
39
  def banner(file)
40
- banner = <<BANNER.strip_heredoc
41
- Run Dynflow executor for Foreman tasks.
40
+ banner = <<BANNER
41
+ Run Dynflow executor for Foreman tasks.
42
42
 
43
- Usage: #{File.basename(file)} [options] ACTION"
43
+ Usage: #{File.basename(file)} [options] ACTION"
44
44
 
45
- ACTION can be one of:
45
+ ACTION can be one of:
46
46
 
47
- * start - start the executor on background. It creates these files
48
- in tmp/pid directory:
47
+ * start - start the executor on background. It creates these files
48
+ in tmp/pid directory:
49
49
 
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
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
@@ -1,3 +1,3 @@
1
1
  module ForemanTasks
2
- VERSION = '0.9.3'.freeze
2
+ VERSION = '0.9.4'.freeze
3
3
  end
@@ -5,7 +5,7 @@
5
5
  #
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: foreman_tasks 0.1.2\n"
8
+ "Project-Id-Version: foreman_tasks 0.1.3\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
10
  "PO-Revision-Date: 2016-02-03 09:55-0500\n"
11
11
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
@@ -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-06-26 13:27+0200\n"
12
- "PO-Revision-Date: 2017-06-26 13:27+0200\n"
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:5
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:77
397
+ #: ../app/models/foreman_tasks/task.rb:87
398
398
  msgid "Delayed"
399
399
  msgstr ""
400
400
 
401
- #: ../app/models/foreman_tasks/task.rb:77
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 "Play Ansible roles"
757
+ msgid "Action with sub plans"
758
758
  msgstr ""
759
759
 
760
- #: action_names.rb:3
760
+ #: action_names.rb:5
761
761
  msgid "Remote action:"
762
762
  msgstr ""
763
763
 
764
764
  #: action_names.rb:6
765
- msgid "Action with sub plans"
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.3
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-06-26 00:00:00.000000000 Z
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