How do I "copy unless later version exists" in Capistrano?
I want to protect my `database.yml` file by keeping it out of version control.  Thus, I have two tasks in my Capistrano deploy recipe:

    task :copy_db_config do
      # copy local config file if it exists and is more
      # recent than the remote one
    end

    task :symlink_db_config do
      run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
    end

Can you help fill in the first task?
How do I "copy unless later version exists" in Capistrano?
===

I want to protect my `database.yml` file by keeping it out of version control.  Thus, I have two tasks in my Capistrano deploy recipe:

    task :copy_db_config do
      # copy local config file if it exists and is more
      # recent than the remote one
    end

    task :symlink_db_config do
      run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
    end

Can you help fill in the first task?