Permalink
Browse files

Use Ruby API rather than backticks to get system info

  • Loading branch information...
1 parent 8f4e9a8 commit a36bde117b04885116ebbeeb96b86b6857bb1c84 @brynary committed Oct 22, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/testjour/commands/run.rb
@@ -1,5 +1,6 @@
require "optparse"
require "socket"
+require "etc"
require "testjour/commands/command"
require "testjour/http_queue"
@@ -118,7 +119,7 @@ def local_run_command
end
def testjour_uri
- user = `whoami`.strip
+ user = Etc.getpwuid.name
host = Testjour.socket_hostname
"http://#{user}@#{host}" + File.expand_path(".")
end

0 comments on commit a36bde1

Please sign in to comment.