foreman-tasks 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -102,14 +102,10 @@ module ForemanTasks
|
|
102
102
|
else
|
103
103
|
raise 'unexpected method'
|
104
104
|
end
|
105
|
-
if action
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
sync_action_flag_reset!
|
110
|
-
end
|
111
|
-
else
|
112
|
-
yield
|
105
|
+
ensure_not_in_transaction! if action
|
106
|
+
yield.tap do |result|
|
107
|
+
execute_planned_action if result
|
108
|
+
sync_action_flag_reset!
|
113
109
|
end
|
114
110
|
ensure
|
115
111
|
@_dynflow_task_wrapped = false
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman-tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-05-
|
12
|
+
date: 2014-05-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|