You can look here for an example

http://groups.google.com/group/scalr-discuss/web/scalr-with-capistrano

On Mar 4, 2011, at 12:27 PM, Chris Patti <[email protected]> wrote:

> Folks;
> 
> I have a task:
> 
>   task :readserverlist do
>      cde_servers_json=Net::HTTP.get
> 'serverlist.bluestatedigital.com', '/group/web-cde'
>      pp JSON.parse(cde_servers_json)
>   end
> 
> What I want is the results of this JSON query to set the list of
> servers to deploy to at run time.
> 
> Is this possible, and if so, can someone give me an example of how
> this is done? I've found people talking about assigning roles
> dynamically at run time, but I can't extrapolate how to apply those to
> my situation (probably because I'm a total capistrano newbie :)
> 
> Any clues would be much appreciated.
> 
> Thanks!
> -Chris
> 
> 
> -- 
> Christopher Patti - Geek At Large | GTalk: [email protected] | AIM:
> chrisfeohpatti | P: (260) 54PATTI
> "Technology challenges art, art inspires technology." - John Lasseter, Pixar
> 
> -- 
> * You received this message because you are subscribed to the Google Groups 
> "Capistrano" group.
> * To post to this group, send email to [email protected]
> * To unsubscribe from this group, send email to 
> [email protected] For more options, visit this group at 
> http://groups.google.com/group/capistrano?hl=en

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to