diff --git a/RoboFile.php b/RoboFile.php index 0815b83..7e9b4d5 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -76,7 +76,21 @@ class RoboFile extends \Robo\Tasks { ); $mustache->loadTemplate( 'laps' ); } -} + + /** + * @return string + */ + private function versionGet() { + + $content = file_get_contents( __DIR__ . '/laps.php' ); + + if ( false !== preg_match( '|^Version: (?P.+)$|m', $content, $matches ) ) { + return trim( $matches['version'] ); + } + + return ''; + } + /** * Sets the plugin version in header. *