Blob of Commands/Debug - App server in terminal window.tmCommand (raw blob data)

1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 <plist version="1.0">
4 <dict>
5 <key>beforeRunningCommand</key>
6 <string>nop</string>
7 <key>command</key>
8 <string>#!/usr/bin/env ruby
9 require "#{ENV['TM_BUNDLE_SUPPORT']}/lib/ruby_amp.rb"
10
11 project_directory = ENV['TM_PROJECT_DIRECTORY']
12 rails_script_server = File.join(project_directory, "script/server")
13
14 # Try and be smart about which one to start up (merb or rails)
15 file_to_load = File.exists?( rails_script_server ) ? rails_script_server : (ENV['MERB_PATH'] || `which merb`)
16
17 run_file = RubyAMP::RemoteDebugger.prepare_debug_wrapper &lt;&lt;-EOF
18 load #{file_to_load.inspect}
19 EOF
20
21 RubyAMP::Launcher.open_debug_process_in_terminal(run_file)
22 sleep 0.25
23 RubyAMP::Launcher.open_controller_terminal</string>
24 <key>input</key>
25 <string>selection</string>
26 <key>name</key>
27 <string>Debug - App server in terminal window</string>
28 <key>output</key>
29 <string>showAsTooltip</string>
30 <key>uuid</key>
31 <string>52CB8CE8-550B-4871-9852-86A1A0567FB7</string>
32 </dict>
33 </plist>