beforeRunningCommand nop bundleUUID 467A60E0-6227-11D9-BFB1-000D93589AF6 command # By Henrik Nyh <http://henrik.nyh.se/> 2007-06-08 # Free to modify and redistribute with credit. # # If you get errors, make sure to set your PATH in ~/.bash_profile per # http://www.macromates.com/textmate/manual/shell_commands#search_path. # Adding /opt/local/bin (where it is for me) to avoid having to do this. export PATH="/opt/local/bin/:$PATH" . "${TM_SUPPORT_PATH}/lib/webpreview.sh" html_header "CapMate" "$TM_PROJECT_DIRECTORY" cd "$TM_PROJECT_DIRECTORY" 2> /dev/null require_cmd cap [ -d app/controllers ] || exit_show_html "Not in a Rails project!" ruby -e 'class << STDERR; alias_method :old_puts, :puts; def puts(m); old_puts(m.strip); Kernel.puts; end; end; load(`which cap`.strip);' deploy | pre html_footer input none name cap deploy output showAsHTML uuid DAFE3C18-8181-4561-8316-C586993559ED