original_docstring: 
          Pass a command into a host container.
  
          Raises a CommandExecError() if the command returns a non-zero
          return code.
  
          :param command:  The command to execute.
          :return: The output from the command with leading and trailing
          whitespace removed.
          
docstring: Pass a command into a host container.
  Raises a CommandExecError() if the command returns a non-zero
  return code.
docstring_tokens: Pass a command into a host container . Raises a CommandExecError () if the command returns a non - zero return code .
code: def execute(self, command):
          """
          Pass a command into a host container.
  
          Raises a CommandExecError() if the command returns a non-zero
          return code.
  
          :param command:  The command to execute.
          :return: The output from the command with leading and trailing
          whitespace removed.
          """
          etcd_auth = "ETCD_AUTHORITY=%s:2379" % get_ip()
          # Export the environment, in case the command has multiple parts, e.g.
          # use of | or ;
          command = "export %s; %s" % (etcd_auth, command)
  
          if self.dind:
              command = self.escape_bash_single_quotes(command)
              command = "docker exec -it %s bash -c '%s'" % (self.name,
                                                             command)
          try:
              output = check_output(command, shell=True, stderr=STDOUT)
          except CalledProcessError as e:
              # Wrap the original exception with one that gives a better error
              # message (including command output).
              raise CommandExecError(e)
          else:
              return output.strip()
code_tokens: def execute ( self , command ) : etcd_auth = "ETCD_AUTHORITY=%s:2379" % get_ip ( ) command = "export %s; %s" % ( etcd_auth , command ) if self . dind : command = self . escape_bash_single_quotes ( command ) command = "docker exec -it %s bash -c '%s'" % ( self . name , command ) try : output = check_output ( command , shell = True , stderr = STDOUT ) except CalledProcessError as e : raise CommandExecError ( e ) else : return output . strip ( )
short_docstring: Pass a command into a host container.
short_docstring_tokens: Pass a command into a host container .
comment: """
          Pass a command into a host container.
  
          Raises a CommandExecError() if the command returns a non-zero
          return code.
  
          :param command:  The command to execute.
          :return: The output from the command with leading and trailing
          whitespace removed.
          """$SEP$# Export the environment, in case the command has multiple parts, e.g.$SEP$# use of | or ;$SEP$# Wrap the original exception with one that gives a better error$SEP$# message (including command output).