Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

List files that would be changed in a Capistrano deploy (See related posts)

// description of your code here
Sometimes you want to know before hand which files have been added or changed since your last deploy. Maybe you have to run a migration. Assuming you're using subversion for you source control, this task will list the pending changes.


desc "List the files that would be updated or changed in a deploy."
task :svn_st_up, :roles => :app do
  run "cd #{current_path} && " + "svn st -u"
end


from my blog

You need to create an account or log in to post comments to this site.


Click here to browse all 5059 code snippets

Related Posts