The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Capistrano with pairing stations

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Paul Gross

Posts: 152
Nickname: pgross
Registered: Sep, 2007

Paul Gross is a software developer for ThoughtWorks.
Capistrano with pairing stations Posted: Jul 19, 2008 1:01 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Paul Gross.
Original Post: Capistrano with pairing stations
Feed Title: Paul Gross's Blog - Home
Feed URL: http://feeds.feedburner.com/pgrs
Feed Description: Posts mainly about ruby on rails.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Paul Gross
Latest Posts From Paul Gross's Blog - Home

Advertisement

My last few projects have all been developed on mac minis. We have them set up as pairing stations, with two people to a machine. Every machine was cloned from the original (or an image), so each station is just like every other.

Over time, machines need maintenance. For example, one pair realizes that we need to upgrade a gem. In order to keep the machines in sync, that pair would either ssh to every pairing station and perform the upgrade, or else ask each pair to do it themselves.

Instead of this manual process, we came up with a capistrano task to launch a shell on every machine. Now, we can run commands on every pairing station at the same time.


task :pairing_stations do
  ENV["HOSTS"] = "10.1.0.12, 10.1.0.13" 
  shell
end

For example, we can check which version of rake is installed on our pairing stations and make sure that they are all up to date:


% cap pairing_stations
  * executing `pairing_stations'
  * executing `shell'
====================================================================
Welcome to the interactive Capistrano shell! This is an experimental
feature, and is liable to change in future releases. Type 'help' for
a summary of how to use the shell.
--------------------------------------------------------------------
cap> gem list | grep rake
[establishing connection(s) to 10.1.0.12, 10.1.0.13]
 ** [out :: 10.1.0.12] rake (0.7.3)
 ** [out :: 10.1.0.13] rake (0.8.1)
cap> gem update rake

Read: Capistrano with pairing stations

Topic: We are hurting people Previous Topic   Next Topic Topic: Ensure return

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use