def write(content, to, overwrite = false, raise = true)
      # This is just a hack around +put+
      tempfile = Tempfile.new
      tempfile.write content
      tempfile.close

      put tempfile.path, to, overwrite, raise
    end
def write(content, to, overwrite = false, raise = true)
      # This is just a hack around +put+
      tempfile = Tempfile.new
      tempfile.write content
      tempfile.close

      put tempfile.path, to, overwrite, raise
    end
Writes content to remote file
 @param [String] content The content to be written
 @param [String] to The destination file path
 @param [Boolean] overwrite Overwrite if exist on server?
 @param [Boolean] raise raise Error or just return +false+
 @return [Boolean] true on success