Did you check the implementation of server in the "DSL" file?
On 1 Dec 2015 6:34 p.m., "Faissal Elamraoui" <amr.fais...@gmail.com> wrote:

> Hello everyone,
>
> I have a list of IP addresses which i iterate over to declare Capistrano
> servers (*outside any DSL context*) and i'm wondering how can i pass
> roles as a parameter:
>
> def cap_servers(roles=nil)
>    my_servers.each { |ip_addr|
>        *server* ip_addr, roles || %{:app}
>    }
> end
>
> am I doing it correctly?
>
>
> Thanks,
> Faissal
>
> --
> 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/e076294c-c82c-44b9-af6e-cb7aa6213f88%40googlegroups.com
> <https://groups.google.com/d/msgid/capistrano/e076294c-c82c-44b9-af6e-cb7aa6213f88%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_%2BVLXQyrPtSgUKP1wvehi8kzfB9AVyYVGzyAcf%2BoGzaZ%2BGFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to