capistrano_mailer 3.2.5 → 3.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +21 -0
- data/README.rdoc +198 -218
- data/Rakefile +52 -53
- data/VERSION.yml +3 -3
- data/capistrano_mailer.gemspec +55 -55
- data/lib/cap_mailer.rb +180 -180
- data/lib/capistrano/mailer.rb +25 -25
- data/views/cap_mailer/_section.html.erb +31 -31
- data/views/cap_mailer/_section.text.erb +23 -23
- data/views/cap_mailer/_section_custom.text.erb +9 -0
- data/views/cap_mailer/notification_email.text.html.erb +39 -39
- data/views/cap_mailer/notification_email.text.plain.erb +22 -22
- metadata +39 -54
- data/about.yml +0 -9
- data/init.rb +0 -3
- data/test/build_gem_test.rb +0 -18
data/MIT-LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# Copyright (c) 2009 9thBit LLC (http://www.9thbit.net)
|
2
|
+
# Copyright (c) 2007-8 Sagebit, LLC (http://www.sagebit.com)
|
3
|
+
#
|
4
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
5
|
+
# a copy of this software and associated documentation files (the
|
6
|
+
# "Software"), to deal in the Software without restriction, including
|
7
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
8
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
9
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
10
|
+
# the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be
|
13
|
+
# included in all copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
17
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
18
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
19
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
20
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
21
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
CHANGED
@@ -1,218 +1,198 @@
|
|
1
|
-
= Capistrano Mailer
|
2
|
-
|
3
|
-
* For Capistrano Deployment Email Notification
|
4
|
-
* It is a Capistrano Plugin / Ruby Gem that requires ActionMailer
|
5
|
-
* It is MIT-LICENSE (License file is in source only for now because github won't build the gem if it is bundled with the gem... ?)
|
6
|
-
|
7
|
-
Ever wanted to be emailed whenever someone on the team does a cap deploy of trunk or some tag to some server.
|
8
|
-
Wouldn't it be nice to know about it every time a release was deployed? For large rails projects this type of coordination is essential,
|
9
|
-
and this plugin makes sure everyone on the need to know list is notified when something new is deployed.
|
10
|
-
|
11
|
-
This plugin/gem is an extension to Capistrano.
|
12
|
-
|
13
|
-
That means it registers itself with Capistrano as a plugin and is therefore available to call in your recipes.
|
14
|
-
|
15
|
-
If you are looking to roll your own email integration into capistrano then try this pastie:
|
16
|
-
http://pastie.org/146264 (thanks to Mislav Marohnić).
|
17
|
-
But if you want to take the easy road to riches then keep reading ;)
|
18
|
-
-- figurative "riches" of course, I promise nothing in return for your using this plugin
|
19
|
-
|
20
|
-
Important Note:
|
21
|
-
The first time you deploy to a server (a 'cold' deploy) capistrano mailer will cause an error because it uses capistrano's previous release variables, and when there are no previous releases capistrano throws an error. In the next version this will be fixed, just don't have time at the moment. If you would like to work on this 'first deploy' problem please fork my repo and work on it!
|
22
|
-
|
23
|
-
== Home Page
|
24
|
-
|
25
|
-
http://github.com/pboling/capistrano_mailer
|
26
|
-
|
27
|
-
|
28
|
-
== Credit where Credit is Due
|
29
|
-
|
30
|
-
* Thanks to Dustin Deyoung of Sagebit, LLC (http://www.sagebit.com) for the beautiful HTML email templates.
|
31
|
-
|
32
|
-
|
33
|
-
== Requirements
|
34
|
-
|
35
|
-
*
|
36
|
-
|
37
|
-
* at least Capistrano 2.4.3 (might work with capistrano as old as 2.1.0, but has not been tested)
|
38
|
-
|
39
|
-
* Known to be compatible with SCMs as of version 3.1.2: Perforce, SVN, and Git
|
40
|
-
|
41
|
-
* Known to be compatible with, but does not require, the deprec gem.
|
42
|
-
|
43
|
-
|
44
|
-
== Installation
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
#
|
108
|
-
|
109
|
-
#
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
#
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
== Authors
|
201
|
-
|
202
|
-
Peter Boling (pboling) - Wrote original
|
203
|
-
Dave Nolan (textgoeshere) - lots of refactoring merged into 3.2 release
|
204
|
-
|
205
|
-
== Contributors
|
206
|
-
|
207
|
-
Dustin Deyoung - HTML Email Templates
|
208
|
-
mixonix - SCMs compatibility
|
209
|
-
greut - SCMs compatibility
|
210
|
-
|
211
|
-
----------------------------------------------------------------------------------
|
212
|
-
This plugin is a collaboration between Sagebit, LLC (http://www.sagebit.com) and Peter Boling (http://www.peterboling.com).
|
213
|
-
Written initially while Peter Boling was working at Sagebit for use in various projects.
|
214
|
-
|
215
|
-
Author: Peter Boling, peter.boling at gmail dot com
|
216
|
-
|
217
|
-
Copyright (c) 2009 Peter Boling of 9thBit LLC, released under the MIT license
|
218
|
-
Copyright (c) 2007-8 Sagebit LLC, released under the MIT license
|
1
|
+
= Capistrano Mailer For Rails <= 2.3.x
|
2
|
+
|
3
|
+
* For Capistrano Deployment Email Notification
|
4
|
+
* It is a Capistrano Plugin / Ruby Gem that requires ActionMailer
|
5
|
+
* It is MIT-LICENSE (License file is in source only for now because github won't build the gem if it is bundled with the gem... ?)
|
6
|
+
|
7
|
+
Ever wanted to be emailed whenever someone on the team does a cap deploy of trunk or some tag to some server.
|
8
|
+
Wouldn't it be nice to know about it every time a release was deployed? For large rails projects this type of coordination is essential,
|
9
|
+
and this plugin makes sure everyone on the need to know list is notified when something new is deployed.
|
10
|
+
|
11
|
+
This plugin/gem is an extension to Capistrano.
|
12
|
+
|
13
|
+
That means it registers itself with Capistrano as a plugin and is therefore available to call in your recipes.
|
14
|
+
|
15
|
+
If you are looking to roll your own email integration into capistrano then try this pastie:
|
16
|
+
http://pastie.org/146264 (thanks to Mislav Marohnić).
|
17
|
+
But if you want to take the easy road to riches then keep reading ;)
|
18
|
+
-- figurative "riches" of course, I promise nothing in return for your using this plugin
|
19
|
+
|
20
|
+
Important Note:
|
21
|
+
The first time you deploy to a server (a 'cold' deploy) capistrano mailer will cause an error because it uses capistrano's previous release variables, and when there are no previous releases capistrano throws an error. In the next version this will be fixed, just don't have time at the moment. If you would like to work on this 'first deploy' problem please fork my repo and work on it!
|
22
|
+
|
23
|
+
== Home Page
|
24
|
+
|
25
|
+
http://github.com/pboling/capistrano_mailer
|
26
|
+
|
27
|
+
|
28
|
+
== Credit where Credit is Due
|
29
|
+
|
30
|
+
* Thanks to Dustin Deyoung of Sagebit, LLC (http://www.sagebit.com) for the beautiful HTML email templates.
|
31
|
+
|
32
|
+
|
33
|
+
== Requirements
|
34
|
+
|
35
|
+
* Rails 1.2.6 - 2.3.X (might work with older versions, but has not been tested)
|
36
|
+
|
37
|
+
* at least Capistrano 2.4.3 (might work with capistrano as old as 2.1.0, but has not been tested)
|
38
|
+
|
39
|
+
* Known to be compatible with SCMs as of version 3.1.2: Perforce, SVN, and Git
|
40
|
+
|
41
|
+
* Known to be compatible with, but does not require, the deprec gem.
|
42
|
+
|
43
|
+
|
44
|
+
== Installation
|
45
|
+
|
46
|
+
Install the latest Rails 2 compatible version of the gem:
|
47
|
+
|
48
|
+
[sudo] gem install capistrano_mailer -v 3.2.7
|
49
|
+
|
50
|
+
== Upgrading
|
51
|
+
|
52
|
+
The 3.x versions of the gem will remain compatible with Rails 2.x, while the 4+ versions of the gem will move forward with Rails 3+
|
53
|
+
|
54
|
+
From version 3.1.x to version 3.2.x
|
55
|
+
|
56
|
+
1. Update the way CapistranoMailer is configured using the new method: CapMailer.configure (see Usage below).
|
57
|
+
2. require the cap mailer config file (see Usage below)
|
58
|
+
|
59
|
+
From version 2.1.0 to version 3.1.x:
|
60
|
+
|
61
|
+
1. Update the way CapistranoMailer is configured using the new method: CapMailer.configure_capistrano_mailer (changed in later versions to just 'configure') (see Usage below).
|
62
|
+
2. Update the require statement at the top of deploy.rb, see below (note for plugin change from capistrano_mailer to capistrano/mailer).
|
63
|
+
3. Change the mailer.send to mailer.send_notification_email in your cap recipe.
|
64
|
+
|
65
|
+
== Usage
|
66
|
+
|
67
|
+
1. Install as gem or plugin. You need to have already setup capistrano in the project, including the 'capify .' command.
|
68
|
+
|
69
|
+
2. Add this line to the top of your config/deploy.rb:
|
70
|
+
|
71
|
+
# For plugin:
|
72
|
+
# You must make capistrano_mailer's libraries available in Ruby's load path. This is one way to do that:
|
73
|
+
# Add to the top of your config/deploy.rb file:
|
74
|
+
$:.unshift 'vendor/plugins/capistrano_mailer/lib'
|
75
|
+
|
76
|
+
# For frozen gem:
|
77
|
+
# You must make capistrano_mailer's libraries available in Ruby's load path. This is one way to do that:
|
78
|
+
# Add to the top of your config/deploy.rb file:
|
79
|
+
$:.unshift 'vendor/gems/capistrano_mailer-x.x.x/lib'
|
80
|
+
|
81
|
+
# then for gem or plugin:
|
82
|
+
####################################
|
83
|
+
# Capistrano Plugins go here
|
84
|
+
require 'capistrano/mailer'
|
85
|
+
#configure capistrano_mailer:
|
86
|
+
# The configuration file can go anywhere, but in past versions of the gem it was required to be in the config/ dir.
|
87
|
+
require 'config/cap_mailer_settings'
|
88
|
+
####################################
|
89
|
+
|
90
|
+
3. Configure Caistrano Mailer in the settings file required in step 2:
|
91
|
+
|
92
|
+
# If installed as a plugin might need the require here as well
|
93
|
+
|
94
|
+
ActionMailer::Base.delivery_method = :smtp # or :sendmail, or whatever
|
95
|
+
ActionMailer::Base.smtp_settings = { # if using :smtp
|
96
|
+
:address => "mail.example.com",
|
97
|
+
:port => 25,
|
98
|
+
:domain => 'default.com',
|
99
|
+
:perform_deliveries => true,
|
100
|
+
:user_name => "releases@example.com",
|
101
|
+
:password => "mypassword",
|
102
|
+
:authentication => :login }
|
103
|
+
ActionMailer::Base.default_charset = "utf-8"# or "latin1" or whatever you are using
|
104
|
+
|
105
|
+
CapMailer.configure do |config|
|
106
|
+
config[:recipient_addresses] = ["dev1@example.com"]
|
107
|
+
# NOTE: THERE IS A BUG IN RAILS 2.3.3 which forces us to NOT use anything but a simple email address string for the sender address.
|
108
|
+
# https://rails.lighthouseapp.com/projects/8994/tickets/2340
|
109
|
+
# Therefore %("Capistrano Deployment" <releases@example.com>) style addresses may not work in Rails 2.3.3
|
110
|
+
config[:sender_address] = "deployment@example.com"
|
111
|
+
config[:subject_prepend] = "[EMPTY-CAP-DEPLOY]"
|
112
|
+
config[:site_name] = "Empty Example.com App"
|
113
|
+
config[:email_content_type] = "text/html" # OR "text/plain" if you want the plain text version of the email
|
114
|
+
end
|
115
|
+
|
116
|
+
4. Add these two tasks to your deploy.rb:
|
117
|
+
|
118
|
+
namespace :show do
|
119
|
+
desc "Show some internal Cap-Fu: What's mah NAYM?!?"
|
120
|
+
task :me do
|
121
|
+
set :task_name, task_call_frames.first.task.fully_qualified_name
|
122
|
+
#puts "Running #{task_name} task"
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
namespace :deploy do
|
127
|
+
...
|
128
|
+
|
129
|
+
desc "Send email notification of deployment (only send variables you want to be in the email)"
|
130
|
+
task :notify, :roles => :app do
|
131
|
+
show.me # this sets the task_name variable
|
132
|
+
mailer.send_notification_email(self)
|
133
|
+
end
|
134
|
+
|
135
|
+
...
|
136
|
+
end
|
137
|
+
|
138
|
+
Make _sure_ you've defined `rails_env`, `repository`, `deploy_to`, `host`, and `application`.
|
139
|
+
task_name is defined by the show:me task above, and the others are defined behind the scenes by Capistrano!
|
140
|
+
|
141
|
+
The only parameter to mailer.send_notification_email that is *required* is the first. _Minimally_ you need to define the capistrano variables:
|
142
|
+
:rails_env
|
143
|
+
:repository
|
144
|
+
:task_name (provided by the show:me task included in this readme)
|
145
|
+
:deploy_to
|
146
|
+
:host
|
147
|
+
:application
|
148
|
+
|
149
|
+
But there are tons of others - just take a look at lib/mailer/cap_mailer.rb.
|
150
|
+
|
151
|
+
If anyone has a cool way of recording the *output* into a capistrano accessible variable,
|
152
|
+
so that it can be shoved into the release email that would be an excellent contribution!
|
153
|
+
|
154
|
+
5. Then add the hook somewhere in your deploy.rb:
|
155
|
+
|
156
|
+
after "deploy", "deploy:notify"
|
157
|
+
|
158
|
+
6. Enjoy and Happy Capping!
|
159
|
+
|
160
|
+
7. Customization
|
161
|
+
|
162
|
+
If you want to use your own views you'll need to recreate the notification_email view:
|
163
|
+
First you need to define where your templates are:
|
164
|
+
|
165
|
+
CapMailer.configure_capistrano_mailer do |config|
|
166
|
+
config[:template_root] = "app/views/capistrano_mailer/"
|
167
|
+
end
|
168
|
+
|
169
|
+
Then you'll need to create templates there called:
|
170
|
+
|
171
|
+
notification_email.text.html.erb
|
172
|
+
|
173
|
+
and / or
|
174
|
+
|
175
|
+
notification_email.text.plain.erb
|
176
|
+
|
177
|
+
Take a look at the templates that comes with the plugin to see how it is done (views/cap_mailer/...)
|
178
|
+
|
179
|
+
== Authors
|
180
|
+
|
181
|
+
Peter Boling (pboling) - Wrote original & Maintainer
|
182
|
+
Dave Nolan (textgoeshere) - lots of refactoring merged into 3.2 release
|
183
|
+
|
184
|
+
== Contributors
|
185
|
+
|
186
|
+
Dustin Deyoung - HTML Email Templates
|
187
|
+
mixonix - SCMs compatibility
|
188
|
+
greut - SCMs compatibility
|
189
|
+
|
190
|
+
----------------------------------------------------------------------------------
|
191
|
+
|
192
|
+
This plugin started as a collaboration between Sagebit, LLC (http://www.sagebit.com) and Peter Boling (http://www.peterboling.com).
|
193
|
+
Written initially while Peter Boling was working at Sagebit for use in various projects.
|
194
|
+
|
195
|
+
Author: Peter Boling, peter.boling at gmail dot com
|
196
|
+
|
197
|
+
Copyright (c) 2009-2011 Peter Boling of 9thBit LLC, released under the MIT license
|
198
|
+
Copyright (c) 2007-2008 Sagebit LLC, released under the MIT license
|
data/Rakefile
CHANGED
@@ -1,53 +1,52 @@
|
|
1
|
-
require 'rake'
|
2
|
-
require 'rake/testtask'
|
3
|
-
require 'rake/rdoctask'
|
4
|
-
|
5
|
-
begin
|
6
|
-
require 'jeweler'
|
7
|
-
Jeweler::Tasks.new do |gemspec|
|
8
|
-
gemspec.name = "capistrano_mailer"
|
9
|
-
gemspec.summary = "Capistrano Deployment Email Notification"
|
10
|
-
gemspec.description = %q{Capistrano Deployment Email Notification. Keep the whole team informed of each release!}
|
11
|
-
gemspec.email = ["peter.boling@gmail.com", "dave@textgoeshere.org.uk"]
|
12
|
-
gemspec.homepage = "http://github.com/pboling/capistrano_mailer"
|
13
|
-
gemspec.authors = ["Peter Boling", "Dave Nolan"]
|
14
|
-
gemspec.add_dependency 'actionmailer'
|
15
|
-
gemspec.files = ["README.rdoc",
|
16
|
-
"capistrano_mailer.gemspec",
|
17
|
-
"
|
18
|
-
"
|
19
|
-
"
|
20
|
-
"
|
21
|
-
"
|
22
|
-
"views/cap_mailer/_section.
|
23
|
-
"views/cap_mailer/
|
24
|
-
"views/cap_mailer/_section_custom.
|
25
|
-
"views/cap_mailer/
|
26
|
-
"views/cap_mailer/notification_email.text.
|
27
|
-
"
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
t.libs << '
|
41
|
-
t.
|
42
|
-
t.
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
rdoc.
|
49
|
-
rdoc.
|
50
|
-
rdoc.
|
51
|
-
rdoc.rdoc_files.include('
|
52
|
-
|
53
|
-
end
|
1
|
+
require 'rake'
|
2
|
+
require 'rake/testtask'
|
3
|
+
require 'rake/rdoctask'
|
4
|
+
|
5
|
+
begin
|
6
|
+
require 'jeweler'
|
7
|
+
Jeweler::Tasks.new do |gemspec|
|
8
|
+
gemspec.name = "capistrano_mailer"
|
9
|
+
gemspec.summary = "Capistrano Deployment Email Notification"
|
10
|
+
gemspec.description = %q{Capistrano Deployment Email Notification. Keep the whole team informed of each release!}
|
11
|
+
gemspec.email = ["peter.boling@gmail.com", "dave@textgoeshere.org.uk"]
|
12
|
+
gemspec.homepage = "http://github.com/pboling/capistrano_mailer"
|
13
|
+
gemspec.authors = ["Peter Boling", "Dave Nolan"]
|
14
|
+
gemspec.add_dependency 'actionmailer'
|
15
|
+
gemspec.files = ["README.rdoc",
|
16
|
+
"capistrano_mailer.gemspec",
|
17
|
+
"lib/cap_mailer.rb",
|
18
|
+
"lib/capistrano/mailer.rb",
|
19
|
+
"Rakefile",
|
20
|
+
"MIT-LICENSE",
|
21
|
+
"views/cap_mailer/_section.html.erb",
|
22
|
+
"views/cap_mailer/_section.text.erb",
|
23
|
+
"views/cap_mailer/_section_custom.html.erb",
|
24
|
+
"views/cap_mailer/_section_custom.text.erb",
|
25
|
+
"views/cap_mailer/notification_email.text.html.erb",
|
26
|
+
"views/cap_mailer/notification_email.text.plain.erb",
|
27
|
+
"VERSION.yml"]
|
28
|
+
end
|
29
|
+
Jeweler::GemcutterTasks.new
|
30
|
+
rescue LoadError
|
31
|
+
puts "Jeweler not available. Install it with: sudo gem install jeweler"
|
32
|
+
end
|
33
|
+
|
34
|
+
desc 'Default: run unit tests.'
|
35
|
+
task :default => :test
|
36
|
+
|
37
|
+
desc 'Test the capistrano_mailer gem.'
|
38
|
+
Rake::TestTask.new(:test) do |t|
|
39
|
+
t.libs << 'lib'
|
40
|
+
t.libs << 'test'
|
41
|
+
t.pattern = 'test/**/*_test.rb'
|
42
|
+
t.verbose = true
|
43
|
+
end
|
44
|
+
|
45
|
+
desc 'Generate documentation for the capistrano_mailer gem.'
|
46
|
+
Rake::RDocTask.new(:rdoc) do |rdoc|
|
47
|
+
rdoc.rdoc_dir = 'rdoc'
|
48
|
+
rdoc.title = 'capistrano_mailer'
|
49
|
+
rdoc.options << '--line-numbers' << '--inline-source'
|
50
|
+
rdoc.rdoc_files.include('README.markdown')
|
51
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
52
|
+
end
|