# File lib/rhc/core_ext.rb, line 23
  def chunk(chunk_size=1024)
    yield read(chunk_size) until eof?
  end