Gush\Command\Branch\BranchDeleteCommand::execute PHP Method

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $branchName = $input->getArgument('branch_name');
        $org = $input->getArgument('organization');
        $this->guardProtectedBranches($input, $branchName);
        $this->getHelper('git')->pushToRemote($org, ':' . $branchName, true);
        $this->getHelper('gush_style')->success(sprintf('Branch %s/%s has been deleted!', $org, $branchName));
        return self::COMMAND_SUCCESS;
    }