crack_pipe 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/crack_pipe/action/exec.rb +1 -0
- data/lib/crack_pipe/action.rb +8 -0
- data/lib/crack_pipe/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fa69e90cc9e841966e6651c94022c2c8d681524
|
4
|
+
data.tar.gz: 51f93274e6266fd7719ea7ab22f65f9f8cffaace
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43ce34d2f457616bd614a6098c12aa3be3cd4f83d7c680065751c6886532af6cf114a4b6c0c70d12b8151d74b443c531fdc007134499a379bc9fcfcca41682c8
|
7
|
+
data.tar.gz: 3a7590c007d3d101ebec37576ce00b4e96e823a54e18950b22ed5d90ed44e7030b0c6e44a31f2286b81f207035464ba4e0c20f559da7941a23062ecba92fd9fb
|
@@ -14,6 +14,7 @@ module CrackPipe
|
|
14
14
|
action.steps.each_with_object([]) do |s, results|
|
15
15
|
next unless track == s.track
|
16
16
|
results!(results, action, s, context).last.tap do |r|
|
17
|
+
action.after_flow_control(r)
|
17
18
|
context = r[:context]
|
18
19
|
track = r[:next]
|
19
20
|
return results if r[:signal] == :halt
|
data/lib/crack_pipe/action.rb
CHANGED
@@ -58,6 +58,14 @@ module CrackPipe
|
|
58
58
|
Exec.(self, context)
|
59
59
|
end
|
60
60
|
|
61
|
+
# NOTE: This hook is here if you absolutely must do something to mutate the
|
62
|
+
# last flow control hash after a step has been executed. You can alter the
|
63
|
+
# context before it is passed to another step, insert a signal, or even pass
|
64
|
+
# custom key/value pairs that may be useful for debugging.
|
65
|
+
def after_flow_control(flow_control_hash)
|
66
|
+
flow_control_hash
|
67
|
+
end
|
68
|
+
|
61
69
|
# NOTE: While this hook does nothing by default, it is here with the
|
62
70
|
# intention of dealing with potential default values being generated either
|
63
71
|
# for output or adding values to the context. A common example would be
|
data/lib/crack_pipe/version.rb
CHANGED