def task_example():
'''
cp|strip config.yml -> config.yml.example
'''
apikey = '82_CHAR_APIKEY'
punch = fmt('''
authorities:
digicert:
apikey: {apikey}
destinations:
zeus:
apikey: {apikey}
''')
return {
'actions': [
fmt('cp {CONFIG_YML}.example {CONFIG_YML}.bak'),
fmt('cp {CONFIG_YML} {CONFIG_YML}.example'),
lambda: _update_config(CONFIG_YML+'.example', yaml.safe_load(punch)),
],
}
评论列表
文章目录