before I wrote this function in bash. I want to move it to capistrano
now
On Mar 28, 12:47 am, Jim <[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---