ToposPlayground::Command::Start
Inherits ToposPlayground::Command::Init < ToposPlayground::Command < Reference < Object
Class methods
levenshtein_options
Sourceoptions(parser, config)
SourceInstance methods
build_dapp_frontend_service(secrets_path, dapp_frontend_service_path)
Sourcedo_npm_install(path)
Sourceparse_contract_addresses_to_hash(filename)
Sourceretrieve_and_write_contract_addresses_to_env
Sourcerun
All subclasses must implement #run, which is responsible for carrying out the
logic of the command.
run_dapp_frontend_service
Sourcerun_executor_service
Sourcerun_local_erc20_messaging_infra
Sourcerun_redis
Sourcesetup_io_handlers_for_background_process(background_process)
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.
shell
Sourcestart_dapp_frontend_service(secrets_path, dapp_frontend_service_path) : Tuple(Channel(Bool), Channel(String), Process)
Sourcestart_executor_service(secrets_path, executor_service_path) : Tuple(Channel(Bool), Channel(String), Process)
Sourcewait_for(background_processes)
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.