capistrano-wp 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/Gemfile ADDED
@@ -0,0 +1,20 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem "capistrano", "~> 2.15.3"
4
+ gem "capistrano-ext", "~> 1.2.1"
5
+ gem "railsless-deploy", "~> 1.1.2"
6
+ #gem "colored", ">= 1.2"
7
+ #gem "json", "~> 1.7.1", :platforms => [:ruby, :jruby]
8
+ #gem "json-pure", :platforms => :mswin
9
+
10
+ #gem "capistrano_colors", ">= 0.5.5"
11
+
12
+ gem "erubis", "~> 2.7.0"
13
+
14
+ group :development do
15
+ gem "rspec", "~> 2.11"
16
+ gem "bundler", "~> 1.0"
17
+ gem "jeweler", "~> 1.8"
18
+ gem "simplecov", ">= 0"
19
+ gem "capistrano-spec"
20
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,60 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ capistrano (2.15.4)
5
+ highline
6
+ net-scp (>= 1.0.0)
7
+ net-sftp (>= 2.0.0)
8
+ net-ssh (>= 2.0.14)
9
+ net-ssh-gateway (>= 1.1.0)
10
+ capistrano-ext (1.2.1)
11
+ capistrano (>= 1.0.0)
12
+ capistrano-spec (0.4.0)
13
+ diff-lcs (1.2.4)
14
+ erubis (2.7.0)
15
+ git (1.2.5)
16
+ highline (1.6.19)
17
+ jeweler (1.8.4)
18
+ bundler (~> 1.0)
19
+ git (>= 1.2.5)
20
+ rake
21
+ rdoc
22
+ json (1.8.0)
23
+ multi_json (1.7.5)
24
+ net-scp (1.1.1)
25
+ net-ssh (>= 2.6.5)
26
+ net-sftp (2.1.2)
27
+ net-ssh (>= 2.6.5)
28
+ net-ssh (2.6.7)
29
+ net-ssh-gateway (1.2.0)
30
+ net-ssh (>= 2.6.5)
31
+ railsless-deploy (1.1.2)
32
+ rake (10.0.4)
33
+ rdoc (4.0.1)
34
+ json (~> 1.4)
35
+ rspec (2.13.0)
36
+ rspec-core (~> 2.13.0)
37
+ rspec-expectations (~> 2.13.0)
38
+ rspec-mocks (~> 2.13.0)
39
+ rspec-core (2.13.1)
40
+ rspec-expectations (2.13.0)
41
+ diff-lcs (>= 1.1.3, < 2.0)
42
+ rspec-mocks (2.13.1)
43
+ simplecov (0.7.1)
44
+ multi_json (~> 1.0)
45
+ simplecov-html (~> 0.7.1)
46
+ simplecov-html (0.7.1)
47
+
48
+ PLATFORMS
49
+ ruby
50
+
51
+ DEPENDENCIES
52
+ bundler (~> 1.0)
53
+ capistrano (~> 2.15.3)
54
+ capistrano-ext (~> 1.2.1)
55
+ capistrano-spec
56
+ erubis (~> 2.7.0)
57
+ jeweler (~> 1.8)
58
+ railsless-deploy (~> 1.1.2)
59
+ rspec (~> 2.11)
60
+ simplecov
data/LICENSE.txt ADDED
@@ -0,0 +1,387 @@
1
+ capistrano-wp - Capistrano recipes for WordPress deploys
2
+
3
+ Copyright (c) 2012 Crowd Favorite, Ltd
4
+
5
+ This program is free software; you can redistribute it and/or modify
6
+ it under the terms of the GNU General Public License as published by
7
+ the Free Software Foundation; either version 2 of the License, or
8
+ (at your option) any later version.
9
+
10
+ This program is distributed in the hope that it will be useful,
11
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ GNU General Public License for more details.
14
+
15
+ You should have received a copy of the GNU General Public License
16
+ along with this program; if not, write to the Free Software
17
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ This program incorporates work originally covered by the following
20
+ copyright and permission notices:
21
+
22
+ Recap <https://github.com/freerange/recap> is Copyright (C) 2011
23
+ by Tom Ward
24
+
25
+ Permission is hereby granted, free of charge, to any person
26
+ obtaining a copy of this software and associated documentation
27
+ files (the "Software"), to deal in the Software without
28
+ restriction, including without limitation the rights to use,
29
+ copy, modify, merge, publish, distribute, sublicense, and/or
30
+ sell copies of the Software, and to permit persons to whom the
31
+ Software is furnished to do so, subject to the following
32
+ conditions:
33
+
34
+ The above copyright notice and this permission notice shall be
35
+ included in all copies or substantial portions of the Software.
36
+
37
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
38
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
39
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
40
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
41
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
42
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
43
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
44
+ OTHER DEALINGS IN THE SOFTWARE.
45
+
46
+
47
+ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
48
+
49
+ GNU GENERAL PUBLIC LICENSE
50
+ Version 2, June 1991
51
+
52
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
53
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
54
+ Everyone is permitted to copy and distribute verbatim copies
55
+ of this license document, but changing it is not allowed.
56
+
57
+ Preamble
58
+
59
+ The licenses for most software are designed to take away your
60
+ freedom to share and change it. By contrast, the GNU General Public
61
+ License is intended to guarantee your freedom to share and change free
62
+ software--to make sure the software is free for all its users. This
63
+ General Public License applies to most of the Free Software
64
+ Foundation's software and to any other program whose authors commit to
65
+ using it. (Some other Free Software Foundation software is covered by
66
+ the GNU Lesser General Public License instead.) You can apply it to
67
+ your programs, too.
68
+
69
+ When we speak of free software, we are referring to freedom, not
70
+ price. Our General Public Licenses are designed to make sure that you
71
+ have the freedom to distribute copies of free software (and charge for
72
+ this service if you wish), that you receive source code or can get it
73
+ if you want it, that you can change the software or use pieces of it
74
+ in new free programs; and that you know you can do these things.
75
+
76
+ To protect your rights, we need to make restrictions that forbid
77
+ anyone to deny you these rights or to ask you to surrender the rights.
78
+ These restrictions translate to certain responsibilities for you if you
79
+ distribute copies of the software, or if you modify it.
80
+
81
+ For example, if you distribute copies of such a program, whether
82
+ gratis or for a fee, you must give the recipients all the rights that
83
+ you have. You must make sure that they, too, receive or can get the
84
+ source code. And you must show them these terms so they know their
85
+ rights.
86
+
87
+ We protect your rights with two steps: (1) copyright the software, and
88
+ (2) offer you this license which gives you legal permission to copy,
89
+ distribute and/or modify the software.
90
+
91
+ Also, for each author's protection and ours, we want to make certain
92
+ that everyone understands that there is no warranty for this free
93
+ software. If the software is modified by someone else and passed on, we
94
+ want its recipients to know that what they have is not the original, so
95
+ that any problems introduced by others will not reflect on the original
96
+ authors' reputations.
97
+
98
+ Finally, any free program is threatened constantly by software
99
+ patents. We wish to avoid the danger that redistributors of a free
100
+ program will individually obtain patent licenses, in effect making the
101
+ program proprietary. To prevent this, we have made it clear that any
102
+ patent must be licensed for everyone's free use or not licensed at all.
103
+
104
+ The precise terms and conditions for copying, distribution and
105
+ modification follow.
106
+
107
+ GNU GENERAL PUBLIC LICENSE
108
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
109
+
110
+ 0. This License applies to any program or other work which contains
111
+ a notice placed by the copyright holder saying it may be distributed
112
+ under the terms of this General Public License. The "Program", below,
113
+ refers to any such program or work, and a "work based on the Program"
114
+ means either the Program or any derivative work under copyright law:
115
+ that is to say, a work containing the Program or a portion of it,
116
+ either verbatim or with modifications and/or translated into another
117
+ language. (Hereinafter, translation is included without limitation in
118
+ the term "modification".) Each licensee is addressed as "you".
119
+
120
+ Activities other than copying, distribution and modification are not
121
+ covered by this License; they are outside its scope. The act of
122
+ running the Program is not restricted, and the output from the Program
123
+ is covered only if its contents constitute a work based on the
124
+ Program (independent of having been made by running the Program).
125
+ Whether that is true depends on what the Program does.
126
+
127
+ 1. You may copy and distribute verbatim copies of the Program's
128
+ source code as you receive it, in any medium, provided that you
129
+ conspicuously and appropriately publish on each copy an appropriate
130
+ copyright notice and disclaimer of warranty; keep intact all the
131
+ notices that refer to this License and to the absence of any warranty;
132
+ and give any other recipients of the Program a copy of this License
133
+ along with the Program.
134
+
135
+ You may charge a fee for the physical act of transferring a copy, and
136
+ you may at your option offer warranty protection in exchange for a fee.
137
+
138
+ 2. You may modify your copy or copies of the Program or any portion
139
+ of it, thus forming a work based on the Program, and copy and
140
+ distribute such modifications or work under the terms of Section 1
141
+ above, provided that you also meet all of these conditions:
142
+
143
+ a) You must cause the modified files to carry prominent notices
144
+ stating that you changed the files and the date of any change.
145
+
146
+ b) You must cause any work that you distribute or publish, that in
147
+ whole or in part contains or is derived from the Program or any
148
+ part thereof, to be licensed as a whole at no charge to all third
149
+ parties under the terms of this License.
150
+
151
+ c) If the modified program normally reads commands interactively
152
+ when run, you must cause it, when started running for such
153
+ interactive use in the most ordinary way, to print or display an
154
+ announcement including an appropriate copyright notice and a
155
+ notice that there is no warranty (or else, saying that you provide
156
+ a warranty) and that users may redistribute the program under
157
+ these conditions, and telling the user how to view a copy of this
158
+ License. (Exception: if the Program itself is interactive but
159
+ does not normally print such an announcement, your work based on
160
+ the Program is not required to print an announcement.)
161
+
162
+ These requirements apply to the modified work as a whole. If
163
+ identifiable sections of that work are not derived from the Program,
164
+ and can be reasonably considered independent and separate works in
165
+ themselves, then this License, and its terms, do not apply to those
166
+ sections when you distribute them as separate works. But when you
167
+ distribute the same sections as part of a whole which is a work based
168
+ on the Program, the distribution of the whole must be on the terms of
169
+ this License, whose permissions for other licensees extend to the
170
+ entire whole, and thus to each and every part regardless of who wrote it.
171
+
172
+ Thus, it is not the intent of this section to claim rights or contest
173
+ your rights to work written entirely by you; rather, the intent is to
174
+ exercise the right to control the distribution of derivative or
175
+ collective works based on the Program.
176
+
177
+ In addition, mere aggregation of another work not based on the Program
178
+ with the Program (or with a work based on the Program) on a volume of
179
+ a storage or distribution medium does not bring the other work under
180
+ the scope of this License.
181
+
182
+ 3. You may copy and distribute the Program (or a work based on it,
183
+ under Section 2) in object code or executable form under the terms of
184
+ Sections 1 and 2 above provided that you also do one of the following:
185
+
186
+ a) Accompany it with the complete corresponding machine-readable
187
+ source code, which must be distributed under the terms of Sections
188
+ 1 and 2 above on a medium customarily used for software interchange; or,
189
+
190
+ b) Accompany it with a written offer, valid for at least three
191
+ years, to give any third party, for a charge no more than your
192
+ cost of physically performing source distribution, a complete
193
+ machine-readable copy of the corresponding source code, to be
194
+ distributed under the terms of Sections 1 and 2 above on a medium
195
+ customarily used for software interchange; or,
196
+
197
+ c) Accompany it with the information you received as to the offer
198
+ to distribute corresponding source code. (This alternative is
199
+ allowed only for noncommercial distribution and only if you
200
+ received the program in object code or executable form with such
201
+ an offer, in accord with Subsection b above.)
202
+
203
+ The source code for a work means the preferred form of the work for
204
+ making modifications to it. For an executable work, complete source
205
+ code means all the source code for all modules it contains, plus any
206
+ associated interface definition files, plus the scripts used to
207
+ control compilation and installation of the executable. However, as a
208
+ special exception, the source code distributed need not include
209
+ anything that is normally distributed (in either source or binary
210
+ form) with the major components (compiler, kernel, and so on) of the
211
+ operating system on which the executable runs, unless that component
212
+ itself accompanies the executable.
213
+
214
+ If distribution of executable or object code is made by offering
215
+ access to copy from a designated place, then offering equivalent
216
+ access to copy the source code from the same place counts as
217
+ distribution of the source code, even though third parties are not
218
+ compelled to copy the source along with the object code.
219
+
220
+ 4. You may not copy, modify, sublicense, or distribute the Program
221
+ except as expressly provided under this License. Any attempt
222
+ otherwise to copy, modify, sublicense or distribute the Program is
223
+ void, and will automatically terminate your rights under this License.
224
+ However, parties who have received copies, or rights, from you under
225
+ this License will not have their licenses terminated so long as such
226
+ parties remain in full compliance.
227
+
228
+ 5. You are not required to accept this License, since you have not
229
+ signed it. However, nothing else grants you permission to modify or
230
+ distribute the Program or its derivative works. These actions are
231
+ prohibited by law if you do not accept this License. Therefore, by
232
+ modifying or distributing the Program (or any work based on the
233
+ Program), you indicate your acceptance of this License to do so, and
234
+ all its terms and conditions for copying, distributing or modifying
235
+ the Program or works based on it.
236
+
237
+ 6. Each time you redistribute the Program (or any work based on the
238
+ Program), the recipient automatically receives a license from the
239
+ original licensor to copy, distribute or modify the Program subject to
240
+ these terms and conditions. You may not impose any further
241
+ restrictions on the recipients' exercise of the rights granted herein.
242
+ You are not responsible for enforcing compliance by third parties to
243
+ this License.
244
+
245
+ 7. If, as a consequence of a court judgment or allegation of patent
246
+ infringement or for any other reason (not limited to patent issues),
247
+ conditions are imposed on you (whether by court order, agreement or
248
+ otherwise) that contradict the conditions of this License, they do not
249
+ excuse you from the conditions of this License. If you cannot
250
+ distribute so as to satisfy simultaneously your obligations under this
251
+ License and any other pertinent obligations, then as a consequence you
252
+ may not distribute the Program at all. For example, if a patent
253
+ license would not permit royalty-free redistribution of the Program by
254
+ all those who receive copies directly or indirectly through you, then
255
+ the only way you could satisfy both it and this License would be to
256
+ refrain entirely from distribution of the Program.
257
+
258
+ If any portion of this section is held invalid or unenforceable under
259
+ any particular circumstance, the balance of the section is intended to
260
+ apply and the section as a whole is intended to apply in other
261
+ circumstances.
262
+
263
+ It is not the purpose of this section to induce you to infringe any
264
+ patents or other property right claims or to contest validity of any
265
+ such claims; this section has the sole purpose of protecting the
266
+ integrity of the free software distribution system, which is
267
+ implemented by public license practices. Many people have made
268
+ generous contributions to the wide range of software distributed
269
+ through that system in reliance on consistent application of that
270
+ system; it is up to the author/donor to decide if he or she is willing
271
+ to distribute software through any other system and a licensee cannot
272
+ impose that choice.
273
+
274
+ This section is intended to make thoroughly clear what is believed to
275
+ be a consequence of the rest of this License.
276
+
277
+ 8. If the distribution and/or use of the Program is restricted in
278
+ certain countries either by patents or by copyrighted interfaces, the
279
+ original copyright holder who places the Program under this License
280
+ may add an explicit geographical distribution limitation excluding
281
+ those countries, so that distribution is permitted only in or among
282
+ countries not thus excluded. In such case, this License incorporates
283
+ the limitation as if written in the body of this License.
284
+
285
+ 9. The Free Software Foundation may publish revised and/or new versions
286
+ of the General Public License from time to time. Such new versions will
287
+ be similar in spirit to the present version, but may differ in detail to
288
+ address new problems or concerns.
289
+
290
+ Each version is given a distinguishing version number. If the Program
291
+ specifies a version number of this License which applies to it and "any
292
+ later version", you have the option of following the terms and conditions
293
+ either of that version or of any later version published by the Free
294
+ Software Foundation. If the Program does not specify a version number of
295
+ this License, you may choose any version ever published by the Free Software
296
+ Foundation.
297
+
298
+ 10. If you wish to incorporate parts of the Program into other free
299
+ programs whose distribution conditions are different, write to the author
300
+ to ask for permission. For software which is copyrighted by the Free
301
+ Software Foundation, write to the Free Software Foundation; we sometimes
302
+ make exceptions for this. Our decision will be guided by the two goals
303
+ of preserving the free status of all derivatives of our free software and
304
+ of promoting the sharing and reuse of software generally.
305
+
306
+ NO WARRANTY
307
+
308
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
309
+ FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
310
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
311
+ PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
312
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
313
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
314
+ TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
315
+ PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
316
+ REPAIR OR CORRECTION.
317
+
318
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
319
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
320
+ REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
321
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
322
+ OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
323
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
324
+ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
325
+ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
326
+ POSSIBILITY OF SUCH DAMAGES.
327
+
328
+ END OF TERMS AND CONDITIONS
329
+
330
+ How to Apply These Terms to Your New Programs
331
+
332
+ If you develop a new program, and you want it to be of the greatest
333
+ possible use to the public, the best way to achieve this is to make it
334
+ free software which everyone can redistribute and change under these terms.
335
+
336
+ To do so, attach the following notices to the program. It is safest
337
+ to attach them to the start of each source file to most effectively
338
+ convey the exclusion of warranty; and each file should have at least
339
+ the "copyright" line and a pointer to where the full notice is found.
340
+
341
+ <one line to give the program's name and a brief idea of what it does.>
342
+ Copyright (C) <year> <name of author>
343
+
344
+ This program is free software; you can redistribute it and/or modify
345
+ it under the terms of the GNU General Public License as published by
346
+ the Free Software Foundation; either version 2 of the License, or
347
+ (at your option) any later version.
348
+
349
+ This program is distributed in the hope that it will be useful,
350
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
351
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
352
+ GNU General Public License for more details.
353
+
354
+ You should have received a copy of the GNU General Public License along
355
+ with this program; if not, write to the Free Software Foundation, Inc.,
356
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
357
+
358
+ Also add information on how to contact you by electronic and paper mail.
359
+
360
+ If the program is interactive, make it output a short notice like this
361
+ when it starts in an interactive mode:
362
+
363
+ Gnomovision version 69, Copyright (C) year name of author
364
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
365
+ This is free software, and you are welcome to redistribute it
366
+ under certain conditions; type `show c' for details.
367
+
368
+ The hypothetical commands `show w' and `show c' should show the appropriate
369
+ parts of the General Public License. Of course, the commands you use may
370
+ be called something other than `show w' and `show c'; they could even be
371
+ mouse-clicks or menu items--whatever suits your program.
372
+
373
+ You should also get your employer (if you work as a programmer) or your
374
+ school, if any, to sign a "copyright disclaimer" for the program, if
375
+ necessary. Here is a sample; alter the names:
376
+
377
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
378
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
379
+
380
+ <signature of Ty Coon>, 1 April 1989
381
+ Ty Coon, President of Vice
382
+
383
+ This General Public License does not permit incorporating your program into
384
+ proprietary programs. If your program is a subroutine library, you may
385
+ consider it more useful to permit linking proprietary applications with the
386
+ library. If this is what you want to do, use the GNU Lesser General
387
+ Public License instead of this License.
data/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # capistrano-wp
2
+
3
+ Recipes for deploying and maintaining remote WordPress installations with
4
+ Capistrano.
5
+
6
+ This is an alternative version control and deployment strategy from the
7
+ one presented in [WP-Stack](https://github.com/markjaquith/WP-Stack).
8
+ WP-Stack expects WordPress Core to be included in the project as a git
9
+ submodule; these recipes pull WordPress in from SVN (and can therefore
10
+ also deploy multisite environments with WP at the root).
11
+
12
+ ## Usage
13
+
14
+ This is a very early release, and the usage is not extremely well documented. A minimal Capfile might look like this:
15
+
16
+ require 'rubygems'
17
+ require 'railsless-deploy'
18
+ require 'crowdfavorite/wordpress'
19
+ # tags/3.4.1, branches/3.4, trunk
20
+ set :wordpress_version, "branches/3.4"
21
+ set :application, "wp.example.com"
22
+ set :scm, :git
23
+ set :repository, "git@github.com:example/wordpress-site.git"
24
+ set :git_enable_submodules, 1
25
+ set :user, 'wpdeploy'
26
+ server 'web.example.com', :app, :web, :primary => true
27
+ # Deploy to /var/www/domains/wp.example.com/htdocs
28
+ # Link uploads, blogs.dir, cache from /var/www/domains/wp.example.com/shared
29
+ # to /var/www/domains/wp.example.com/htdocs/wp-content
30
+ # Install WordPress into /var/www/domains/wp.example.com/htdocs/wp
31
+ set :base_dir, '/var/www/domains'
32
+ set :deploy_to, File.join(base_dir, application)
33
+ set :current_dir, 'htdocs'
34
+ set(:wp_path) { File.join(release_path, 'wp') }
35
+ set :deploy_via, :remote_cache
36
+
37
+ Also see the `:wp_symlinks` and `:wp_configs` settings in the source.
38
+
39
+ ## Development
40
+
41
+ gem install bundle
42
+ bundle install
43
+ rake install
44
+
45
+ When updating the gem requirements:
46
+
47
+ rake gemspec
48
+
49
+ # Copyright
50
+
51
+ Copyright (c) 2012 Crowd Favorite, Ltd. See LICENSE.txt for further details.
52
+
data/Rakefile ADDED
@@ -0,0 +1,45 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "capistrano-wp"
18
+ gem.homepage = "http://github.com/crowdfavorite/gem-capistrano-wp"
19
+ gem.license = "GPL"
20
+ gem.summary = %Q{Crowd Favorite WordPress Capistrano recipes}
21
+ gem.description = <<-EOF
22
+ Recipes for deploying and maintaining remote WordPress installations with
23
+ Capistrano. Pulls in WordPress from SVN, optionally using a local or
24
+ remote cache, and supports a number of common operations and tasks towards
25
+ the care and feeding of sites that may not be 100% maintained through
26
+ version control.
27
+ EOF
28
+ gem.authors = ["Crowd Favorite"]
29
+ # dependencies defined in Gemfile
30
+ end
31
+ Jeweler::RubygemsDotOrgTasks.new
32
+
33
+ require 'rspec/core'
34
+ require 'rspec/core/rake_task'
35
+ RSpec::Core::RakeTask.new(:spec) do |spec|
36
+ spec.pattern = FileList['spec/**/*_spec.rb']
37
+ end
38
+
39
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
40
+ ENV["COVERAGE"] = 'yes'
41
+ Rake::Task['spec'].execute
42
+ end
43
+
44
+ task :default => :spec
45
+
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.4.1
@@ -0,0 +1,85 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "capistrano-wp"
8
+ s.version = "0.4.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Crowd Favorite"]
12
+ s.date = "2013-07-11"
13
+ s.description = " Recipes for deploying and maintaining remote WordPress installations with\n Capistrano. Pulls in WordPress from SVN, optionally using a local or \n remote cache, and supports a number of common operations and tasks towards\n the care and feeding of sites that may not be 100% maintained through \n version control.\n"
14
+ s.extra_rdoc_files = [
15
+ "LICENSE.txt",
16
+ "README.md"
17
+ ]
18
+ s.files = [
19
+ ".document",
20
+ "Gemfile",
21
+ "Gemfile.lock",
22
+ "LICENSE.txt",
23
+ "README.md",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "capistrano-wp.gemspec",
27
+ "lib/capistrano-wp.rb",
28
+ "lib/capistrano/crowdfavorite/wordpress.rb",
29
+ "lib/crowdfavorite.rb",
30
+ "lib/crowdfavorite/support/capistrano_extensions.rb",
31
+ "lib/crowdfavorite/support/namespace.rb",
32
+ "lib/crowdfavorite/tasks.rb",
33
+ "lib/crowdfavorite/tasks/localchanges.rb",
34
+ "lib/crowdfavorite/tasks/wordpress.rb",
35
+ "lib/crowdfavorite/version.rb",
36
+ "lib/crowdfavorite/wordpress.rb",
37
+ "spec/.rspec",
38
+ "spec/capistrano-wp_spec.rb",
39
+ "spec/localchanges_spec.rb",
40
+ "spec/spec_helper.rb",
41
+ "spec/support/capistrano.rb"
42
+ ]
43
+ s.homepage = "http://github.com/crowdfavorite/gem-capistrano-wp"
44
+ s.licenses = ["GPL"]
45
+ s.require_paths = ["lib"]
46
+ s.rubygems_version = "1.8.25"
47
+ s.summary = "Crowd Favorite WordPress Capistrano recipes"
48
+
49
+ if s.respond_to? :specification_version then
50
+ s.specification_version = 3
51
+
52
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
53
+ s.add_runtime_dependency(%q<capistrano>, ["~> 2.15.3"])
54
+ s.add_runtime_dependency(%q<capistrano-ext>, ["~> 1.2.1"])
55
+ s.add_runtime_dependency(%q<railsless-deploy>, ["~> 1.1.2"])
56
+ s.add_runtime_dependency(%q<erubis>, ["~> 2.7.0"])
57
+ s.add_development_dependency(%q<rspec>, ["~> 2.11"])
58
+ s.add_development_dependency(%q<bundler>, ["~> 1.0"])
59
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8"])
60
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
61
+ s.add_development_dependency(%q<capistrano-spec>, [">= 0"])
62
+ else
63
+ s.add_dependency(%q<capistrano>, ["~> 2.15.3"])
64
+ s.add_dependency(%q<capistrano-ext>, ["~> 1.2.1"])
65
+ s.add_dependency(%q<railsless-deploy>, ["~> 1.1.2"])
66
+ s.add_dependency(%q<erubis>, ["~> 2.7.0"])
67
+ s.add_dependency(%q<rspec>, ["~> 2.11"])
68
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
69
+ s.add_dependency(%q<jeweler>, ["~> 1.8"])
70
+ s.add_dependency(%q<simplecov>, [">= 0"])
71
+ s.add_dependency(%q<capistrano-spec>, [">= 0"])
72
+ end
73
+ else
74
+ s.add_dependency(%q<capistrano>, ["~> 2.15.3"])
75
+ s.add_dependency(%q<capistrano-ext>, ["~> 1.2.1"])
76
+ s.add_dependency(%q<railsless-deploy>, ["~> 1.1.2"])
77
+ s.add_dependency(%q<erubis>, ["~> 2.7.0"])
78
+ s.add_dependency(%q<rspec>, ["~> 2.11"])
79
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
80
+ s.add_dependency(%q<jeweler>, ["~> 1.8"])
81
+ s.add_dependency(%q<simplecov>, [">= 0"])
82
+ s.add_dependency(%q<capistrano-spec>, [">= 0"])
83
+ end
84
+ end
85
+
@@ -0,0 +1,2 @@
1
+ require 'crowdfavorite/wordpress'
2
+ $stderr.puts " * capistrano/crowdfavorite/wordpress is deprecated - please require 'crowdfavorite/wordpress' instead"
@@ -0,0 +1,3 @@
1
+ require 'rubygems'
2
+
3
+ require 'crowdfavorite'