Blob of Commands/Debug - Run current file 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 run_file = RubyAMP::RemoteDebugger.prepare_debug_wrapper &lt;&lt;-EOF
12 require #{ENV['TM_FILEPATH'].to_s.inspect}
13 EOF
14 RubyAMP::Launcher.open_debug_process_in_terminal(run_file)
15 sleep 0.25
16 RubyAMP::Launcher.open_controller_terminal
17 </string>
18 <key>input</key>
19 <string>selection</string>
20 <key>name</key>
21 <string>Debug - Run current file in terminal window</string>
22 <key>output</key>
23 <string>showAsTooltip</string>
24 <key>scope</key>
25 <string>source.ruby</string>
26 <key>uuid</key>
27 <string>63EE6C97-8064-466C-B981-B4430CDB1A40</string>
28 </dict>
29 </plist>