docs: def send_file(self,
  	              path,
  	              contents,
  	              shutit_pexpect_child=None,
  	              truncate=False,
  	              note=None,
  	              user=None,
  	              echo=False,
  	              group=None,
  	              loglevel=logging.INFO,
  	              encoding=None):
  		"""Sends the passed-in string as a file to the passed-in path on the
  		target.
  
  		@param path:        Target location of file on target.
  		@param contents:    Contents of file as a string.
  		@param shutit_pexpect_child:       See send()
  		@param note:        See send()
  		@param user:        Set ownership to this user (defaults to whoami)
  		@param group:       Set group to this user (defaults to first group in groups)
  
  		@type path:         string
  		@type contents:     string
  		"""
  		shutit_global.shutit_global_object.yield_to_draw()
  		shutit_pexpect_child = shutit_pexpect_child or self.get_current_shutit_pexpect_session().pexpect_child
  		shutit_pexpect_session = self.get_shutit_pexpect_session_from_child(shutit_pexpect_child)
  		return shutit_pexpect_session.send_file(path,
  		                                        contents,
  		                                        truncate=truncate,
  		                                        note=note,
  		                                        echo=echo,
  		                                        user=user,
  		                                        group=group,
  		                                        loglevel=loglevel,
  		                                        encoding=encoding)