Created
February 1, 2011 10:47
-
-
Save sousk/805696 to your computer and use it in GitHub Desktop.
prove runner, TextMate's code snippet, make your test running on remote.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
file = ENV['TM_FILEPATH'] | |
if file =~ /\.t$/ | |
local = ENV['LOCAL_PROJECT_ROOT'] | |
remote = ENV['REMOTE_PROJECT_ROOT'] | |
path = file.sub local, remote | |
else | |
local = ENV['TEST_LOCAL_DIR'] | |
remote = ENV['TEST_REMOTE_DIR'] | |
path = file.sub local, remote | |
path.chomp! '.pm' | |
end | |
exec "ssh #{ENV['REMOTE_SSH_NAME']} prove #{path}" | |
# puts "ssh #{ENV['REMOTE_SSH_NAME']} 'prove #{path}'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment