Added task to set plugin version
This commit is contained in:
1 parent
7dfea751f5
commit
8e441c935f
1 file changed
+13
@@ -76,4 +76,17 @@ class RoboFile extends \Robo\Tasks {
|
||||
);
|
||||
$mustache->loadTemplate( 'laps' );
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Sets the plugin version in header.
|
||||
*
|
||||
* @param string $version Version string.
|
||||
*/
|
||||
public function versionSet( $version ) {
|
||||
|
||||
$this->taskReplaceInFile( 'laps.php' )
|
||||
->regex( '|^Version:.*$|m' )
|
||||
->to( 'Version: ' . $version )
|
||||
->run();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user