From ab16e715c988c0ac27c3872640796adb0e81848f Mon Sep 17 00:00:00 2001 From: Silvio Date: Wed, 17 Nov 2010 18:31:22 -0200 Subject: Adding isis:info task --- lib/task/isisInfoTask.class.php | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 lib/task/isisInfoTask.class.php (limited to 'lib/task') diff --git a/lib/task/isisInfoTask.class.php b/lib/task/isisInfoTask.class.php new file mode 100644 index 0000000..da4836c --- /dev/null +++ b/lib/task/isisInfoTask.class.php @@ -0,0 +1,41 @@ +addOptions(array( + new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'), + new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'), + new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'doctrine'), + new sfCommandOption('loglevel', 'l', sfCommandOption::PARAMETER_REQUIRED, 'Log level', 'info'), + )); + + $this->namespace = 'isis'; + $this->name = 'info'; + $this->briefDescription = 'List information of ISIS databases'; + $this->detailedDescription = <<logSection('isis', 'Error opening ISIS database.'); + return FALSE; + } + + // Database information. + $isis->info($this, 'task'); + } +} -- cgit v1.2.3