ToposPlayground::Command::Init
Inherits ToposPlayground::Command < Reference < Object
Constants
DOCKER_COMPOSE_VERSION_REGEXP = /Docker Compose version v([0-9]+\.[0-9]+\.[0-9]+)/m
DOCKER_VERSION_REGEXP = /Docker version ([0-9]+\.[0-9]+\.[0-9]+)/m
GIT_REPOS = { {
org: "topos-protocol",
repo: "local-erc20-messaging-infra",
branch: "v2.5.0",
}, {
org: "topos-protocol",
repo: "dapp-frontend-erc20-messaging",
branch: "v1.3.0",
}, {
org: "topos-protocol",
repo: "executor-service",
branch: "v1.2.0",
} }
GIT_VERSION_REGEXP = /git version ([0-9]+\.[0-9]+\.[0-9]+)/m
MIN_VERSION_DOCKER = SemanticVersion.parse("17.06.0")
MIN_VERSION_DOCKER_COMPOSE = SemanticVersion.parse("2.0.0")
MIN_VERSION_GIT = SemanticVersion.parse("2.0.0")
MIN_VERSION_NODEJS = SemanticVersion.parse("16.0.0")
NODEJS_VERSION_REGEXP = /v([0-9]+\.[0-9]+\.[0-9]+)/m
REDIS_CONTAINER_NAME = "redis-stack-server"
Class methods
levenshtein_options
Sourcelog_to_file?(config)
Sourceoptions(parser, config)
SourceInstance methods
clone_git_repositories
Sourcecopy_env_files
Sourcecopy_git_repositories_from_cache
Sourcegit_tag_matches?(repo_path, branch)
Sourcerun
All subclasses must implement #run, which is responsible for carrying out the
logic of the command.
sub_working_dir(path)
Sourceupdate_repository(repo_path)
Sourcevalidate_git_cache
Sourceverify_dependency_installation
Sourceverify_docker_compose_installation
Sourceverify_docker_installation
Sourceverify_git_installation
Sourceverify_nodejs_installation
Sourceversion_check(command, version, version_regexp, formal_label, inline_label = nil)
Source