dynflow 1.0.3 → 1.0.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 +5 -5
- data/dynflow.gemspec +1 -1
- data/lib/dynflow/execution_plan.rb +3 -1
- data/lib/dynflow/middleware.rb +4 -0
- data/lib/dynflow/middleware/stack.rb +1 -1
- data/lib/dynflow/middleware/world.rb +1 -1
- data/lib/dynflow/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: '085cf607bfa2da0da617fa6d5b02b44db8ffc038'
|
|
4
|
+
data.tar.gz: d212611e59f46a686277f7318795239d5f36c109
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bd10ae9a1ccc68899f6723f646c7f32c9bb0d7ad5b463d94cdceed56a61ab42c83412206bd6e73f6983d627b4b2c58bcaf504676b9a3a4dce69781d4f90e2637
|
|
7
|
+
data.tar.gz: e08f5bac717d9898ebcbbbe12d79eedc2cc5175cbe911e57a79db65f24c9889b5a018e9220c3361baa4c1c23178c72684171fefb8d925729f980745218a5df03
|
data/dynflow.gemspec
CHANGED
|
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
|
7
7
|
s.version = Dynflow::VERSION
|
|
8
8
|
s.authors = ["Ivan Necas", "Petr Chalupa"]
|
|
9
9
|
s.email = ["inecas@redhat.com"]
|
|
10
|
-
s.homepage = "
|
|
10
|
+
s.homepage = "https://github.com/Dynflow/dynflow"
|
|
11
11
|
s.summary = "DYNamic workFLOW engine"
|
|
12
12
|
s.description = "Ruby workflow/orchestration engine"
|
|
13
13
|
s.license = "MIT"
|
|
@@ -142,7 +142,9 @@ module Dynflow
|
|
|
142
142
|
action_ids = records.compact.map { |record| record[:id] }
|
|
143
143
|
return if action_ids.empty?
|
|
144
144
|
persistence.load_actions(self, action_ids).each do |action|
|
|
145
|
-
|
|
145
|
+
world.middleware.execute(:hook, action, self) do
|
|
146
|
+
action.class.execution_plan_hooks.run(self, action, state)
|
|
147
|
+
end
|
|
146
148
|
end
|
|
147
149
|
end
|
|
148
150
|
|
data/lib/dynflow/middleware.rb
CHANGED
|
@@ -14,7 +14,7 @@ module Dynflow
|
|
|
14
14
|
@middleware_class = Child! middleware_class, Middleware
|
|
15
15
|
@middleware = middleware_class.new self
|
|
16
16
|
@action = Type! action, Dynflow::Action, NilClass
|
|
17
|
-
@method = Match! method, :delay, :plan, :run, :finalize, :plan_phase, :finalize_phase, :present
|
|
17
|
+
@method = Match! method, :delay, :plan, :run, :finalize, :plan_phase, :finalize_phase, :present, :hook
|
|
18
18
|
@next_stack = Type! next_stack, Middleware::Stack, Proc
|
|
19
19
|
end
|
|
20
20
|
|
|
@@ -14,7 +14,7 @@ module Dynflow
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def execute(method, action_or_class, *args, &block)
|
|
17
|
-
Match! method, :delay, :plan, :run, :finalize, :plan_phase, :finalize_phase, :present
|
|
17
|
+
Match! method, :delay, :plan, :run, :finalize, :plan_phase, :finalize_phase, :present, :hook
|
|
18
18
|
if Child? action_or_class, Dynflow::Action
|
|
19
19
|
action = nil
|
|
20
20
|
action_class = action_or_class
|
data/lib/dynflow/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dynflow
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Necas
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2018-
|
|
12
|
+
date: 2018-06-08 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: multi_json
|
|
@@ -582,7 +582,7 @@ files:
|
|
|
582
582
|
- web/views/show.erb
|
|
583
583
|
- web/views/world_validation_result.erb
|
|
584
584
|
- web/views/worlds.erb
|
|
585
|
-
homepage:
|
|
585
|
+
homepage: https://github.com/Dynflow/dynflow
|
|
586
586
|
licenses:
|
|
587
587
|
- MIT
|
|
588
588
|
metadata: {}
|
|
@@ -602,7 +602,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
602
602
|
version: '0'
|
|
603
603
|
requirements: []
|
|
604
604
|
rubyforge_project:
|
|
605
|
-
rubygems_version: 2.
|
|
605
|
+
rubygems_version: 2.6.12
|
|
606
606
|
signing_key:
|
|
607
607
|
specification_version: 4
|
|
608
608
|
summary: DYNamic workFLOW engine
|