Created
May 24, 2011 01:58
-
-
Save sj26/988025 to your computer and use it in GitHub Desktop.
This file contains 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
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