Another Capistrano ruby gem: cap_permission.
This ruby gem allows you to control who can run Capistrano. You can set permissions based on a user’s group membership, or create a list of “deployment_users” who are allowed to run Capistrano.
By default users in “root”, “sysadmins”, and “confmgmt” groups are granted permission.
require 'cap_permission' set :group_name, "releasemgmt" # allows users in 'releasemgmt' group to run cap tasks set :deployment_users, ["leeroy", "jenkins"] # allows user 'leeroy' and user 'jenkins' to run cap tasks