Multiple roles with attributes(?) in Capistrano

Posted by Justin on Stack Overflow See other posts from Stack Overflow or by Justin
Published on 2010-04-14T22:18:03Z Indexed on 2010/04/14 22:23 UTC
Read the original article Hit count: 217

Filed under:
|
|
|

How can I pass along attributes to my tasks in capistrano?

I'm thinking it would be something along the lines of...

role :app, 
       [["server_one", {:name => "alice"}], 
        ["server_two", {:name => "bob"}],
        ["server_three", {:name => "charles"}]]

And then for my task...

task :start_server do
  run "./myscript #{name}"
end

Any ideas?

© Stack Overflow or respective owner

Related posts about capistrano

Related posts about ruby