Пример #1
0
 /**
  * {@inheritdoc}
  */
 protected function fire()
 {
     $increment = Versioner::PATCH;
     if ($this->input->getOption('major')) {
         $increment = Versioner::MAJOR;
     } elseif ($this->input->getOption('minor')) {
         $increment = Versioner::MINOR;
     }
     $versioner = new Versioner($this->getChangelog());
     $versioner->setOutput($this->output);
     $versioner->incrementVersion($increment);
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 protected function fire()
 {
     $versioner = new Versioner($this->getChangelog());
     $versioner->setOutput($this->output);
     $versioner->createVersion($this->input->getArgument('version'));
 }