Top Level Namespace

Defined Under Namespace

Modules: Apache Classes: Array, Fixnum, Hash, String, Symbol

Instance Method Summary collapse

Methods included from Apache::Rake::Support

#config, #config_paths!, #get_default_environment, #get_environments, #need_environment

Instance Method Details

#capture_stdoutObject



8
9
10
11
12
13
14
15
# File 'lib/apache/rake/apache/create.rb', line 8

def capture_stdout
  buffer = StringIO.new
  $stdout = buffer
  yield
  $stdout = STDOUT
  buffer.rewind
  buffer.read
end