Skip to content

Commit

Permalink
+ parent/update action
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Jun 25, 2015
1 parent 2787e91 commit c069025
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions goals/ParentGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace hidev\goals;

use Yii;
use yii\base\InvalidParamException;

/**
Expand Down Expand Up @@ -58,5 +59,7 @@ public function getDefined()

public function actionUpdate()
{
$dir = Yii::getAlias('@parent');
passthru("cd $dir;git pull");
}
}

0 comments on commit c069025

Please sign in to comment.