/**
  * Callback method that registers a cli command.
  *
  * @param phpucConsoleInputDefinition $def The input definition container.
  *
  * @return void
  */
 public function registerCommand(phpucConsoleInputDefinition $def)
 {
     $def->addCommand($this->getCommandId(), 'Creates a small CruiseControl example.');
     $def->addArgument($this->getCommandId(), 'cc-install-dir', 'The installation directory of CruiseControl.');
 }
 /**
  * Callback method that registers a cli command.
  *
  * @param phpucConsoleInputDefinition $def The input definition container.
  * 
  * @return void
  */
 public function registerCommand(phpucConsoleInputDefinition $def)
 {
     $def->addCommand($this->getCommandId(), 'Removes old build artifacts and logs for a specified project.');
     $def->addArgument($this->getCommandId(), 'cc-install-dir', 'The installation directory of CruiseControl.');
 }
 /**
  * Callback method that registers a cli command.
  *
  * @param phpucConsoleInputDefinition $def The input definition container.
  *
  * @return void
  */
 public function registerCommand(phpucConsoleInputDefinition $def)
 {
     $def->addCommand($this->getCommandId(), 'Installs CruiseControl start-up script for linux.');
     $def->addArgument($this->getCommandId(), 'cc-install-dir', 'The installation directory of CruiseControl.');
     $def->addArgument($this->getCommandId(), 'init-dir', 'Init scripts directory.');
 }
Example #4
0
 /**
  * Callback method that registers a cli command. 
  *
  * @param phpucConsoleInputDefinition $def The input definition container.
  * 
  * @return void
  */
 public function registerCommand(phpucConsoleInputDefinition $def)
 {
     $def->addCommand($this->getCommandId(), 'Generates the metric graphs with ezcGraph');
     $def->addArgument($this->getCommandId(), 'project-log-dir', 'The project log directory.');
     $def->addArgument($this->getCommandId(), 'project-output-dir', 'The graph output directory.', false);
 }
Example #5
0
 /**
  * Callback method that registers a cli command.
  *
  * @param phpucConsoleInputDefinition $def The input definition container.
  *
  * @return void
  */
 public function registerCommand(phpucConsoleInputDefinition $def)
 {
     $def->addCommand($this->getCommandId(), 'Installs the CruiseControl patches.');
     $def->addArgument($this->getCommandId(), 'cc-install-dir', 'The installation directory of CruiseControl.');
 }
Example #6
0
 /**
  * Callback method that registers a cli command.
  *
  * @param phpucConsoleInputDefinition $def The input definition container.
  * 
  * @return void
  */
 public function registerCommand(phpucConsoleInputDefinition $def)
 {
     $def->addCommand($this->getCommandId(), 'Deletes a CruiseControl project with all logs and artifacts.');
     $def->addArgument($this->getCommandId(), 'cc-install-dir', 'The installation directory of CruiseControl.');
     $def->addOption($this->getCommandId(), 'j', 'project-name', 'The name of the project to be deleted.', true, null, true);
 }
 /**
  * Tests that {@link phpucConsoleInputDefinition::addArgument()} stores
  * a valid argument. 
  *
  * @return void
  */
 public function testAddArgument()
 {
     $definition = new phpucConsoleInputDefinition();
     $definition->addCommand('manuel', 'Hello World.');
     $this->assertFalse($definition->hasArgument('manuel', 'foo'));
     $definition->addArgument('manuel', 'foo', 'Hello World.');
     $this->assertTrue($definition->hasArgument('manuel', 'foo'));
 }