Exemple #1
0
 /**
  * Configure the variables
  *
  * @return array
  */
 protected function configureVariables()
 {
     $config = $this->getParent()->get('config');
     if (!array_key_exists('composer', $config)) {
         $config['composer'] = [];
     }
     foreach (['whitelistNames', 'whitelistPaths', 'whitelistRemotes'] as $key) {
         if (!array_key_exists($key, $config['composer'])) {
             $config['composer'][$key] = null;
         }
     }
     return ['packages' => array('type' => 'array', 'label' => 'Package name(s) to limit this operation to', 'shortcut' => 'p', 'option' => true), 'whitelistNames' => array('default' => '{config["composer"]["whitelistNames"]}', 'type' => 'string', 'label' => 'Regular expression for package names, to limit this operation to', 'option' => true), 'whitelistPaths' => array('default' => '{config["composer"]["whitelistPaths"]}', 'type' => 'string', 'label' => 'Regular expression for package paths, to limit this operation to', 'option' => true), 'whitelistRemotes' => array('default' => '{config["composer"]["whitelistRemotes"]}', 'type' => 'string', 'label' => 'Regular expression for package remote urls, to limit this operation to', 'option' => true), '--'] + parent::configureVariables();
 }
Exemple #2
0
 /**
  * Variable configuration
  *
  * @return array
  */
 protected function configureVariables()
 {
     return array('cwd' => array('type' => 'string', 'label' => 'The directory to change into'), '--') + parent::configureVariables();
 }
Exemple #3
0
 /**
  * Variable configuration
  *
  * @return array
  */
 protected function configureVariables()
 {
     return array('webUrl' => array('type' => 'string', 'label' => 'URL to the current web root. Set this if you want to clear caches locally - otherwise this WF will clear the node(s) caches'), 'baseDir' => array('type' => 'string', 'default' => '{config["workspace"]}', 'label' => 'Path relative to current application root and webUrl, where the temp script will be stored')) + parent::configureVariables();
 }
Exemple #4
0
 /**
  * Configures the arguments/options
  *
  * @return array
  */
 protected function configureVariables()
 {
     return array('rollback' => array('type' => 'bool', 'label' => 'Makes previous release current and current release next', 'option' => true, 'mode' => InputOption::VALUE_NONE, 'shortcut' => 'r'), 'activate' => array('type' => 'bool', 'label' => 'Makes next release current and current release previous', 'option' => true, 'shortcut' => 'a', 'mode' => InputOption::VALUE_NONE), 'rsync' => array('type' => 'array', 'label' => 'Options for the rsync task (can contain keys options, exclude, and include - see rsync task for their descriptions)'), 'shared' => array('type' => 'array', 'label' => 'Array of files (in key "files") and directories (in key "dirs") to share between releases - share directory is in node.deployDir/shared', 'default' => array()), '--') + parent::configureVariables();
 }
Exemple #5
0
 /**
  * Configure variables
  *
  * @return array
  */
 protected function configureVariables()
 {
     return ['file' => ['type' => 'string', 'option' => true, 'shortcut' => 'f', 'required' => true, 'label' => 'File to write to']] + parent::configureVariables();
 }