calling task with params from other task

12 views
Skip to first unread message

macsig

unread,
Mar 20, 2014, 12:59:53 AM3/20/14
to capis...@googlegroups.com

 I have a Capistrano 2 task that updates a file

task :update_file, roles: :app do
 ...
end

Now I need to write a task that performs the some operation on all the files within a folder so from within update_folder I'd like to call update_file passing to it the name of the file to update but I have an hard time doing so.

How can I set a Capistrano task to accept an argument and call it from inside an other task?

Thanks



Versions:
  • Ruby - 2.1.1
  • Capistrano 2.15.4
  • Rake / Rails / etc
Platform:
  • Working on.... OSX Mavericks
  • Deploying to... Ubuntu 12.04

Lee Hambley

unread,
Mar 20, 2014, 3:25:14 AM3/20/14
to capistrano

--
You received this message because you are subscribed to the Google Groups "Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/31fb8bca-4d92-4d6a-a747-ab5596880ccb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages