README.md in paratrooper-2.4.0 vs README.md in paratrooper-2.4.1

- old
+ new

@@ -1,10 +1,11 @@ ![Paratrooper](http://f.cl.ly/items/0Z1v1P1l1B1h1k1l2q0E/paratrooper_header.png) [![Gem Version](https://badge.fury.io/rb/paratrooper.png)](http://badge.fury.io/rb/paratrooper) [![Build Status](https://travis-ci.org/mattpolito/paratrooper.png?branch=master)](https://travis-ci.org/mattpolito/paratrooper) [![Code Climate](https://codeclimate.com/github/mattpolito/paratrooper.png)](https://codeclimate.com/github/mattpolito/paratrooper) +[![Gitter chat](https://badges.gitter.im/mattpolito/paratrooper.png)](https://gitter.im/mattpolito/paratrooper) Simplify your [Heroku][] deploy with quick and concise deployment rake tasks. ## Installation @@ -129,16 +130,14 @@ You can use the object's methods any way you'd like, but we've provided a sensible default at `Paratrooper#deploy`. This will perform the following tasks: -* Activate maintenance mode * Create or update a git tag (if provided) * Push changes to Heroku * Run database migrations if any have been added to db/migrate * Restart the application -* Deactivate maintenance mode * Warm application instance ### Example Usage ```ruby @@ -211,18 +210,19 @@ deployment.deploy end end ``` -Or maybe you just want to run a rake task on your application +Or maybe you just want to run a rake task on your application. Since this task may take a moment to complete it's probably a good idea to throw up a maintenance page. ```ruby # lib/tasks/deploy.rake namespace :deploy do desc 'Deploy app in production environment' task :production do deployment = Paratrooper::Deploy.new("amazing-production-app") do |deploy| + deploy.maintenance = true deploy.add_callback(:after_teardown) do |output| output.display("Running some task that needs to run") deploy.add_remote_task("rake some:task:to:run") end end