Every repository with this icon (
Every repository with this icon (
Run the following if you haven't already:
gem sources -a http://gems.github.com
Install the gem(s):
sudo gem install relevance-cap_gun
tree eb10fe61b7a7f847cc9de2e27796dc8220074338
parent 780ecbd2defa227410d46daf31c4aa4115ed8ed4
| name | age | message | |
|---|---|---|---|
| |
.autotest | Wed Apr 16 23:01:13 -0700 2008 | [rsanheim] |
| |
.gitignore | Thu Apr 17 17:41:08 -0700 2008 | [rsanheim] |
| |
CHANGELOG | Thu Apr 17 18:29:59 -0700 2008 | [rsanheim] |
| |
MIT-LICENSE | Fri Apr 04 07:15:34 -0700 2008 | [rsanheim] |
| |
README.rdoc | Thu Apr 17 17:41:08 -0700 2008 | [rsanheim] |
| |
Rakefile | Thu Apr 17 18:23:30 -0700 2008 | [rsanheim] |
| |
init.rb | Fri Apr 04 07:15:34 -0700 2008 | [rsanheim] |
| |
install.rb | Fri Apr 04 07:15:34 -0700 2008 | [rsanheim] |
| |
lib/ | Thu Apr 17 17:35:39 -0700 2008 | [rsanheim] |
| |
manifest.txt | Fri Apr 11 10:42:21 -0700 2008 | [rsanheim] |
| |
spec/ | Thu Apr 17 17:35:39 -0700 2008 | [rsanheim] |
| |
tasks/ | Sun Apr 06 19:55:56 -0700 2008 | [rsanheim] |
| |
vendor/ | Fri Apr 04 07:15:34 -0700 2008 | [rsanheim] |
CapGun
DESCRIPTION
Tell everyone about your releases! Send email notification after Capistrano deployments! Rule the world!
Drop your ActionMailer configuration information into your deploy.rb file, configure recipients for the deployment notifications, and setup the callback task.
Setup and configuration are done entirely inside your deploy.rb file to KISS. Your emails are sent locally, from the box performing the deployment, but CapGun queries the server to grab the necessary release info.
We include the Net::SMTP TLS hack inside as a vendored dependancy to allow super easy email sending without setting up an MTA.
CONFIG
In deploy.rb:
# setup action mailer with a hash of options
set :cap_gun_action_mailer_config, {
:address => "smtp.gmail.com",
:port => 587,
:user_name => "[YOUR_USERNAME]@gmail.com",
:password => "[YOUR_PASSWORD]",
:authentication => :plain
}
# define the options for the actual emails that go out -- :recipients is the only required option
set :cap_gun_email_envelope, { :recipients => %w[joe@example.com, jane@example.com] }
# register email as a callback after restart
after "deploy:restart", "cap_gun:email"
# Test everything out by running "cap cap_gun:email"
REQUIREMENTS
- Capistrano 2+
- A Gmail account to send from, or an MTA installed locally to send from
- Something to deploy
ISSUES
- displays the release times in UTC (Capistrano default) - could be flipped to specified time zone
- some stuff will probably break on windows
INSTALL
- sudo gem install cap_gun
URLS
- Log bugs, issues, and suggestions on Trac: http://opensource.thinkrelevance.com/wiki/cap_gun
- View source: http://github.com/relevance/cap_gun/tree/master
- Git clone source: git://github.com/relevance/cap_gun.git
- RDocs: http://thinkrelevance.rubyforge.org/cap_gun/
LICENSE
(The MIT License)
Copyright © 2008 Relevance, Inc. - http://thinkrelevance.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.




