I’ve just had to setup Hoptoad for one of our apps that uses Vlad for deployment, the integration isn’t quite as easy as with Capistrano. I couldn’t find much information on how to integrate the two so I thought I’d share my solution.
The original Hoptoad task for use with Capistrano needed a little modification.
1 2 3 4 5 6 7 8 |
|
fetch is a Capistrano method so needed to be removed, we can use the Vlad environment pattern for this. I also wanted to use the git information for the user instead of the system user, finally as far as I can tell the git commit SHA being deployed is not available in Vlad.
In the Vlad deployment script I added a Hoptoad task to replace the default Capistrano task provided by Hoptoad.
1 2 3 4 5 6 |
|
Then added it as a dependency for the deploy task
1
|
|
There are a couple of helper tasks I’ve added to get the git user and the SHA of the commit being deployed
1 2 3 4 5 6 7 |
|