original_docstring: ! Executes capability by name
  
          @param capability Capability name
          @param args Additional arguments
          @param kwargs Additional arguments
  
          @details Each capability e.g. may directly just call some command line program or execute building pythonic function
  
          @return Capability call return value
          
docstring: Executes capability by name
  @param capability Capability name
  @param args Additional arguments
  @param kwargs Additional arguments
  
  
  
  @return Capability call return value
docstring_tokens: Executes capability by name @param capability Capability name @param args Additional arguments @param kwargs Additional arguments @return Capability call return value
code: def execute(self, capability, *args, **kwargs):
          """! Executes capability by name
  
          @param capability Capability name
          @param args Additional arguments
          @param kwargs Additional arguments
  
          @details Each capability e.g. may directly just call some command line program or execute building pythonic function
  
          @return Capability call return value
          """
          result = False
          if self.check_parameters(capability, *args, **kwargs) is True:
              image_path = os.path.normpath(kwargs['image_path'])
              destination_disk = os.path.normpath(kwargs['destination_disk'])
              if capability == 'eACommander':
                  cmd = [self.EACOMMANDER_CMD,
                         '--serialno', destination_disk,
                         '--flash', image_path,
                         '--resettype', '2', '--reset']
                  result = self.run_command(cmd)
              elif capability == 'eACommander-usb':
                  cmd = [self.EACOMMANDER_CMD,
                         '--usb', destination_disk,
                         '--flash', image_path]
                  result = self.run_command(cmd)
          return result
code_tokens: def execute ( self , capability , * args , ** kwargs ) : result = False if self . check_parameters ( capability , * args , ** kwargs ) is True : image_path = os . path . normpath ( kwargs [ 'image_path' ] ) destination_disk = os . path . normpath ( kwargs [ 'destination_disk' ] ) if capability == 'eACommander' : cmd = [ self . EACOMMANDER_CMD , '--serialno' , destination_disk , '--flash' , image_path , '--resettype' , '2' , '--reset' ] result = self . run_command ( cmd ) elif capability == 'eACommander-usb' : cmd = [ self . EACOMMANDER_CMD , '--usb' , destination_disk , '--flash' , image_path ] result = self . run_command ( cmd ) return result
short_docstring: Executes capability by name
  @param capability Capability name
  @param args Additional arguments
  @param kwargs Additional arguments
short_docstring_tokens: Executes capability by name @param capability Capability name @param args Additional arguments @param kwargs Additional arguments
comment: """! Executes capability by name
  
          @param capability Capability name
          @param args Additional arguments
          @param kwargs Additional arguments
  
          @details Each capability e.g. may directly just call some command line program or execute building pythonic function
  
          @return Capability call return value
          """