示例#1
0
    protected function configure()
    {
        parent::configure();
        // add your own arguments here
        $this->addArguments(array(new sfCommandArgument('datafile', sfCommandArgument::REQUIRED, 'Please provide the .yml /path/file')));
        $this->addOptions(array(new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name', 'app', 'prod'), new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'), new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'propel')));
        $this->namespace = 'etva';
        $this->name = 'updatedb';
        $this->briefDescription = 'Updates etva/etvm database';
        $this->detailedDescription = <<<EOF
The [etva:updatedb|INFO] task does things.
Call it with:

  [php symfony etva:updatedb|INFO]
EOF;
    }
    protected function configure()
    {
        parent::configure();
        // // add your own arguments here
        $this->addArguments(array(new sfCommandArgument('serverid', sfCommandArgument::REQUIRED, 'Provide server id'), new sfCommandArgument('filepath', sfCommandArgument::REQUIRED, 'path to file to save'), new sfCommandArgument('snapshot', sfCommandArgument::OPTIONAL, 'snapshot'), new sfCommandArgument('delete', sfCommandArgument::OPTIONAL, 'delete after download'), new sfCommandArgument('newsnapshot', sfCommandArgument::OPTIONAL, 'snapshot to create'), new sfCommandArgument('location', sfCommandArgument::OPTIONAL, 'location to put backup file'), new sfCommandArgument('do_not_generate_tar', sfCommandArgument::OPTIONAL, 'to do not generate tar')));
        $this->addOptions(array(new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'), new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'prod'), new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'propel')));
        $this->namespace = 'server';
        $this->name = 'download-backup-snapshot';
        $this->briefDescription = 'Download server backup from snapshot';
        $this->detailedDescription = <<<EOF
The [server:download-backup-snapshot|INFO] task does things.
Call it with:

  [php symfony server:download-backup-snapshot|INFO]
EOF;
    }
    protected function configure()
    {
        parent::configure();
        // // add your own arguments here
        // $this->addArguments(array(
        //   new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),
        // ));
        $this->addOptions(array(new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'), new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'prod'), new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'propel')));
        $this->namespace = 'cluster';
        $this->name = 'check-shared-storage-consistency';
        $this->briefDescription = 'Check shared storage consistency';
        $this->detailedDescription = <<<EOF
The [cluster:check-shared-storage-consistency|INFO] task does things.
Call it with:

  [php symfony cluster:check-shared-storage-consistency|INFO]
EOF;
    }
    protected function configure()
    {
        parent::configure();
        // // add your own arguments here
        // $this->addArguments(array(
        //   new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),
        // ));
        $this->addOptions(array(new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'), new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'prod'), new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'propel')));
        $this->namespace = 'node';
        $this->name = 'check-nodes-keepalive';
        $this->briefDescription = 'Checks nodes(virtAgents) connectivity';
        $this->detailedDescription = <<<EOF
The [node:check-nodes-keepalive|INFO] task does things.
Call it with:

  [php symfony node:check-nodes-keepalive|INFO]
EOF;
    }
    protected function configure()
    {
        parent::configure();
        // // add your own arguments here
        // $this->addArguments(array(
        //   new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),
        // ));
        $this->addOptions(array(new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'), new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'prod'), new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'propel')));
        $this->namespace = 'etva';
        $this->name = 'update-guests-info';
        $this->briefDescription = 'Updates CM info about nodes servers (Guest Agent info).';
        $this->detailedDescription = <<<EOF
The [etva:update-guests-info|INFO] task updates CM info about nodes servers. Contacts all existing guest agents.
Call it with:

  [php symfony etva:update-guests-info|INFO]
EOF;
    }
    protected function configure()
    {
        // // add your own arguments here
        // $this->addArguments(array(
        //   new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),
        // ));
        parent::configure();
        $this->addOptions(array(new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'), new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'prod'), new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'propel')));
        $this->namespace = 'server';
        $this->name = 'check-heartbeat-timeout';
        $this->briefDescription = '';
        $this->detailedDescription = <<<EOF
The [server:check-heartbeat-timeout|INFO] task does things.
Call it with:

  [php symfony server:check-heartbeat-timeout|INFO]
EOF;
    }
    protected function configure()
    {
        // // add your own arguments here
        // $this->addArguments(array(
        //   new sfCommandArgument('my_arg', sfCommandArgument::REQUIRED, 'My argument'),
        // ));
        parent::configure();
        $this->addOptions(array(new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'), new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'prod'), new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'propel')));
        $this->namespace = 'event';
        $this->name = 'flushlog';
        $this->briefDescription = 'Clean-up database records of system events';
        $this->detailedDescription = <<<EOF
The [event:flushlog|INFO] task does things.
Call it with:

  [php symfony event:flushlog|INFO]
EOF;
    }