= Capistrano yum install ruby ruby-devel ruby-docs ruby-ri ruby-irb ruby-rdoc wget http://rubyforge.org/frs/download.php/43985/rubygems-1.3.0.tgz tar zxvf rubygems-1.3.0.tgz cd rubygems-1.3.0 ruby setup.rb gem install -y capistrano vi Capfile task :ls_home, :hosts => "192.168.20.27" do run "ls -al" end task :cat_installlog, :hosts => "192.168.20.27,192.168.20.47" do run "cat install.log" end cap ls_home cap cat_installlog