Pat Maddox
2006-Mar-02 09:53 UTC
[Rails] Making SwitchTower work with csh (and other non-posix shells)
I tried using ST, but it didn''t work with the csh shell. Today I decided to make it work, and came up with the very simple solution of wrapping the failed commands inside a bash instance. Blog post is http://www.flpr.org/articles/2006/03/02/make-switchtower-work-with-csh-hack Solution (so you don''t have to read the blog post :) is to edit $gems_dir/switchtower-1.0.1/lib/switchtower/scm/base.rb (line 34) to read: command = <<-STR /usr/local/bin/bash -c ''if [[ ! -d #{configuration.release_path} ]]; then #{guts} #{logging_commands(directory)} fi'' STR So if you want to use SwitchTower along with csh, now you can. Pat