summaryrefslogtreecommitdiffstats
path: root/provision.inc
diff options
context:
space:
mode:
authorAntoine Beaupré2010-12-20 21:17:34 (GMT)
committeranarcat2010-12-20 21:17:34 (GMT)
commit8734e0f531d8434af9781e1b8389c5fcd254050d (patch)
tree3b7e8deb8631bd4fa4bd13d23785da6e00b5d31d /provision.inc
parentd41e1c517dfd53c7a2a795de41aaddb75c6b68ec (diff)
store the aegir version in a single place: the .info file
we still need to update it in the INSTALL.txt and UPGRADE.txt unfortunately
Diffstat (limited to 'provision.inc')
-rw-r--r--provision.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/provision.inc b/provision.inc
index f2d3f19..79d3f5d 100644
--- a/provision.inc
+++ b/provision.inc
@@ -298,6 +298,13 @@ function provision_backend_invoke($target, $command, $arguments = array(), $opti
return drush_backend_invoke_args('@' . ltrim($target, '@') . ' ' . $command, $arguments, $options + array('root' => null, 'uri' => null), $mode);
}
+/**
+ * parse the .ini file to get the aegir version
+ */
+function provision_version() {
+ $ini = parse_ini_file(dirname(__FILE__) . '/provision.info');
+ return $ini['version'];
+}
/**
* A base class for the service and file handling classes that implements