public function configure()
	{
		$gitHubUser = $this->arguments->getOpt('github-user', null);

		// Offer suggestion if username wasn't provided
		if (is_null($gitHubUser))
		{
			$gitHubUser = exec('whoami');

			if ($this->output->getMode() != 'minimal')
			{
				$this->output->addLine("Assuming {$gitHubUser} as your GitHub username. To override, please specify the '--github-user' flag", 'info');
			}
		}
		else
		{
			if ($this->output->getMode() != 'minimal')
			{
				$this->output->addLine("Using the provided GitHub username: {$gitHubUser}", 'info');
			}
		}

		// Escape user input
		$gitHubUser = escapeshellarg($gitHubUser);

		// Update GIT config within vendor to point to developer fork of primary repo
		if ($this->output->getMode() != 'minimal')
		{
			$this->output->addLine('Updating the framework repository to point to your GitHub fork', 'success');
		}

		$workTree = PATH_CORE . DS . 'vendor' . DS . 'hubzero' . DS . 'framework';
		$dir      = $workTree . DS . '.git';
		$cmd      = "git --git-dir={$dir} --work-tree={$workTree} remote set-url --push origin git@github.com:{$gitHubUser}/framework.git 2>&1";
		$result   = shell_exec($cmd);
	}
public function configure()
	{
		$gitHubUser = $this->arguments->getOpt('github-user', null);

		// Offer suggestion if username wasn't provided
		if (is_null($gitHubUser))
		{
			$gitHubUser = exec('whoami');

			if ($this->output->getMode() != 'minimal')
			{
				$this->output->addLine("Assuming {$gitHubUser} as your GitHub username. To override, please specify the '--github-user' flag", 'info');
			}
		}
		else
		{
			if ($this->output->getMode() != 'minimal')
			{
				$this->output->addLine("Using the provided GitHub username: {$gitHubUser}", 'info');
			}
		}

		// Escape user input
		$gitHubUser = escapeshellarg($gitHubUser);

		// Update GIT config within vendor to point to developer fork of primary repo
		if ($this->output->getMode() != 'minimal')
		{
			$this->output->addLine('Updating the framework repository to point to your GitHub fork', 'success');
		}

		$workTree = PATH_CORE . DS . 'vendor' . DS . 'hubzero' . DS . 'framework';
		$dir      = $workTree . DS . '.git';
		$cmd      = "git --git-dir={$dir} --work-tree={$workTree} remote set-url --push origin git@github.com:{$gitHubUser}/framework.git 2>&1";
		$result   = shell_exec($cmd);
	}
public function configure ( ) { $ gitHubUser = $ this -> arguments -> getOpt ( 'github-user' , null ) ; // Offer suggestion if username wasn't provided if ( is_null ( $ gitHubUser ) ) { $ gitHubUser = exec ( 'whoami' ) ; if ( $ this -> output -> getMode ( ) != 'minimal' ) { $ this -> output -> addLine ( "Assuming {$gitHubUser} as your GitHub username. To override, please specify the '--github-user' flag" , 'info' ) ; } } else { if ( $ this -> output -> getMode ( ) != 'minimal' ) { $ this -> output -> addLine ( "Using the provided GitHub username: {$gitHubUser}" , 'info' ) ; } } // Escape user input $ gitHubUser = escapeshellarg ( $ gitHubUser ) ; // Update GIT config within vendor to point to developer fork of primary repo if ( $ this -> output -> getMode ( ) != 'minimal' ) { $ this -> output -> addLine ( 'Updating the framework repository to point to your GitHub fork' , 'success' ) ; } $ workTree = PATH_CORE . DS . 'vendor' . DS . 'hubzero' . DS . 'framework' ; $ dir = $ workTree . DS . '.git' ; $ cmd = "git --git-dir={$dir} --work-tree={$workTree} remote set-url --push origin git@github.com:{$gitHubUser}/framework.git 2>&1" ; $ result = shell_exec ( $ cmd ) ; }
Configures the package repository setup for use in a given environment

@museDescription  Configures the package repository for use in a given environment
@museArgument     github-user  The GitHub username to use when configuring the development environment

@return  void
Configures the package repository setup for use in a given environment