protected function deploy($server, $deployer, OutputInterface $output)
    {
        $plum    = $this->getContainer()->get('madalynn.plum');
        $options = $plum->getOptions($server);

        $dryrun = '';
        if (isset($options['dry_run']) && $options['dry_run']) {
            $dryrun = '<comment>(dry run mode)</comment>';
        }

        $output->writeln(sprintf('Starting %s to <info>%s</info> %s', $deployer, $server, $dryrun));

        // Let's go!
        $plum->deploy($server, $deployer, $options);

        $output->writeln(sprintf('Successfully %s to <info>%s</info>', $deployer, $server));
    }
protected function deploy($server, $deployer, OutputInterface $output)
    {
        $plum    = $this->getContainer()->get('madalynn.plum');
        $options = $plum->getOptions($server);

        $dryrun = '';
        if (isset($options['dry_run']) && $options['dry_run']) {
            $dryrun = '<comment>(dry run mode)</comment>';
        }

        $output->writeln(sprintf('Starting %s to <info>%s</info> %s', $deployer, $server, $dryrun));

        // Let's go!
        $plum->deploy($server, $deployer, $options);

        $output->writeln(sprintf('Successfully %s to <info>%s</info>', $deployer, $server));
    }
protected function deploy ( $ server , $ deployer , OutputInterface $ output ) { $ plum = $ this -> getContainer ( ) -> get ( 'madalynn.plum' ) ; $ options = $ plum -> getOptions ( $ server ) ; $ dryrun = '' ; if ( isset ( $ options [ 'dry_run' ] ) && $ options [ 'dry_run' ] ) { $ dryrun = '<comment>(dry run mode)</comment>' ; } $ output -> writeln ( sprintf ( 'Starting %s to <info>%s</info> %s' , $ deployer , $ server , $ dryrun ) ) ; // Let's go! $ plum -> deploy ( $ server , $ deployer , $ options ) ; $ output -> writeln ( sprintf ( 'Successfully %s to <info>%s</info>' , $ deployer , $ server ) ) ; }
Deploys the application to another server using a deployer.

@param string          $server   The server name
@param string          $deployer The deployer name
@param OutputInterface $output   The output object
Deploys the application to another server using a deployer .