Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

root/tools/capistrano/CHANGELOG

Revision 9025, 21.8 kB (checked in by minam, 4 months ago)

Ensure that the default run options are mixed into the command options when executing a command from the cap shell (closes #11348)

Line 
1 *SVN*
2
3 * Ensure that the default run options are mixed into the command options when executing a command from the cap shell [Ken Collins]
4
5 * Added :none SCM module for deploying a specific directory's contents [Jamis Buck]
6
7 * Improved "copy" strategy supports local caching and pattern exclusion (via :copy_cache and :copy_exclude variables) [Jamis Buck]
8
9
10 *2.2.0* February 27, 2008
11
12 * Fix git submodule support to init on sync [halorgium]
13
14 * Add alternative server-centric role definition method [James Duncan Davidson]
15
16 * Add support for password prompts from the Mercurial SCM [ches]
17
18 * Add support for :max_hosts option in task definition or run() [Rob Holland <rob@inversepath.com>]
19
20 * Distributed git support for better operability with remote_cache strategy [voidlock]
21
22 * Use a default line length in help text if line length is otherwise too small [Jamis Buck]
23
24 * Fix incorrect reference to the 'setup' task in task documentation [rajeshduggal]
25
26 * Don't try to kill the spawner process on deploy:stop if no spawner process exists [Jamis Buck]
27
28 * Dynamic roles (e.g. role(:app) { "host.name" }) [dmasover]
29
30 * Implement Bzr#next_revision so that pending changes can be reported correctly [casret]
31
32 * Use a proper export command for bzr SCM [drudru]
33
34 * Use checkout instead of merge for git SCM [nuttycom]
35
36 * Fix typo in Subversion SCM module, encountered when an update fails [kemiller]
37
38 * Fix documentation typo in upload.rb [evolving_jerk]
39
40 * Added test case to show that the :scm_command is honored by the git SCM module [grempe]
41
42 * Fail gracefully when double-colons are used to delimit namespaces [richie]
43
44 * Add support for :git_enable_submodules variable, to enable submodules with the git SCM [halorgium]
45
46 * If subversion asks for a password, prompt as a last resort [Jamis Buck]
47
48 * Use checkout --lightweight for bzr checkout, instead of branch [michiels]
49
50 * Make sure bzr SCM works when revision is head (or unspecified) [michiels]
51
52 * Support p4sync_flags and p4client_root variables for Perforce [gseidman]
53
54 * Prepare for Net::SSH v2 by making sure Capistrano only tries to load Net::SSH versions less than 1.99.0 [Jamis Buck]
55
56
57 *2.1.0* October 14, 2007
58
59 * Default to 0664 instead of 0660 on upload [Jamis Buck]
60
61 * Fix deploy:pending to query SCM for the subsequent revision so that it does not include the last deployed change [Jamis Buck]
62
63 * Prefer 'Last Changed Rev' over 'Revision' when querying latest revision via Subversion [Jamis Buck]
64
65 * Explicitly require 'stringio' in copy_test [mislav]
66
67 * When Subversion#query_revision fails, give a more sane error [Jamis Buck]
68
69 * Don't run the upgrade:revisions task on non-release servers [Jamis Buck]
70
71 * Fix cap shell to properly recognize sudo prompt [Mark Imbriaco, barnaby, Jamis Buck]
72
73 * Git SCM module [Garry Dolley, Geoffrey Grosenbach, Scott Chacon]
74
75 * Use the --password switch for subversion by default, but add :scm_prefer_prompt variable (defaults to false) [Jamis Buck]
76
77
78 *2.0.100 (2.1 Preview 1)* September 1, 2007
79
80 * capify-generated Capfile will autoload all recipes from vendor/plugins/*/recipes/*.rb [Graeme Mathieson]
81
82 * Use sudo -p switch to set sudo password prompt to something predictable [Mike Bailey]
83
84 * Allow independent configurations to require the same recipe file [Jamis Buck]
85
86 * Set :shell to false to run a command without wrapping it in "sh -c" [Jamis Buck]
87
88 * Don't request a pty by default [Jamis Buck]
89
90 * Add a "match" remote dependency method [Adam Greene]
91
92 * Allow auth-caching of subversion credentials to be enabled via :scm_auth_cache [tsmith]
93
94 * Don't let a task trigger itself when used as the source for an "on" hook [Jamis Buck]
95
96 * Avoid using the --password switch with subversion for security purposes [sentinel]
97
98 * Add version_dir, current_dir, and shared_dir variables for naming the directories used in deployment [drinkingbird]
99
100 * Use Windows-safe binary reads for reading file contents [Ladislav Martincik]
101
102 * Add Accurev SCM support [Doug Barth]
103
104 * Use the :runner variable to determine who to sudo as for deploy:restart [Graham Ashton]
105
106 * Add Namespaces#top to always return a reference to the topmost namespace [Jamis Buck]
107
108 * Change the "-h" output so that it does not say that "-q" is the default [Jamis Buck]
109
110
111 *2.0.0* July 21, 2007
112
113 * Make the "no matching servers" error more sane [halorgium]
114
115 * Make sure the invoke task gives a sane error when the COMMAND value is omitted [halorgium]
116
117 * Make sure variables are conditionally set in the deploy recipes, so as not to clobber values set elsewhere [Jamis Buck]
118
119 * Fix "input stream is empty" errors from HighLine on prompt [Jamis Buck]
120
121 * Added "synchronous_connect" setting to try and work around SFTP hangs for certain users [Jamis Buck]
122
123 * Auto-require the SSH shell service, to avoid race conditions [Jamis Buck]
124
125 * Add a millisecond sleep in upload to reduce CPU impact [Jamis Buck]
126
127 * Allow the logger to be set via Configuration#logger= [Jamis Buck]
128
129 * Allow $CAPISTRANO:HOST$ to be used in filenames to the put command [Jamis Buck]
130
131 * Allow execute_on_servers to be called without a current task again [Jamis Buck]
132
133 * Put $stdout in sync mode, so that Net::SSH prompts are displayed [Jamis Buck]
134
135 * Make sure deploy:check aborts if it fails [Jamis Buck]
136
137 * Spelling corrections in docs [Tim Carey-Smith, Giles Bowkett]
138
139
140 *1.99.3 (2.0 Preview 4)* June 28, 2007
141
142 * Don't break task descriptions on a period that appears in the middle of a sentence [Jamis Buck]
143
144 * Added support for :on_error => :continue in task definitions, allowing tasks to effectively ignore connection and execution errors that occur as they run [Rob Holland]
145
146 * Use correct parameters for Logger constructor in the SCM and Strategy base initializers [Jamis Buck]
147
148 * Set LC_ALL=C before querying the revision, to make sure the output is in a predictable locale and can be parsed predictably [via Leandro Nunes dos Santos]
149
150 * Add :copy_remote_dir variable for the :copy strategy, to indicate where the archive should be copied to on the remote servers [Jamis Buck]
151
152 * Make the awk use in the dependencies code work with POSIX awk [mcornick]
153
154 * Make variable accesses thread safe [via Adrian Danieli]
155
156 * Make user input for yes/no prompts work correctly in the Mercurial module [Matthew Elder]
157
158 * Use single quotes to escape semicolon in find command, instead of a backslash [via michael.italia@gmail.com]
159
160 * Better quoting of reserved characters in commands [Jamis Buck]
161
162 * Make sure Net::SSH versions prior to 1.1.0 still work [Jamis Buck]
163
164 * Allow the :hosts and :roles keys to accept lambdas, which will be evaluated lazily to allow runtime selection of hosts and roles in tasks [Jamis Buck]
165
166 * Use `which' to test whether a command exists in the remote path, instead of `test -p' [Jamis Buck]
167
168 * Make sure the connection factory is established synchronously, to avoid multiple gateway instances being spawned [Jamis Buck]
169
170 * Make sure symlink and finalize_update tasks reference the most recent release when called by themselves [Jamis Buck]
171
172
173 *1.99.2 (2.0 Preview 3)* June 15, 2007
174  
175 * CVS SCM module [Brian Phillips]
176
177 * Fix typo in Perforce SCM module [Chris Bailey]
178
179 * ssh_options < server options when connecting [Jamis Buck]
180
181 * Logger defaults to $stderr instead of STDERR [lhartley]
182
183 * Use cp -RPp instead of -a in the remote cache strategy
184
185 * Make the UploadError exception include an array of the hosts that failed [rob@inversepath.com]
186
187 * Allow "empty" roles to be declared [Jamis Buck]
188
189 * Mercurial SCM module [Tobias Luetke, Matthew Elder]
190
191 * Invoke all commands via sh (customizable via :default_shell) [Jamis Buck]
192
193 * Make sure all directories exist on each deploy which are necessary for subsequent commands to succeed, since some SCM's won't save empty directories [Matthew Elder]
194
195 * Add :default_environment variable, which is applied to every command
196
197
198 *1.99.1 (2.0 Preview 2)* May 10, 2007
199
200 * Fix some documentation typos [eventualbuddha]
201
202 * Don't retry failed connections if an explicit auth_methods list is given [Chris Farms]
203
204 * Added support for load and exit callbacks, which get invoked when all recipes have been loaded and when all requested tasks have been executed [Jamis Buck]
205
206 * Added support for start and finish callbacks, which get invoked when any task is called via the command-line [Jamis Buck]
207
208 * Make `capify' understand simple command-line switches [Jamis Buck]
209
210 * Make the server definition itself available to SSH channels, rather than just the host name [Jamis Buck]
211
212 * Identify servers by their complete credentials in logs, rather than simply by hostname [Jamis Buck]
213
214 * Uniquely identify servers based on hostname, port, and username, instead of merely on hostname [Jamis Buck]
215
216 * Allow (e.g.) scm_command and local_scm_command to be set in the event of different paths to the scm command on local vs. remote hosts. [Jamis Buck]
217
218 * Kill the "deploy:app" namespace and move those tasks into deploy, directly. [Jamis Buck]
219
220 * Make sure 'desc' applies to the next defined task, in any namespace. [Jamis Buck]
221
222 * Fix shell so that servers for a task are correctly discovered. [Jamis Buck]
223
224 * Added before(), after(), and on() callback creation methods. [Jamis Buck]
225
226 * Fix broken check! method for some deployment strategies. [Jamis Buck]
227
228 * deploy:cold should also run migrations before starting the app [Jamis Buck]
229
230 * Make the copy strategy check out to a temporary directory [Jamis Buck]
231
232
233 *1.99.0 (2.0 Preview 1)* April 24, 2007
234
235 * Add `capify' script to make it easier to prepare a project for deployment using cap [Jamis Buck]
236
237 * Make sure the sudo helper understands the SuSE dialect of the sudo password prompt [Steven Wisener]
238
239 * Fix synchronization issue with Gateway initialization [Doug Barth]
240
241 * Added opt-in "compat" and "upgrade" recipes for tasks to aid in the upgrade process to Capistrano 2 [Jamis Buck]
242
243 * The deployment recipes are now opt-in. Just do 'load "deploy"' in your recipe script. [Jamis Buck]
244
245 * Added $CAPISTRANO:HOST$ placeholder in commands, which will be replaced with the name of the host on which the command is executing [Jamis Buck]
246
247 * Added -e switch to explain specific task. Added -X to extend -x. Made -h much briefer. Added -T to list known tasks. [Jamis Buck]
248
249 * Added namespaces for tasks [Jamis Buck]
250
251 * Merged the Configuration and Actor classes, performed various other massive refactorings of the code [Jamis Buck]
252
253
254 *1.4.1* (February 24, 2007)
255
256 * Use the no-auth-cache option with subversion so that username/password tokens do not get cached by capistrano usage [jonathan]
257
258 * Deprecated upper-cased variables [Jamis Buck]
259
260 * Make sure Actor#get does not close the SFTP channel (so subsequent SFTP operations work) [Dov Murik]
261
262 * Add :env option to 'run' (and friends) so that you can specify environment variables to be injected into the new process' environment [Mathieu Lajugie]
263
264
265 *1.4.0* (February 3, 2007)
266
267 * Use the auth info for subversion more consistently [Jamis Buck]
268
269 * Add a "capture" helper, for capturing the stdout of a remote command and returning it as a string [Jamis Buck]
270
271 * Add a "get" helper, to pull a file from a remote server to the localhost [bmihelac]
272
273 * Fix gateway to actually increment local_port if a port is in use, so that multiple capistrano instances can run at the same time [Mark Imbriaco]
274
275 * Refactor the permissions tweaking in update_code to a separate task so that people on shared hosts can override it as necessary [jaw6]
276
277 * Set umask during the setup task, so that intermediate directories are created with the proper permissions [NeilW]
278
279 * Removed -c/--caprc switch, since the new load order renders it meaningless (just use -f now) [Mike Bailey]
280
281 * Make sure the standard recipe loads first, so that .caprc and friends can override what it defines. [Mike Bailey]
282
283 * Add support for a system-wide capistrano config file [Mike Bailey]
284
285 * Make cold_deploy call update instead of deploy (to avoid invoking the restart task).
286
287 * Make the touch command run by update_code set the TZ to UTC, for consistent setting of asset timestamps. [NeilW]
288
289 * Fix off-by-one bug in show_tasks width-computation [NeilW]
290
291
292 *1.3.1* (January 5, 2007)
293
294 * Fix connection problems when using gateways [Ezra Zygmuntowicz]
295
296
297 *1.3.0* (December 23, 2006)
298
299 * Deprecate rake integration in favor of invoking `cap' directly [Jamis Buck]
300
301 * Make sure the CVS module references the repository explicitly in cvs_log [weyus@att.net]
302
303 * Remove trace messages when loading a file [Jamis Buck]
304
305 * Cleaner error messages for authentication failures and command errors [Jamis Buck]
306
307 * Added support for ~/.caprc, also -x and -c switches. [Jamis Buck]
308
309 * Updated migrate action to use db:migrate task in Rails instead of the deprecated migrate task [DHH]
310
311 * Allow SSH user and port to be encoded in the hostname strings [Ezra Zygmuntowicz]
312
313 * Fixed that new checkouts were not group-writable [DHH, Jamis Buck]
314
315 * Fixed that cap setup would use 755 on the deploy_to and shared directory roots instead of 775 [DHH]
316
317 * Don't run the cleanup task on servers marked no_release [Jamis Buck]
318
319 * Fix typo in default_io_proc so it correctly checks the stream parameter to see if it is the error stream [Stephen Haberman]
320
321 * Make sure assets in images, javascripts, and stylesheets are touched after updating the code, to ensure the asset timestamping feature of rails works correctly [Jamis Buck]
322
323 * Added warning if password is prompted for and termios is not installed [John Labovitz]
324
325 * Added :as option to sudo, so you can specify who the command is executed as [Mark Imbriaco]
326
327
328 *1.2.0* (September 14, 2006)
329
330 * Add experimental 'shell' task [Jamis Buck]
331
332 * Display file for external configurations, rather than inspected proc. [Jamis Buck]
333
334 * Connect to multiple servers in parallel, rather than serially. [Jamis Buck]
335
336 * Add SCM module for Mercurial (closes #4150) [Matthew Elder]
337
338 * Remove unused line in SCM::Base (closes #5619) [chris@seagul.co.uk]
339
340 * More efficient "svn log" usage (closes #5620) [Anatol Pomozov]
341
342 * Better support for key passphrases in the SVN module (closes #5920) [llasram@gmail.com]
343
344 * Fix missing default for :local in cvs.rb (closes #3645) [jeremy@hinegardner.org]
345
346 * Fix awkward spacing in gemspec file (closes #3888) [grant@antiflux.org]
347
348 * Add support for :sudo variable to specify path to sudo (closes #4578) [timothee.peignier@tryphon.org]
349
350 * Make previous_release return nil if there are no previous releases (closes #4959) [bdabney@cavoksolutions.com]
351
352 * Uncache releases list after update_code is called so that newly released dir is included (closes #3766) [Jamis Buck]
353
354 * Allow the subversion scm to accept HTTPS certificates (closes #4792) [Jamis Buck]
355
356 * Make sure rollbacks occur within the scope of the task that triggered them [Jamis Buck]
357
358 * Fixed the default recipe to work with setups that haven't yet gone pids [DHH]
359
360 * Symlink and setup for shared/pids to tmp/pids [DHH]
361
362 * Fix some incorrect usage text (closes #4507) [gerry_shaw@yahoo.com]
363
364 * Added Actor#stream method that makes it easy to create cross-server streams [DHH]. Example:
365
366     desc "Run a tail on multiple log files at the same time"
367     task :tail_fcgi, :roles => :app do
368       stream "tail -f #{shared_path}/log/fastcgi.crash.log"
369     end
370
371 * Make update_code and symlink a macro task under the name "update" for easy of deploy to servers that does not run fcgis [DHH]
372
373 * Changed setup, update_code, rollback_code, and symlink to work on all servers instead of only those in the :app, :web, and :db roles. A server can opt out of being part of the release deployment by setting :no_release => true [DHH]
374
375 * Added support for :except on task declarations as the opposite of :only [DHH]. Example:
376
377     role :app, "192.168.0.2"
378     role :file, "192.168.0.3", :no_release => true
379
380     task :symlink, :except => { :no_release => true } do
381       on_rollback { run "ln -nfs #{previous_release} #{current_path}" }
382       run "ln -nfs #{current_release} #{current_path}"
383     end
384    
385     cap symlink # will not run on 192.168.0.3
386
387 * Deprecate the -r/--recipe switch in favor of -f/--file (for more make/rake-like semantics) [Jamis Buck]
388
389 * Fix gemspec to include a dependency on rake 0.7 [Jamis Buck]
390
391 * Added respect for ENV["HOSTS"] that'll be used instead of the roles specified in the task definition [DHH]. Example:
392
393     HOSTS=192.168.0.1 cap setup # one-off setup for that server, doesn't need to be prespecified in the recipes file
394
395 * Added respect for ENV["ROLES"] that'll be used instead of the roles specified in the task definition [DHH]. Example:
396
397     task :setup, :roles => [ :app, :web, :db ]
398       # normally this would run every where
399     end
400    
401     ROLES=app cap setup # this will only run for the app role, overwritting the default declaration
402
403 * Added :hosts option to task definition that allows you to specify cross-cutting tasks [DHH]. Example:
404
405     task :setup, :hosts => [ "06.example.com", "01.example.com" ] do
406       # this task will happen on 06 and 01 regardless of which roles they belong to
407     end
408
409 * Fix operator precedence problem in script for touching the revisions.log #3223 [jason.garber@emu.edu]
410
411
412 *1.1.0* (March 6th, 2006)
413
414 * Simplify the generated capistrano.rake file, and make it easier to customize
415
416 * Use rake-like command-line semantics ("cap deploy", in addition to "cap -a deploy")
417
418 * Rename to capistrano
419
420 * Make the generated capistrano.rake file use rake namespaces, and include all default tasks
421
422 * Look for config/deploy.rb, capfile, and Capfile by default
423
424
425 *1.0.1* (February 20th, 2006)
426
427 * Fix broken switchtower_invoke function in switchtower.rake (missing require statement)
428
429
430 *1.0.0* (Feburary 18th, 2006)
431
432 * Make CVS module's :local value default to "."
433
434 * Add "invoke" task for executing one-off commands
435
436 * Make port selection smarter for gateway connections
437
438 * Add extension mechanism for custom ST operations and third-party task libraries
439
440 * Make ST rails rake tasks more configurable
441
442 * Add Actor#current_task and simplify Task#servers
443
444 * Add Actor#connect! method for working around lazy connection establishing
445
446 * Make sure IO::TRUNC is specified for Net::SFTP uploads (#3510)
447
448 * Add branch support to CVS [jeremy@hinegardner.org] (#3596)
449
450 * Add bazaar-ng SCM module [Damien Merenne]
451
452 * Add optional :svn_username and :svn_password variables
453
454 * Allow Proc-valued variables to be set more conveniently (set(:foo) { "bar" })
455
456 * Add perforce SCM module [Richard McMahon]
457
458 * Add bazaar (v1) SCM module [Edd Dumbill] (#3533)
459
460 * Fix stftime format string used in CVS module to be Windows-compatible (fixes #3383)
461
462 * Add an better error when a task is run and no servers match the required conditions
463
464 * Add default spinner and cold_deploy tasks, and spinner_user variable
465
466 * Changed restart_via variable to (boolean) use_sudo
467
468 * Only chmod when the revisions.log file is first created
469
470 * Make UPPERCASE variables work
471
472 * Added rails_env variable (defaults to production) for use by tasks that employ the RAILS_ENV environment variable
473
474 * Added Actor.default_io_proc
475
476 * Set :actor key on SSH channel instances
477
478
479 *0.10.0* (January 2nd, 2006)
480
481 * Handle ssh password prompts like "someone's password:"
482
483 * Make CLI#echo available as a class method.
484
485 * Add CLI#with_echo.
486
487 * Make the default password prompt available as a class method.
488
489 # Add documentation for the CLI class.
490
491 * Add a sanity check to make sure the correct versions of Net::SSH and Net::SFTP are installed.
492
493 * Added a cleanup task to remove unused releases from the deployment directory
494
495 * Allow password to be reentered on sudo if it was entered incorrectly
496
497 * Use && as the command separator for the checkouts, so that errors are caught early.
498
499 * Ping each SSH connection every 1s during command processing so that long-running commands don't cause the connection to timeout.
500
501 * Add a 0.01s sleep during the command loop so that the CPU doesn't go ballistic while ST is doing its thing.
502
503 * Add :restart_via variable for specifying whether restart ought to use :sudo (default, use sudo)
504
505 * Use SFTP for file transfers (if available).
506
507 * Add an "update_current" task that will do an svn up on the current release
508
509 * Use the :checkout variable to determine what operation to use for svn checkouts (instead of co, like "export").
510
511 * The Rails rake tasks now load ST directly, instead of invoking it via system
512
513 * Added ssh_options variable to configure the SSH connection parameters #2734 [jerrett@bravenet.com]
514
515 * Require Net::SSH 1.0.5
516
517
518 *0.9.0* (October 18th, 2005)
519
520 * Use process reaper instead of custom reap script for restarting
521
522 * Use -S switch to set variables before reading recipe files #2242
523
524 * Have setup.rb create a switchtower.cmd file on Win32 platforms #2402
525
526 * Add diff_from_last_deploy to the rails switchtower rakefile template
527
528 * Add diff_from_last_deploy task (currently only works with subversion)
529
530 * Add deploy_with_migrations task.
531
532 * Make the migrate task more customizable.
533
534 * If no password is given with the -p switch, prompt for password immediately.
535
536 * Do not install a switchtower stub in the script directory. Assume the switchtower executable is in the path.
537
538 * Remove trailing newlines from commands to prevent trailing backslash #2141
539
540 * Default parameters work correctly with the generator #2218 [Scott Barron]
541
542 * Attempt to require 'rubygems' explicitly when running the switchtower utility #2134
543
544 * Make default tasks work only on app/db/web roles, so that additional roles may be created for boxes with specific needs without needing to (for instance) deploy the app to those boxes
545
546 * Default the application name to "Application" when using --apply-to
547
548 * Show the help screen instead of an error when no arguments are given
549
550 * Make SwitchTower easier to invoke programmatically via SwitchTower::CLI
551
552 * Specify the revision to release via the :revision variable (defaults to latest revision)
553
554 * Allow variables to be set via the cli using the -s switch
555
556 * Log checkouts to a "revisions.log" file
557
558 * Changed behavior of checkout to use the timestamp as the release name, instead of the revision number
559
560 * Added CVS module (very very experimental!)
561
562 * Works with public keys now, for passwordless deployment
563
564 * Subversion module recognizes the password prompt for HTTP authentication
565
566 * Preserve +x on scripts when using darcs #1929 [Scott Barron]
567
568 * When executing multiline commands, use a backslash to escape the newline
Note: See TracBrowser for help on using the browser.