diff --git a/app/commands/Versioning.php b/app/commands/Versioning.php new file mode 100644 index 0000000000..26f0a14309 --- /dev/null +++ b/app/commands/Versioning.php @@ -0,0 +1,82 @@ +argument('version'); + + // Here we save the version array in a variable + $array = var_export(array('latest' => $version), true); + + // Construct our file content + $content = <<line('Setting version: '. \Config::get('version.latest')); + } + + /** + * Get the console command arguments. + * + * @return array + */ + protected function getArguments() + { + return array( + array('version', InputArgument::REQUIRED, 'version number is required.'), + ); + } + + /** + * Get the console command options. + * + * @return array + */ + protected function getOptions() + { + return array( + ); + } +} \ No newline at end of file diff --git a/app/config/version.php b/app/config/version.php new file mode 100644 index 0000000000..8bb9b72421 --- /dev/null +++ b/app/config/version.php @@ -0,0 +1,4 @@ + 'v1.2.6-2-g7047af4', +); \ No newline at end of file diff --git a/app/start/artisan.php b/app/start/artisan.php index 8398267f53..322391f53d 100755 --- a/app/start/artisan.php +++ b/app/start/artisan.php @@ -13,3 +13,4 @@ Artisan::add(new AppCommand); Artisan::add(new SendExpirationAlerts); +Artisan::add(new Versioning);