'Implements interface.'

def add_config(self, options, script):

    if (not options.google_account_credentials):
        return
    if (not options.google_account_project):
        raise ValueError('--google_account_credentials    without    --google_account_project')
    account_params = [options.google_account_name]
    account_params.extend(['--project', options.google_account_project, '--json-path', os.path.basename(options.google_account_credentials)])
    script.append('hal    -q    --log=info    config    provider    google    enable')
    if options.deploy_google_zone:
        script.append('hal    -q    --log=info    config    provider    google    bakery    edit    --zone    {zone}'.format(zone=options.deploy_google_zone))
    script.append('hal    -q    --log=info    config    provider    google    account    add    {params}'.format(params='    '.join(account_params)))
