task-orchestrator 0.0.19 → 0.0.20
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 +7 -0
- data/lib/orchestrator/task.rb +2 -0
- data/lib/orchestrator/version.rb +1 -1
- metadata +28 -38
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: a575962afbab66ac5c73f7778673f80ccfaa386b
|
|
4
|
+
data.tar.gz: 8f327e8f6a3f5f2d7fa84a031c6747c56ad45f2d
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 6b0dce0179568b650dfe38b0f9b992b943eb5281bf2cab469151289db572e3f1ae0e6535220b96647d0b915470bbdd8ab4171a7a8c8d562c088ff4b02f048172
|
|
7
|
+
data.tar.gz: f8ee24a41149e9a057292bf7983090df650deb09a778589d47d17e4fa758cb3187f970878e4dd2e42a672ea4efde0aeaa8f45b2b8c105e13a7a14775d6e575cd
|
data/lib/orchestrator/task.rb
CHANGED
|
@@ -185,6 +185,7 @@ module Orchestrator
|
|
|
185
185
|
end
|
|
186
186
|
|
|
187
187
|
def validate_config
|
|
188
|
+
@state['ok_handler'] = validate_command(@state['ok_handler'], 'task success handler') if @state.has_key?('ok_handler')
|
|
188
189
|
@state['failure_handler'] = validate_command(@state['failure_handler'], 'task failure handler') if @state.has_key?('failure_handler')
|
|
189
190
|
if @state.has_key?('email')
|
|
190
191
|
invalid("config email recipients is missing or invalid") unless @state['email'].has_key?('recipients') && @state['email']['recipients'].is_a?(String) || @state['email']['recipients'].is_a?(Array)
|
|
@@ -265,6 +266,7 @@ module Orchestrator
|
|
|
265
266
|
end
|
|
266
267
|
|
|
267
268
|
def notify
|
|
269
|
+
run_script(@state['ok_handler']) if @state.has_key?('ok_handler')
|
|
268
270
|
Pony.mail(
|
|
269
271
|
:to => @state['email']['recipients'],
|
|
270
272
|
:from => @state['email']['from'],
|
data/lib/orchestrator/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,78 +1,69 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: task-orchestrator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 0.0.20
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Alexander Piavlo
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 2015-06-16 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: pony
|
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
none: false
|
|
18
16
|
requirements:
|
|
19
|
-
- -
|
|
17
|
+
- - ">="
|
|
20
18
|
- !ruby/object:Gem::Version
|
|
21
19
|
version: '0'
|
|
22
20
|
type: :runtime
|
|
23
21
|
prerelease: false
|
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
-
none: false
|
|
26
23
|
requirements:
|
|
27
|
-
- -
|
|
24
|
+
- - ">="
|
|
28
25
|
- !ruby/object:Gem::Version
|
|
29
26
|
version: '0'
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
|
31
28
|
name: popen4
|
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
|
33
|
-
none: false
|
|
34
30
|
requirements:
|
|
35
|
-
- -
|
|
31
|
+
- - ">="
|
|
36
32
|
- !ruby/object:Gem::Version
|
|
37
33
|
version: '0'
|
|
38
34
|
type: :runtime
|
|
39
35
|
prerelease: false
|
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
-
none: false
|
|
42
37
|
requirements:
|
|
43
|
-
- -
|
|
38
|
+
- - ">="
|
|
44
39
|
- !ruby/object:Gem::Version
|
|
45
40
|
version: '0'
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
|
47
42
|
name: formatador
|
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
|
49
|
-
none: false
|
|
50
44
|
requirements:
|
|
51
|
-
- -
|
|
45
|
+
- - ">="
|
|
52
46
|
- !ruby/object:Gem::Version
|
|
53
47
|
version: '0'
|
|
54
48
|
type: :runtime
|
|
55
49
|
prerelease: false
|
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
-
none: false
|
|
58
51
|
requirements:
|
|
59
|
-
- -
|
|
52
|
+
- - ">="
|
|
60
53
|
- !ruby/object:Gem::Version
|
|
61
54
|
version: '0'
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
|
63
56
|
name: rake
|
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
|
65
|
-
none: false
|
|
66
58
|
requirements:
|
|
67
|
-
- -
|
|
59
|
+
- - ">="
|
|
68
60
|
- !ruby/object:Gem::Version
|
|
69
61
|
version: '0'
|
|
70
62
|
type: :development
|
|
71
63
|
prerelease: false
|
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
73
|
-
none: false
|
|
74
65
|
requirements:
|
|
75
|
-
- -
|
|
66
|
+
- - ">="
|
|
76
67
|
- !ruby/object:Gem::Version
|
|
77
68
|
version: '0'
|
|
78
69
|
description: Simple task orchestration framework driven by Yaml config files
|
|
@@ -83,48 +74,47 @@ executables:
|
|
|
83
74
|
extensions: []
|
|
84
75
|
extra_rdoc_files: []
|
|
85
76
|
files:
|
|
77
|
+
- LICENSE
|
|
78
|
+
- README.md
|
|
86
79
|
- bin/orchestrator
|
|
87
|
-
-
|
|
88
|
-
-
|
|
89
|
-
- lib/orchestrator/version.rb
|
|
90
|
-
- lib/orchestrator/cli.rb
|
|
91
|
-
- examples/sequential
|
|
92
|
-
- examples/retry_handler
|
|
80
|
+
- examples/conditionals
|
|
81
|
+
- examples/dependencies
|
|
93
82
|
- examples/failure_handler
|
|
83
|
+
- examples/flock
|
|
84
|
+
- examples/interpolation
|
|
85
|
+
- examples/loops
|
|
94
86
|
- examples/multistep
|
|
95
87
|
- examples/parallel
|
|
96
|
-
- examples/
|
|
88
|
+
- examples/retry_handler
|
|
89
|
+
- examples/sequential
|
|
97
90
|
- examples/timeouts
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
-
-
|
|
91
|
+
- lib/orchestrator.rb
|
|
92
|
+
- lib/orchestrator/cli.rb
|
|
93
|
+
- lib/orchestrator/task.rb
|
|
94
|
+
- lib/orchestrator/version.rb
|
|
102
95
|
- task-orchestrator.gemspec
|
|
103
|
-
- LICENSE
|
|
104
|
-
- README.md
|
|
105
96
|
homepage: http://github.com/piavlo/task-orchestrator
|
|
106
97
|
licenses:
|
|
107
98
|
- MIT
|
|
99
|
+
metadata: {}
|
|
108
100
|
post_install_message:
|
|
109
101
|
rdoc_options: []
|
|
110
102
|
require_paths:
|
|
111
103
|
- lib
|
|
112
104
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
113
|
-
none: false
|
|
114
105
|
requirements:
|
|
115
|
-
- -
|
|
106
|
+
- - ">="
|
|
116
107
|
- !ruby/object:Gem::Version
|
|
117
108
|
version: '0'
|
|
118
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
|
-
none: false
|
|
120
110
|
requirements:
|
|
121
|
-
- -
|
|
111
|
+
- - ">="
|
|
122
112
|
- !ruby/object:Gem::Version
|
|
123
113
|
version: '0'
|
|
124
114
|
requirements: []
|
|
125
115
|
rubyforge_project:
|
|
126
|
-
rubygems_version:
|
|
116
|
+
rubygems_version: 2.2.2
|
|
127
117
|
signing_key:
|
|
128
|
-
specification_version:
|
|
118
|
+
specification_version: 4
|
|
129
119
|
summary: Simple task orchestration framework
|
|
130
120
|
test_files: []
|