Created
July 21, 2008 20:56
-
-
Save nickstenning/202 to your computer and use it in GitHub Desktop.
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 -w | |
# This should be run through './script/runner' | |
options = YAML.load($stdin.read) | |
demo = Demo.find(options[:demo]) | |
runner = Outback::Runner.new | |
runner.manager = demo.manager | |
runner.logger = Logger.new(options[:logfile]) | |
command = options[:command] | |
runner.run(command) | |
# We don't need to serialize the runner. | |
demo.manager.watcher = nil | |
raise "Could not save demo with updated manager!" unless demo.save | |
p demo | |
demo.reload | |
p demo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment