Production Environment

Trying to "productize" our RoR environment. Like a first step - using SwitchTower. Here is a small stupid task to check the Rails version on the servers (railsapp/config/deploy.rb):

desc "Rails version"
task :rails_version do
  run "gem list | grep '^rails'" do |channel, stream, out|
    puts "Host: #{channel[:host]}"
    puts out
  end
end

Invoke it with:

rake remote_exec ACTION=rails_version