Ejemplo n.º 1
0
    protected function configure()
    {
        parent::configure();
        $this->setName('deployer:exec2servers')->setDescription('Executes command passed as argument to all configured servers.')->addOption('command', null, InputOption::VALUE_REQUIRED, 'Command to execute.')->setHelp(<<<EOT
The <info>deployer:exec2servers</info> command Executes command passed as argument to all configured servers.
EOT
);
    }
Ejemplo n.º 2
0
    protected function configure()
    {
        parent::configure();
        $this->setName('deployer:clean')->setDescription('Remove old code. Left <info>clean_max_deploys</info> deploys.')->setHelp(<<<EOT
The <info>deployer:clean</info> removes old code. Left <info>clean_max_deploys</info> deploys..
EOT
);
    }
Ejemplo n.º 3
0
    protected function configure()
    {
        parent::configure();
        $this->setName('deployer:syncronize')->setDescription('Syncronize servers with all deployed versions of code.')->setHelp(<<<EOT
The <info>deployer:sync</info> command ensure that all downloaded versions of code are copied to all servers.
Useful when you add a new server to a zone. If you not syncronize the new server the rollback operation will break the code in the new server.
EOT
);
    }
Ejemplo n.º 4
0
    protected function configure()
    {
        parent::configure();
        $this->addOption('send_warning_n_days_deploy', null, InputOption::VALUE_OPTIONAL, 'Send email warning if N days from last deploy.');
        $this->setName('deployer:status')->setDescription('Get running and downloaded versions for every location.')->setHelp(<<<EOT
The <info>deployer:status</info> gets running and downloaded versions for every location.
EOT
);
    }
Ejemplo n.º 5
0
    protected function configure()
    {
        parent::configure();
        $this->setName('deployer:initialize')->setDescription('Initialize directories on configured servers.')->setHelp(<<<EOT
The <info>deployer:initialize</info> command initialize directories on all configured servers.
It must be executed one time before deploy cycles.
EOT
);
    }
Ejemplo n.º 6
0
    protected function configure()
    {
        parent::configure();
        $this->setName('deployer:download')->addOption('branch', null, InputArgument::OPTIONAL, 'Choose a different branch than configured one.')->setDescription('Download code to configured servers.')->setHelp(<<<EOT
The <info>deployer:download</info> command download code to all configured servers.
Downloaded code far than 7 days it will be removed.
EOT
);
    }
Ejemplo n.º 7
0
    protected function configure()
    {
        parent::configure();
        $this->addArgument('action', InputArgument::REQUIRED, 'Action: list, execute');
        $this->addArgument('version', InputArgument::OPTIONAL, 'Version to rollback');
        $this->setName('deployer:rollback')->setDescription('Rollback code that it is on production environment with a previous version on configured servers.')->setHelp(<<<EOT
The <info>deployer:rollback</info> command rollback code that it is on production environment with a previous version on configured servers.
EOT
);
    }
    protected function configure()
    {
        parent::configure();
        $this->addOption('force', null, InputOption::VALUE_NONE, 'Useful for some tasks that have to be done in the deployer.');
        $this->setName('deployer:code2production')->setDescription('Move downloaded code to production environment on configured servers.')->setHelp(<<<EOT
The <info>deployer:code2production</info> command move downloaded code to production environment on all configured servers and clears APC cache.
If a problem is detected during the execution it will be rolled back.
It is the most important command.
EOT
);
    }