fate 0.2.14 → 0.2.15
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fate.rb +0 -2
- data/lib/fate/process_manager.rb +10 -1
- data/lib/fate/repl.rb +0 -2
- data/lib/fate/service.rb +5 -1
- metadata +37 -5
data/lib/fate.rb
CHANGED
data/lib/fate/process_manager.rb
CHANGED
@@ -119,7 +119,16 @@ class Fate
|
|
119
119
|
|
120
120
|
# list currently running commands
|
121
121
|
def running
|
122
|
-
names =
|
122
|
+
names = []
|
123
|
+
@names_by_pid.each do |pid, name|
|
124
|
+
begin
|
125
|
+
# Signal 0 checks for the process, but sends no signal.
|
126
|
+
Process.kill(0, pid)
|
127
|
+
names << name
|
128
|
+
rescue
|
129
|
+
end
|
130
|
+
end
|
131
|
+
names.sort
|
123
132
|
end
|
124
133
|
|
125
134
|
private
|
data/lib/fate/repl.rb
CHANGED
data/lib/fate/service.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
require "set"
|
2
2
|
|
3
|
+
gem "json-schema"
|
4
|
+
require "json-schema"
|
3
5
|
gem "squeeze"
|
4
6
|
require "squeeze/hash_tree"
|
5
7
|
|
@@ -92,7 +94,9 @@ class Fate
|
|
92
94
|
if @commands.has_key?(name)
|
93
95
|
targets << name
|
94
96
|
elsif @groups.has_key?(name)
|
95
|
-
|
97
|
+
@groups[name].each do |gname|
|
98
|
+
targets += resolve_commands(gname)
|
99
|
+
end
|
96
100
|
else
|
97
101
|
@commands.each do |cname, _command|
|
98
102
|
if cname.split(".").first == name
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.15
|
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:
|
12
|
+
date: 2013-01-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - '='
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: 0.2.
|
37
|
+
version: 0.2.8
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - '='
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0.2.
|
45
|
+
version: 0.2.8
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: squeeze
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -91,6 +91,38 @@ dependencies:
|
|
91
91
|
- - ! '>='
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: 1.0.10
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: starter
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 0.1.7
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 0.1.7
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: rspec
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 2.12.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 2.12.0
|
94
126
|
description:
|
95
127
|
email:
|
96
128
|
executables:
|
@@ -128,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
160
|
version: '0'
|
129
161
|
requirements: []
|
130
162
|
rubyforge_project:
|
131
|
-
rubygems_version: 1.8.
|
163
|
+
rubygems_version: 1.8.23
|
132
164
|
signing_key:
|
133
165
|
specification_version: 3
|
134
166
|
summary: Tool for running and interacting with a multi-process service
|