コード例 #1
0
ファイル: promote.py プロジェクト: zyh19990314/sdk
def Gsutil(cmd, throw_on_error=True):
    gsutilTool = join(DART_PATH, 'third_party', 'gsutil', 'gsutil')
    command = [sys.executable, gsutilTool] + cmd
    if DRY_RUN:
        print 'DRY runnning: %s' % command
        return (None, None, 0)
    return bot_utils.run(command, throw_on_error=throw_on_error)
コード例 #2
0
ファイル: promote.py プロジェクト: michelangelo13/sdk
def Gsutil(cmd, throw_on_error=True):
  gsutilTool = join(DART_PATH, 'third_party', 'gsutil', 'gsutil')
  command = [sys.executable, gsutilTool] + cmd
  if DRY_RUN:
    print "DRY runnning: %s" % command
    return
  return bot_utils.run(command, throw_on_error=throw_on_error)