Source code for solitude.tools.ganache_cli

# Copyright (c) 2019, Solitude Developers
#
# This source code is licensed under the BSD-3-Clause license found in the
# COPYING file in the root directory of this source tree

from solitude.tools.base import ToolNpmTemplate
from solitude.common.resource_util import get_global_config


[docs]class GanacheCli(ToolNpmTemplate):
[docs] def __init__(self, tooldir: str, version: str): lockfile = get_global_config()["GanacheCli.PackageLock"] if lockfile is not None: lockfile = lockfile.format(version=version) super().__init__( tooldir=tooldir, name="GanacheCli", version=version, provides="ganache-cli", package="ganache-cli", executable="ganache-cli", lockfile=lockfile)