| 5 | | * bugfix :setup_svn no longer stomps on :repository config item |
|---|
| 6 | | * new task :generate_database_yml creates shared/config/database.yml on server [Mike Bailey] |
|---|
| 7 | | * new config item :database_yml_in_scm causes shared/config/database.yml to be symlinked after deploy if set to false [Mike Bailey] |
|---|
| 8 | | * added defaults to prompt-> Capistrano::CLI.prompt('Enter database host', 'localhost') [Mike Bailey] |
|---|
| | 4 | |
|---|
| | 5 | == 1.9.3 |
|---|
| | 6 | |
|---|
| | 7 | I recommend using deprec-2 for new installations but understand that some people will want to continue using deprec-1 for legacy systems. |
|---|
| | 8 | In preparation for release of deprec-2.0.0 I've some minor modifications so that deprec1 and deprec2 can be installed on the same machine. |
|---|
| | 9 | |
|---|
| | 10 | To continue using deprec-1.x, install deprec-1.9.3: |
|---|
| | 11 | |
|---|
| | 12 | sudo gem install --version 1.9.3 deprec |
|---|
| | 13 | |
|---|
| | 14 | Update your projects deploy.rb: |
|---|
| | 15 | |
|---|
| | 16 | require 'rubygems' |
|---|
| | 17 | gem 'deprec', '< 1.99' |
|---|
| | 18 | require 'deprec' |
|---|
| | 19 | |
|---|
| | 20 | Adding the following to your .caprc will load the correct version of deprec |
|---|
| | 21 | based on the version of Capistrano you're using: |
|---|
| | 22 | |
|---|
| | 23 | require 'rubygems' |
|---|
| | 24 | gem 'deprec', '< 1.99' unless respond_to?(:namespace) |
|---|
| | 25 | gem 'deprec', '>= 2.0.0' if respond_to?(:namespace) |
|---|
| | 26 | require 'deprec' |
|---|
| | 27 | |
|---|
| | 28 | You can call capistrano 1 with the command: |
|---|
| | 29 | |
|---|
| | 30 | cap _1.4.2_ show_tasks |
|---|
| | 31 | |
|---|
| | 32 | or create an alias by putting the following in your .profile: |
|---|
| | 33 | |
|---|
| | 34 | alias cap1="`which cap` _1.4.2_" |
|---|
| | 35 | |
|---|
| | 36 | This will allow you to use the following: |
|---|
| | 37 | |
|---|
| | 38 | cap1 show_tasks |
|---|
| | 39 | |
|---|
| | 40 | If everything's working you'll see the deprec tasks listed. |
|---|
| | 41 | |
|---|
| | 42 | |
|---|