コード例 #1
0
 public function testAddExtras()
 {
     $config = new ComposeContainers(Platform::rootDir(), Platform::projectName());
     $config->addRedis();
     $config_converted = Yaml::parse($config->yaml());
     $this->assertCount(4, $config_converted);
     $config->addSolr();
     $config_converted = Yaml::parse($config->yaml());
     $this->assertCount(5, $config_converted);
 }
コード例 #2
0
 public function writeDockerCompose(ComposeContainers $composeContainers)
 {
     $this->fs->dumpFile($this->projectPath . '/docker-compose.yml', $composeContainers->yaml());
 }