use a 1.8-compatbiel method for IO.pipe

This commit is contained in:
David Dollar
2012-01-29 14:01:13 -05:00
parent e053dc8434
commit 0dff116340
+1 -1
View File
@@ -58,7 +58,7 @@ private ######################################################################
concurrency = Foreman::Utils.parse_concurrency(@options[:concurrency])
procfile.entries.each do |entry|
reader, writer = IO.pipe("BINARY")
reader, writer = (IO.method(:pipe).arity == 0 ? IO.pipe : IO.pipe("BINARY"))
entry.spawn(concurrency[entry.name], writer, @directory, @environment, port_for(entry, 1, base_port)).each do |process|
running_processes[process.pid] = process
readers[process] = reader