escobar 0.3.10 → 0.3.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/escobar/heroku/dynos.rb +6 -0
- data/lib/escobar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6690baeea4ab9da1066839dccd231f41e5e0895c
|
4
|
+
data.tar.gz: e2663c8b3739197c48cd3999d4a8ed1d2543fdaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d98221a958cae10d5108155bd0c777517470272c43c0cee2a8c493886eac7340ee7d2607df2cb7390f4cf8751ed94cfb1897cbd45369754d0d066a14ce219354
|
7
|
+
data.tar.gz: 71552446ff413724bb9a759a80d5a6f4e93cc176922a44e7d130f6d3e16de8216f4acc5596243f77d31dfce8aa7f9d69a38e4dea0b3c1917065b71fdfda47692
|
data/lib/escobar/heroku/dynos.rb
CHANGED
@@ -17,6 +17,12 @@ module Escobar
|
|
17
17
|
@info ||= client.heroku.get("/apps/#{app_id}/dynos")
|
18
18
|
end
|
19
19
|
|
20
|
+
def running?(release_id)
|
21
|
+
info.all? do |dyno|
|
22
|
+
dyno["release"]["id"] == release_id && dyno["state"] == "up"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
20
26
|
def newer_than?(epoch)
|
21
27
|
info.all? do |dyno|
|
22
28
|
epoch < Time.parse(dyno["created_at"]).utc
|
data/lib/escobar/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: escobar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corey Donohoe
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|