grid_runner 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -1
- data/grid_runner-0.0.3.gem +0 -0
- data/lib/grid_runner/applications.rb +9 -1
- data/lib/grid_runner/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7dea49a431b5ff8db24f1b06fb785c891f7ca87
|
4
|
+
data.tar.gz: d609049c7c8709c2556428a8ee56658ea0ac6433
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14ed1e1240f475b84b7e7e0a27da27d74315bd73311b97aaf244cd4dcd3a593746070adaff220d0093992f491cb5ad1d1dccaa700e5b6c1c69f4b78f5ee87a38
|
7
|
+
data.tar.gz: 3b5f5f00cff814228eb5550795a212d8503f52ac1ff33705f210a3db855ac701b9a31f3898f9b0be4d4c08c5bc8b707c87ed2b572809192b9b219e0c5380679f
|
data/Gemfile.lock
CHANGED
Binary file
|
@@ -69,11 +69,19 @@ class App
|
|
69
69
|
|
70
70
|
private
|
71
71
|
|
72
|
+
def self.app_process_from_grep(stdout)
|
73
|
+
stdout.split(/\n/).find do |l|
|
74
|
+
(l.match("sbt") || l.match("elasticsearch")) &&
|
75
|
+
!l.match("grep") &&
|
76
|
+
!l.match("grid_runner")
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
72
80
|
def self.ps_out(name)
|
73
81
|
stdout, stderr, cmd_status = Open3.capture3("ps aux | grep #{name}")
|
74
82
|
if cmd_status.success?
|
75
83
|
# find processes that are either sbt or ES, and filter out the grep command itself
|
76
|
-
if p = stdout
|
84
|
+
if p = app_process_from_grep(stdout)
|
77
85
|
proc_status = :running
|
78
86
|
pid = p.match(/\d{1,8}\s/)[0]
|
79
87
|
else
|
data/lib/grid_runner/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grid_runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- NickyPStraightStylinOnEm
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -80,6 +80,7 @@ files:
|
|
80
80
|
- Rakefile
|
81
81
|
- bin/grid_runner
|
82
82
|
- grid_runner-0.0.1.gem
|
83
|
+
- grid_runner-0.0.3.gem
|
83
84
|
- grid_runner.gemspec
|
84
85
|
- grid_runner.rdoc
|
85
86
|
- lib/grid_runner.rb
|