module ChefCLI::Helpers

def with_file(path, mode = "wb+", &block)

as this is the most common case we have.
and binary so that windows writes out what we tell it,
Open a file. By default, the mode is for read+write,
def with_file(path, mode = "wb+", &block)
  File.open(path, mode, &block)
end