cfoundry 0.3.40 → 0.3.41
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cfoundry/v2/app.rb +9 -1
- data/lib/cfoundry/v2/base.rb +4 -0
- data/lib/cfoundry/version.rb +1 -1
- metadata +4 -4
data/lib/cfoundry/v2/app.rb
CHANGED
@@ -44,6 +44,12 @@ module CFoundry::V2
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
+
def crashes
|
48
|
+
@client.base.crashes(@guid).collect do |m|
|
49
|
+
Instance.new(self, m[:instance], @client, m)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
47
53
|
def stats
|
48
54
|
stats = {}
|
49
55
|
|
@@ -270,7 +276,9 @@ module CFoundry::V2
|
|
270
276
|
alias_method :status, :state
|
271
277
|
|
272
278
|
def since
|
273
|
-
|
279
|
+
if since = @manifest[:since]
|
280
|
+
Time.at(@manifest[:since])
|
281
|
+
end
|
274
282
|
end
|
275
283
|
|
276
284
|
def debugger
|
data/lib/cfoundry/v2/base.rb
CHANGED
@@ -104,6 +104,10 @@ module CFoundry::V2
|
|
104
104
|
get("v2", "apps", guid, "instances", nil => :json)
|
105
105
|
end
|
106
106
|
|
107
|
+
def crashes(guid)
|
108
|
+
get("v2", "apps", guid, "crashes", nil => :json)
|
109
|
+
end
|
110
|
+
|
107
111
|
def stats(guid)
|
108
112
|
get("v2", "apps", guid, "stats", nil => :json)
|
109
113
|
end
|
data/lib/cfoundry/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cfoundry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 65
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 41
|
10
|
+
version: 0.3.41
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alex Suraci
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-10-
|
18
|
+
date: 2012-10-11 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rest-client
|