Esempio n. 1
0
def main(argv):
    parser = argparse.ArgumentParser(
        prog="bucket", description=sys.modules["__main__"].__doc__, formatter_class=argparse.RawTextHelpFormatter
    )

    bucket.add_argparse_options(parser)
    infra_libs.logs.add_argparse_options(parser)
    args = parser.parse_args(argv)
    infra_libs.logs.process_argparse_options(args)

    LOGGER.info("Bucket starting.")

    for bucket_name in args.bucket:
        public = bucket.bucket_is_public(bucket_name)
        bucket.run(bucket_name, args.ccompute, public)
Esempio n. 2
0
def main(argv):
  parser = argparse.ArgumentParser(
    prog="bucket",
    description=sys.modules['__main__'].__doc__,
    formatter_class=argparse.RawTextHelpFormatter)

  bucket.add_argparse_options(parser)
  infra_libs.logs.add_argparse_options(parser)
  args = parser.parse_args(argv)
  infra_libs.logs.process_argparse_options(args)

  LOGGER.info('Bucket starting.')

  for bucket_name in args.bucket:
    public = bucket.bucket_is_public(bucket_name)
    bucket.run(bucket_name, args.ccompute, public)
Esempio n. 3
0
 def test_run_without_ccompute(self):
     bucket.run('chrome-private', False, False)
     return self.gsutil.calls
Esempio n. 4
0
 def test_run_with_ccompute(self):
     bucket.run('chromium-public', True, True)
     return self.gsutil.calls
Esempio n. 5
0
 def test_run_without_ccompute(self):
   bucket.run('chrome-private', False, False)
   return self.gsutil.calls
Esempio n. 6
0
 def test_run_with_ccompute(self):
   bucket.run('chromium-public', True, True)
   return self.gsutil.calls