caplock: a capistrano ruby gem

After a long arduous battle (gross exaggeration) fighting for Capistrano we are finally implementing it at my company. Of course we have found that Capistrano doesn’t always work the way we would like it to. Luckily Capistrano seems pretty easily extendable.
Today I created caplock, a ruby gem to prevent Capistrano from preforming simultaneous deployments. This is the basic workflow:

Before a deployment:
1. abort if the lock file exists on the remote server (this means another deployment is already in progress)
2. create a lock file on remote server

After a deployment:
1. remove the lock file

Tagged with: , , ,
Posted in capistrano, ruby

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: