lib/cfoundry/v2/app.rb in cfoundry-2.0.0 vs lib/cfoundry/v2/app.rb in cfoundry-2.0.1.rc1

- old
+ new

@@ -166,11 +166,11 @@ end # Determine application health. # # If all instances are running, returns "RUNNING". If only some are - # started, returns the precentage of them that are healthy. + # started, returns the percentage of them that are healthy. # # Otherwise, returns application's status. def health if state == "STARTED" healthy_count = running_instances @@ -187,9 +187,11 @@ "N/A" end else state end + rescue CFoundry::StagingError + "STAGING FAILED" end def running_instances return @cache[:running_instances] if @cache[:running_instances]