Project

General

Profile

« Previous | Next » 

Revision 4479a240

Added by Guido Günther almost 10 years ago

Make stdin and stderr use unbuffered I/O

This makes sure they're in sync otherwise stdin is buffered while stderr
isn't and the puts and git's stderr output aren't in sync.

View differences:

templates/server/post-receive.erb
require 'fileutils'
$stdout.sync = true
$stderr.sync = true
# Set this to where you want to keep your environments
ENVIRONMENT_BASEDIR = "<%= scope.lookupvar("puppet::server_envs_dir") %>"

Also available in: Unified diff