Пример #1
0
 protected function fire()
 {
     // Get arguments
     $version = $this->getInputVersion();
     $recipe = $this->getInputRecipe();
     $directory = $this->getInputDirectory();
     $repository = $this->getInputRepository();
     // Make the directory
     $createProject = new CreateProject($this, $version, $recipe, $directory, $repository);
     $createProject->run($this->input, $this->output);
     $project = $this->getProject();
     // Build and confirm release plan
     $buildPlan = new PlanRelease($this, $project, $version);
     $buildPlan->run($this->input, $this->output);
     $releasePlan = $buildPlan->getReleasePlan();
     // Branch all modules properly
     $branchAlias = new RewriteReleaseBranches($this, $project, $releasePlan);
     $branchAlias->run($this->input, $this->output);
     // Update all translations
     $translate = new UpdateTranslations($this, $project, $releasePlan);
     $translate->run($this->input, $this->output);
     // Run tests
     $test = new RunTests($this, $project);
     $test->run($this->input, $this->output);
     // Generate changelog
     $changelogs = new CreateChangelog($this, $project, $releasePlan);
     $changelogs->run($this->input, $this->output);
     // Output completion
     $this->output->writeln("<info>Success!</info> Release has been updated.");
     $command = $this->getPublishCommand($version, $project);
     $this->output->writeln("Please check the changes made by this command, and run <info>{$command}</info>");
 }
Пример #2
0
 protected function fire()
 {
     $version = $this->getInputVersion();
     $recipe = $this->getInputRecipe();
     $directory = $this->getInputDirectory();
     $repository = $this->getInputRepository();
     // Steps
     $step = new CreateProject($this, $version, $recipe, $directory, $repository);
     $step->run($this->input, $this->output);
 }