module Berkshelf
def null_stream
def null_stream @null ||= begin strm = STDOUT.clone strm.reopen(RbConfig::CONFIG["host_os"] =~ /mswin|mingw/ ? "NUL:" : "/dev/null") strm.sync = true strm end end
def null_stream @null ||= begin strm = STDOUT.clone strm.reopen(RbConfig::CONFIG["host_os"] =~ /mswin|mingw/ ? "NUL:" : "/dev/null") strm.sync = true strm end end