lib/cfoundry/v2/app.rb in cfoundry-0.3.40 vs lib/cfoundry/v2/app.rb in cfoundry-0.3.41

- old
+ new

@@ -42,10 +42,16 @@ @client.base.instances(@guid).collect do |i, m| Instance.new(self, i.to_s, @client, m) end end + def crashes + @client.base.crashes(@guid).collect do |m| + Instance.new(self, m[:instance], @client, m) + end + end + def stats stats = {} @client.base.stats(@guid).each do |idx, info| stats[idx.to_s] = info @@ -268,10 +274,12 @@ @manifest[:state] end alias_method :status, :state def since - Time.at(@manifest[:since]) + if since = @manifest[:since] + Time.at(@manifest[:since]) + end end def debugger return unless @manifest[:debug_ip] and @manifest[:debug_port]