protected function getStackFactory() { if (is_null($this->stackFactory)) { $this->stackFactory = $this->profileManager->getStackFactory(null); } return $this->stackFactory; }
protected function execute(InputInterface $input, OutputInterface $output) { $profileManager = new Manager(); $rows = []; foreach ($profileManager->listAllProfiles() as $profileName) { $rows[] = [$profileName]; } $table = new \Symfony\Component\Console\Helper\Table($output); $table->setHeaders(array('Profile Name'))->setRows($rows); $table->render(); }
public function testEncryptedAndUnencryptedFile() { if (!class_exists('\\Vault\\Vault')) { $this->markTestSkipped('aoepeople/vault must be installed to run this test'); } putenv("VAULT_MAC_KEY=" . self::VAULT_MAC_KEY); putenv("VAULT_ENCRYPTION_KEY=" . self::VAULT_ENCRYPTION_KEY); chdir(FIXTURE_ROOT . 'ProfileManager/fixture_encrpyted_mix'); $this->assertEquals(['test1', 'test2', 'test3', 'test1-personal', 'test2-personal'], $this->profileManager->listAllProfiles()); }
protected function execute(InputInterface $input, OutputInterface $output) { $profileManager = new Manager(); $file = $profileManager->writeProfileToDotEnv($input->getArgument('profile')); $output->writeln('File written: ' . $file); }