paratrooper icon indicating copy to clipboard operation
paratrooper copied to clipboard

config.add_remote_task (from docs) does not work

Open brucek opened this issue 8 years ago • 2 comments

Just a note that while the README says you can do

# lib/tasks/deploy.rake

namespace :deploy do
  desc 'Deploy app in production environment'
  task :production do
    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")
        config.add_remote_task("rake some:task:to:run")
      end
    end
  end
end

that gives an error. I had to do

config.heroku.run_task("rake some:task:to:run")

to get it working. Might just update the docs (or let us know how it should actually work). Thanks.

brucek avatar Jun 23 '16 08:06 brucek

What version are you using?

mattpolito avatar Jun 29 '16 01:06 mattpolito

3.0.0.beta3

error is: NoMethodError: undefined method `add_remote_task' for #Paratrooper::Configuration:0x007fe202afa3c0

brucek avatar Jul 15 '16 05:07 brucek