'Is it possible to avoid executing a Capistrano task under some condition?

I'm using Capistrano 3 for deploying my application and I'm using a public gem that provided a set of default tasks and hooks specific for the platform I'm using.

Is it possible to remove from the deploy execution one task defined by the gem? I know how to add a custom task to a specific hook, but is it possible to remove an already defined one?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source