README.md in paratrooper-3.0.0.beta3 vs README.md in paratrooper-3.0.2

- old
+ new

@@ -37,24 +37,24 @@ ``` You can also provide a tag: ```ruby -Paratrooper.deploy('amazing-app') do |deploy| - deploy.tag = 'staging' +Paratrooper.deploy('amazing-app') do |config| + config.tag = 'staging' end ``` ## Authentication You can authenticate your Heroku account in a few ways: * Provide an API Key ```ruby -Paratrooper.deploy('app') do |deploy| - deploy.api_key = 'API_KEY' +Paratrooper.deploy('app') do |config| + config.api_key = 'API_KEY' end ``` * Set an environment variable @@ -74,20 +74,20 @@ ## Git SSH key configuration If you use multiple SSH keys for managing multiple accounts, for example in your `.ssh/config`, you can set the `deployment_host` option: ```ruby -Paratrooper.deploy('amazing-app') do |deploy| - deploy.deployment_host = 'HOST' +Paratrooper.deploy('amazing-app') do |config| + config.deployment_host = 'HOST' end ``` This also works if you're using the [heroku-accounts](https://github.com/ddollar/heroku-accounts) plugin: ```ruby -Paratrooper.deploy('app') do |deploy| - deploy.deployment_host: 'heroku.ACCOUNT_NAME' +Paratrooper.deploy('app') do |config| + config.deployment_host: 'heroku.ACCOUNT_NAME' end ``` ## Tag Management @@ -147,17 +147,17 @@ # lib/tasks/deploy.rake namespace :deploy do desc 'Deploy app in production environment' task :production do - Paratrooper.deploy("amazing-production-app") do |deploy| - deploy.add_callback(:before_setup) do |output| + Paratrooper.deploy("amazing-production-app") do |config| + config.add_callback(:before_setup) do |output| output.display("Totally going to turn off newrelic") system %Q[curl https://rpm.newrelic.com/accounts/ACCOUNT_ID/applications/APPLICATION_ID/ping_targets/disable -X POST -H "X-Api-Key: API_KEY"] end - deploy.add_callback(:after_teardown) do |output| + config.add_callback(:after_teardown) do |output| system %Q[curl https://rpm.newrelic.com/accounts/ACCOUNT_ID/applications/APPLICATION_ID/ping_targets/enable -X POST -H "X-Api-Key: API_KEY"] output.display("Aaaannnd we're back") end end end @@ -170,14 +170,14 @@ # lib/tasks/deploy.rake namespace :deploy do desc 'Deploy app in production environment' task :production do - Paratrooper.deploy("amazing-production-app") do |deploy| - deploy.maintenance = true - deploy.add_callback(:after_teardown) do |output| + Paratrooper.deploy("amazing-production-app") do |config| + config.maintenance = true + config.add_callback(:after_teardown) do |output| output.display("Running some task that needs to run") - deploy.add_remote_task("rake some:task:to:run") + config.add_remote_task("rake some:task:to:run") end end end end ```