Skip to content

Instantly share code, notes, and snippets.

@sj26
Created May 24, 2011 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sj26/988025 to your computer and use it in GitHub Desktop.
Save sj26/988025 to your computer and use it in GitHub Desktop.
require 'headless'
# Wrap in headless to make sure we have an xvfb
AfterConfiguration do
# Base display number on current PID
headless = Headless.new :display => Process.pid
headless.start
at_exit do
headless.destroy
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment