module Hoe::RakeHelpers

def read_command_output( cmd, *args )

## return anything written to its STDOUT.
## Run the given +cmd+ with the specified +args+ without interpolation by the shell and
def read_command_output( cmd, *args )
	# output = IO.read( '|-' ) or exec cmd, *args # No popen on some platforms. :(
	argstr = Shellwords.join( args )
	output = `#{cmd} #{argstr}`.chomp
	return output
end