summaryrefslogtreecommitdiffstats
path: root/source/Command/VerifyInstallation/Version.php
diff options
context:
space:
mode:
Diffstat (limited to 'source/Command/VerifyInstallation/Version.php')
-rw-r--r--source/Command/VerifyInstallation/Version.php40
1 files changed, 40 insertions, 0 deletions
diff --git a/source/Command/VerifyInstallation/Version.php b/source/Command/VerifyInstallation/Version.php
new file mode 100644
index 0000000..a2f592b
--- /dev/null
+++ b/source/Command/VerifyInstallation/Version.php
@@ -0,0 +1,40 @@
+<?php
+/**
+ * @author stev leibelt <artodeto@bazzline.net>
+ * @since 2014-08-21
+ */
+
+/**
+ * Class Command_VerifyInstallation_Version
+ */
+class Command_VerifyInstallation_Version extends Command_VerifyInstallation_AbstractCommand
+{
+ /**
+ * @throws Exception
+ */
+ public function execute()
+ {
+ $exampleVersion = $this->application->getExampleVersion();
+ $currentVersion = $this->application->getCurrentVersion();
+
+ if ($exampleVersion !== $currentVersion) {
+ throw new Exception(
+ 'current version "' . $currentVersion . '" and code version "' . $exampleVersion . '" differs, update needed'
+ );
+ }
+ }
+
+ /**
+ * @return array
+ */
+ public function getUsage()
+ {
+ }
+
+ /**
+ * @throws Exception
+ */
+ public function verify()
+ {
+ }
+} \ No newline at end of file