blob: 8b0ed4e3e3430c3c2b36aa291ae93bf2fb88e08d [file] [log] [blame]
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Runs a daemon to update git credentials from the GCE metadata server.
Only works inside a GCE with proper service accounts tagged.
Example invocation:
# This file is untested, keep as little code as possible in there.
import logging
import sys
from import git_cookie_daemon
from infra_libs import app
LOGGER = logging.getLogger(__name__)
class GitCookieDaemon(app.BaseApplication):
DESCRIPTION = sys.modules['__main__'].__doc__
PROG_NAME = 'git_cookie_daemon'
def add_argparse_options(self, parser):
super(GitCookieDaemon, self).add_argparse_options(parser)
def main(self, opts):
if __name__ == '__main__':