コード例 #1
0
ファイル: build.py プロジェクト: fanyuxing/generator
def package(data_path, peer_path):
    utils.file_must_exists('{}/meta/fisco-bcos'.format(path.get_path()))
    utils.check_fisco('{}/meta/fisco-bcos'.format(path.get_path()))
    if (os.path.exists(peer_path) and os.path.isfile(peer_path)):
        mconf.read_peers(peer_path)
    else:
        mconf.default_peers()
    config.build_package_only(data_path)
コード例 #2
0
ファイル: build.py プロジェクト: fanyuxing/generator
def build(peer_path, data_path):
    """[--build]
    """
    utils.file_must_exists('{}/meta/fisco-bcos'.format(path.get_path()))
    utils.check_fisco('{}/meta/fisco-bcos'.format(path.get_path()))
    if utils.Status.gm_option:
        utils.file_must_exists('{}/meta/gmca.crt'.format(path.get_path()))
    else:
        utils.file_must_exists('{}/meta/ca.crt'.format(path.get_path()))
    utils.file_must_exists(peer_path)
    mconf.read_peers(peer_path)
    config.build_config_ini(data_path)
    opr_cert.deploy_key('{}/meta'.format(path.get_path()), data_path)