Anthony Ettinger escribió:
> I need to add a directory to the list that is created by default when
> deploy:setup is ran:
>
> ./shared/pictures
>
> How do I do that without re-writing the entire thing?
>
>   
after "deploy:setup", "deploy:create_shared_directories"

namespace :deploy do
  desc <<-DESC
    Create my own shared directories
    A long description ... blablabla...
  DESC
  task :create_shared_directories, :except => { :no_release => true } do
    dirs = %w(pictures).map { |d| File.join(shared_path, d) }
    run "#{try_sudo} mkdir -p #{dirs.join(' ')} && #{try_sudo} chmod g+w 
#{dirs.join(' ')}"
  end
end

Not tested.

-- 
Rafael Garcia Ortega


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

begin:vcard
fn;quoted-printable:Rafael Garc=C3=ADa Ortega
n;quoted-printable:Garc=C3=ADa Ortega;Rafael
org:ASPgems S.L.
email;internet:[EMAIL PROTECTED]
tel;work:692686533
x-mozilla-html:FALSE
url:http://www.aspgems.com
version:2.1
end:vcard

Reply via email to