class ToposPlayground::Command::Init
- ToposPlayground::Command::Init
- ToposPlayground::Command
- Reference
- Object
Direct Known Subclasses
Defined in:
topos-playground/command/init.crConstant Summary
-
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 Method Summary
Instance Method Summary
- #clone_git_repositories
-
#completion_banner
Everything is done; display some final information to the user.
- #copy_env_files
- #copy_git_repositories_from_cache
- #git_tag_matches?(repo_path, branch)
-
#run
All subclasses must implement
#run
, which is responsible for carrying out the logic of the command. - #sub_working_dir(path)
- #update_repository(repo_path)
- #validate_git_cache
- #verify_dependency_installation
- #verify_docker_compose_installation
- #verify_docker_installation
- #verify_git_installation
- #verify_nodejs_installation
- #version_check(command, version, version_regexp, formal_label, inline_label = nil)
Instance methods inherited from class ToposPlayground::Command
config : Config
config,
config=(config : Config)
config=,
run
run,
run_process(command, chdir = ".", env : Process::Env = nil, shell : Bool = true)run_process(command, chdir = ".", background : Bool = false, env : Process::Env = nil) run_process
Constructor methods inherited from class ToposPlayground::Command
new(config : Config)
new
Class methods inherited from class ToposPlayground::Command
config : Config
config,
config=(config : Config)
config=,
levenshtein_options
levenshtein_options,
log_to_file?(config)
log_to_file?,
options(parser, config)
options,
run_process(command, chdir = ".", background : Bool = false, env : Process::Env = nil)run_process(command, chdir = ".", env : Process::Env = nil, shell : Bool = true) run_process
Class Method Detail
Instance Method Detail
def run
#
Description copied from class ToposPlayground::Command
All subclasses must implement #run
, which is responsible for carrying out the
logic of the command.
def version_check(command, version, version_regexp, formal_label, inline_label = nil)
#