class ToposPlayground::Command::Start
- ToposPlayground::Command::Start
- ToposPlayground::Command::Init
- ToposPlayground::Command
- Reference
- Object
Defined in:
topos-playground/command/start.crClass Method Summary
Instance Method Summary
- #build_dapp_frontend_service(secrets_path, dapp_frontend_service_path)
-
#completion_banner
Everything is done; display some final information to the user.
- #do_npm_install(path)
- #parse_contract_addresses_to_hash(filename)
- #retrieve_and_write_contract_addresses_to_env
-
#run
All subclasses must implement
#run
, which is responsible for carrying out the logic of the command. - #run_dapp_frontend_service
- #run_executor_service
- #run_local_erc20_messaging_infra
- #run_redis
-
#setup_io_handlers_for_background_process(background_process)
Setup an
at_exit
handler to ensure that the started processes are cleaned up upontopos-playground
exiting. - #shell
- #start_dapp_frontend_service(secrets_path, dapp_frontend_service_path) : Tuple(Channel(Bool), Channel(String), Process)
- #start_executor_service(secrets_path, executor_service_path) : Tuple(Channel(Bool), Channel(String), Process)
-
#wait_for(background_processes)
Block, waiting for the watched processes to die.
Instance methods inherited from class ToposPlayground::Command::Init
clone_git_repositories
clone_git_repositories,
completion_banner
completion_banner,
copy_env_files
copy_env_files,
copy_git_repositories_from_cache
copy_git_repositories_from_cache,
git_tag_matches?(repo_path, branch)
git_tag_matches?,
run
run,
sub_working_dir(path)
sub_working_dir,
update_repository(repo_path)
update_repository,
validate_git_cache
validate_git_cache,
verify_dependency_installation
verify_dependency_installation,
verify_docker_compose_installation
verify_docker_compose_installation,
verify_docker_installation
verify_docker_installation,
verify_git_installation
verify_git_installation,
verify_nodejs_installation
verify_nodejs_installation,
version_check(command, version, version_regexp, formal_label, inline_label = nil)
version_check
Class methods inherited from class ToposPlayground::Command::Init
levenshtein_options
levenshtein_options,
log_to_file?(config)
log_to_file?,
options(parser, config)
options
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
All subclasses must implement #run
, which is responsible for carrying out the
logic of the command.
Setup an at_exit
handler to ensure that the started processes are cleaned up upon
topos-playground
exiting. Also spawn a fiber to monitor the processes and print
any IO sent to the monitor channel.
Block, waiting for the watched processes to die. They may be killed manually,
or via the at_exit
handler that was created when they were started, and which
is triggered by the topos-playground
process exiting, such as when ctrl-c
is
pressed.