lib/cfoundry/v2/app.rb in cfoundry-2.4.1.rc1 vs lib/cfoundry/v2/app.rb in cfoundry-3.0.0

- old
+ new

@@ -135,22 +135,22 @@ self.state = "STOPPED" update! end # Start the application. - def start!(async = false, &blk) + def start!(&blk) self.state = "STARTED" - update!(async, &blk) + update!(&blk) end # Restart the application. - def restart!(async = false, &blk) + def restart!(&blk) stop! - start!(async, &blk) + start!(&blk) end - def update!(async = false) - response = @client.base.update_app(@guid, @diff, async) + def update! + response = @client.base.update_app(@guid, @diff) yield response[:headers]["x-app-staging-log"] if block_given? @manifest = @client.base.send(:parse_json, response[:body])