http://stackoverflow.com/questions/825748/how-do-i-pass-command-line-arguments-to-a-rake-task


Lee Hambley
--
http://lee.hambley.name/
+49 (0) 170 298 5667


On 20 March 2014 05:59, macsig <sigbac...@gmail.com> wrote:

>  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
>
>
>  --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/capistrano/31fb8bca-4d92-4d6a-a747-ab5596880ccb%40googlegroups.com<https://groups.google.com/d/msgid/capistrano/31fb8bca-4d92-4d6a-a747-ab5596880ccb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/capistrano/CAN_%2BVLUgwCayBiD365mLSdJez2bj678qB1a9bZRjDerb2zVkrg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to