lib/cfoundry/v2/app.rb in cfoundry-0.3.57 vs lib/cfoundry/v2/app.rb in cfoundry-0.3.58

- old
+ new

@@ -178,16 +178,18 @@ end alias :url= :uri= # Stop the application. def stop! - update! :state => "STOPPED" + self.state = "STOPPED" + update! end # Start the application. def start! - update! :state => "STARTED" + self.state = "STARTED" + update! end # Restart the application. def restart! stop! @@ -233,10 +235,10 @@ end # Check that all application instances are running. def healthy? # invalidate cache so the check is fresh - @manifest = nil + invalidate! health == "RUNNING" end alias_method :running?, :healthy? # Is the application stopped?