Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function actionPull($id)
- {
- $model = $this->loadModel($id);
- Yii::import('application.vendor.*');
- require_once('easy-git-deploy/bootstrap.php');
- $user = Yii::app()->session['username'];
- $password = Yii::app()->session['password'];
- $folder = $model->folder;
- $name = $model->name;
- $config = array(
- 'directory' => '../projects/'.$folder,
- 'url' => 'https://'.$user.':'.$password.'@bitbucket.org/redpandapl/'.$name.'.git'
- );
- $pull = new Pull($config);
- $pull->execute();
- echo $pull->_log_messages;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement