function drush_acsf_version_get in Acquia Cloud Site Factory Connector 8
Command callback. Fetches the version of the acsf moduleset.
File
- ./
acsf.drush.inc, line 406 - Provides drush commands for site related operations.
Code
function drush_acsf_version_get($path = NULL) {
if (empty($path)) {
$path = __DIR__;
}
$version = '0.0';
$acsf_file_path = rtrim($path, '/') . '/acsf.info.yml';
if (file_exists($acsf_file_path)) {
$info_parser = new InfoParser();
$info = $info_parser
->parse($acsf_file_path);
$version = isset($info['acsf_version']) ? $info['acsf_version'] : '0.1';
}
drush_print($version);
}