PageRenderTime 44ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/files/README_markdown.html

https://github.com/ouranos/cap_gun
HTML | 171 lines | 111 code | 60 blank | 0 comment | 0 complexity | d6cef603cd56beddd5951e45643b289f MD5 | raw file
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  5. <head>
  6. <title>README.markdown</title>
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  8. <link rel="stylesheet" href="../css/reset.css" type="text/css" media="screen" />
  9. <link rel="stylesheet" href="../css/main.css" type="text/css" media="screen" />
  10. <script src="../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
  11. <script src="../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
  12. <script src="../js/main.js" type="text/javascript" charset="utf-8"></script>
  13. </head>
  14. <body>
  15. <div class="banner">
  16. <h1>
  17. README.markdown
  18. </h1>
  19. <ul class="files">
  20. <li>README.markdown</li>
  21. <li>Last modified: Wed Oct 14 16:29:21 -0400 2009</li>
  22. </ul>
  23. </div>
  24. <div id="bodyContent">
  25. <div id="content">
  26. <div class="description">
  27. <h1>CapGun</h1>
  28. <h2>DESCRIPTION</h2>
  29. <p>Tell everyone about your releases! Send email notification after Capistrano deployments! Rule the world!</p>
  30. <p>Drop your ActionMailer configuration information into your deploy.rb file, configure recipients for the deployment notifications, and setup the callback task.</p>
  31. <p>Setup and configuration are done entirely inside your deploy.rb file to keep it super simple. Your emails are sent locally from the box performing the deployment, but CapGun queries the server to grab the necessary release info.</p>
  32. <p>This even includes the Net::SMTP TLS hack inside as a vendored dependancy to allow super easy email sending without setting up an MTA.</p>
  33. <h2>CONFIG</h2>
  34. <p>In your Capistrano config file (usually deploy.rb):</p>
  35. <pre><code># require cap_gun (the path will depend on where you unpacked or if you are just using it as a gem)
  36. require 'vendor/plugins/cap_gun/lib/cap_gun' # typical Rails vendor/plugins location
  37. # setup action mailer with a hash of options
  38. set :cap_gun_action_mailer_config, {
  39. :address =&gt; "smtp.gmail.com",
  40. :port =&gt; 587,
  41. :user_name =&gt; "[YOUR_USERNAME]@gmail.com",
  42. :password =&gt; "[YOUR_PASSWORD]",
  43. :authentication =&gt; :plain
  44. }
  45. # define the options for the actual emails that go out -- :recipients is the only required option
  46. set :cap_gun_email_envelope, {
  47. :from =&gt; "project.deployer@example.com", # Note, don't use the form "Someone project.deploy@example.com" as it'll blow up with ActionMailer 2.3+
  48. :recipients =&gt; %w[joe@example.com, jane@example.com]
  49. }
  50. # register email as a callback after restart
  51. after "deploy:restart", "cap_gun:email"
  52. # Test everything out by running "cap cap_gun:email"
  53. </code></pre>
  54. <h2>USAGE</h2>
  55. <p>Good news: it just works.<br/>
  56. </p>
  57. <p>By default CapGun includes info like the user who is deploying and what server its being deployed to. CapGun is biased for git (patches accepted for other SCMs), so it will include details like your current branch, the revisions since last deployment, the current commit being deployed.</p>
  58. <p>Want to make the notifications even better and explain <em>why</em> you're deploying?
  59. Just include a comment in the cap command like so, and CapGun will add the comment to the email notification.</p>
  60. <pre><code>cap -s comment="fix for bug #303" deploy
  61. </code></pre>
  62. <h2>REQUIREMENTS</h2>
  63. <ul>
  64. <li>Capistrano 2+</li>
  65. <li>A Gmail account to send from, or an MTA (mail transport agent) installed locally to send from</li>
  66. <li>Something to deploy</li>
  67. </ul>
  68. <h2>TODO &amp; KNOWN ISSUES</h2>
  69. <ul>
  70. <li>displays the release times in UTC (Capistrano default) - could be flipped to specified time zone</li>
  71. <li>some stuff will probably break on windows - patches welcome</li>
  72. </ul>
  73. <h2>INSTALL</h2>
  74. <ul>
  75. <li><code>sudo gem install cap_gun</code> and gem unpack into your vendor/plugins</li>
  76. <li>or just grab the tarball from github (see below)</li>
  77. </ul>
  78. <h2>URLS</h2>
  79. <ul>
  80. <li>Log bugs, issues, and suggestions at GitHub: http://github.com/relevance/cap_gun/issues</li>
  81. <li>View source: http://github.com/relevance/cap_gun</li>
  82. <li>Continuos Integration: http://runcoderun.com/relevance/cap_gun</li>
  83. <li>SDocs: http://relevance.github.com/cap_gun/</li>
  84. </ul>
  85. <p>== LICENSE</p>
  86. <p>(The MIT License)</p>
  87. <p>Copyright (c) 2009 Relevance, Inc. - http://thinkrelevance.com</p>
  88. <p>Permission is hereby granted, free of charge, to any person obtaining
  89. a copy of this software and associated documentation files (the
  90. 'Software'), to deal in the Software without restriction, including
  91. without limitation the rights to use, copy, modify, merge, publish,
  92. distribute, sublicense, and/or sell copies of the Software, and to
  93. permit persons to whom the Software is furnished to do so, subject to
  94. the following conditions:</p>
  95. <p>The above copyright notice and this permission notice shall be
  96. included in all copies or substantial portions of the Software.</p>
  97. <p>THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
  98. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  99. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  100. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  101. CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  102. TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  103. SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>
  104. <script type="text/javascript">$(function() {
  105. $('a').each(function() { $(this).attr('target', '_blank') })
  106. })</script>
  107. </div>
  108. </div>
  109. </div>
  110. </body>
  111. </html>