1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Fix the heredocs to use <<-, so that textmate highlights them correctly

git-svn-id: http://svn.rubyonrails.org/rails/tools/switchtower@2566 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jamis Buck 2005-10-13 20:11:02 +00:00
parent edcb868f72
commit baabba800e

View file

@ -33,7 +33,7 @@ task :setup, :roles => [:app, :db, :web] do
CMD CMD
end end
desc <<DESC desc <<-DESC
Disable the web server by writing a "maintenance.html" file to the web Disable the web server by writing a "maintenance.html" file to the web
servers. The servers must be configured to detect the presence of this file, servers. The servers must be configured to detect the presence of this file,
and if it is present, always display it instead of performing the request. and if it is present, always display it instead of performing the request.
@ -51,7 +51,7 @@ task :enable_web, :roles => :web do
delete "#{shared_path}/system/maintenance.html" delete "#{shared_path}/system/maintenance.html"
end end
desc <<DESC desc <<-DESC
Update all servers with the latest release of the source code. All this does Update all servers with the latest release of the source code. All this does
is do a checkout (as defined by the selected scm module). is do a checkout (as defined by the selected scm module).
DESC DESC
@ -67,7 +67,7 @@ task :update_code, :roles => [:app, :db, :web] do
CMD CMD
end end
desc <<DESC desc <<-DESC
Rollback the latest checked-out version to the previous one by fixing the Rollback the latest checked-out version to the previous one by fixing the
symlinks and deleting the current release from all servers. symlinks and deleting the current release from all servers.
DESC DESC
@ -82,7 +82,7 @@ task :rollback_code, :roles => [:app, :db, :web] do
end end
end end
desc <<DESC desc <<-DESC
Update the 'current' symlink to point to the latest version of Update the 'current' symlink to point to the latest version of
the application's code. the application's code.
DESC DESC
@ -99,7 +99,7 @@ end
set :migrate_target, :current set :migrate_target, :current
set :migrate_env, "" set :migrate_env, ""
desc <<DESC desc <<-DESC
Run the migrate rake task. By default, it runs this in the version of the app Run the migrate rake task. By default, it runs this in the version of the app
indicated by the 'current' symlink. (This means you should not invoke this task indicated by the 'current' symlink. (This means you should not invoke this task
until the symlink has been updated to the most recent version.) However, you until the symlink has been updated to the most recent version.) However, you
@ -122,7 +122,7 @@ task :migrate, :roles => :db, :only => { :primary => true } do
"#{rake} RAILS_ENV=production #{migrate_env} migrate" "#{rake} RAILS_ENV=production #{migrate_env} migrate"
end end
desc <<DESC desc <<-DESC
A macro-task that updates the code, fixes the symlink, and restarts the A macro-task that updates the code, fixes the symlink, and restarts the
application servers. application servers.
DESC DESC
@ -135,7 +135,7 @@ task :deploy do
restart restart
end end
desc <<DESC desc <<-DESC
Similar to deploy, but it runs the migrate task on the new release before Similar to deploy, but it runs the migrate task on the new release before
updating the symlink. (Note that the update in this case is not atomic, updating the symlink. (Note that the update in this case is not atomic,
and transactions are not used, because migrations are not guaranteed to be and transactions are not used, because migrations are not guaranteed to be
@ -163,7 +163,7 @@ task :rollback do
restart restart
end end
desc <<DESC desc <<-DESC
Displays the diff between HEAD and what was last deployed. (Not available Displays the diff between HEAD and what was last deployed. (Not available
with all SCM's.) with all SCM's.)
DESC DESC