I wrote a task like:
task :parse_log, :hosts=>"myhostname", :roles=>:jim do
    run "Date=`date --d '1 day ago' +%Y-%m-%d`"
    run "echo '${Date}'"
end

by the way. Can I use function in capistrano?
like:

function myfunction  {
  NOW=`date`
  echo "$NOW : $*" >> $CRONJOBLOG
}

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

Reply via email to