tools/cygprofile/orderfile_generator_backend.py
def UploadToCloudStorage(self, filename, use_debug_location):
    """Uploads a file to cloud storage.

    Args:
      filename: (str) File to upload.
      use_debug_location: (bool) Whether to use the debug location.
    """
    bucket = (self._CLOUD_STORAGE_BUCKET_FOR_DEBUG if use_debug_location
              else self._CLOUD_STORAGE_BUCKET)
    extension = _GetFileExtension(filename)
    cmd = [self._UPLOAD_TO_CLOUD_COMMAND, '--bucket', bucket]
    if extension:
      cmd.extend(['-z', extension])
    cmd.append(filename)
    self._step_recorder.RunCommand(cmd)
    print('Download: https://sandbox.google.com/storage/%s/%s' %
          (bucket, _GenerateHash(filename)))
Uploads a file to cloud storage.

    Args:
      filename: (str) File to upload.
      use_debug_location: (bool) Whether to use the debug location.
    
Uploads a file to cloud storage.
Uploads a file to cloud storage .
def UploadToCloudStorage(self, filename, use_debug_location):
    bucket = (self._CLOUD_STORAGE_BUCKET_FOR_DEBUG if use_debug_location
              else self._CLOUD_STORAGE_BUCKET)
    extension = _GetFileExtension(filename)
    cmd = [self._UPLOAD_TO_CLOUD_COMMAND, '--bucket', bucket]
    if extension:
      cmd.extend(['-z', extension])
    cmd.append(filename)
    self._step_recorder.RunCommand(cmd)
    print('Download: https://sandbox.google.com/storage/%s/%s' %
          (bucket, _GenerateHash(filename)))
def UploadToCloudStorage ( self , filename , use_debug_location ) : bucket = ( self . _CLOUD_STORAGE_BUCKET_FOR_DEBUG if use_debug_location else self . _CLOUD_STORAGE_BUCKET ) extension = _GetFileExtension ( filename ) cmd = [ self . _UPLOAD_TO_CLOUD_COMMAND , '--bucket' , bucket ] if extension : cmd . extend ( [ '-z' , extension ] ) cmd . append ( filename ) self . _step_recorder . RunCommand ( cmd ) print ( 'Download: https://sandbox.google.com/storage/%s/%s' % ( bucket , _GenerateHash ( filename ) ) )
Uploads a file to cloud storage.
Uploads a file to cloud storage .
"""Uploads a file to cloud storage.

    Args:
      filename: (str) File to upload.
      use_debug_location: (bool) Whether to use the debug location.
    """
self
filename
(str) File to upload.
( str ) File to upload .
use_debug_location
(bool) Whether to use the debug location.
( bool ) Whether to use the debug location .