diff options
author | Silvio <silvio@devlet.com.br> | 2010-11-17 18:34:25 -0200 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-11-17 18:34:25 -0200 |
commit | 17be361fbd5f39738b78cecff3da64fc8bf4363e (patch) | |
tree | a6296782eec675beff84e041ead9847e82622e14 /lib | |
parent | ab16e715c988c0ac27c3872640796adb0e81848f (diff) | |
download | sf_isis_importer_plugin-17be361fbd5f39738b78cecff3da64fc8bf4363e.tar.gz sf_isis_importer_plugin-17be361fbd5f39738b78cecff3da64fc8bf4363e.tar.bz2 |
Adding database argument to isis:info task
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sfIsisImporterManager.class.php | 2 | ||||
-rw-r--r-- | lib/task/isisInfoTask.class.php | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/sfIsisImporterManager.class.php b/lib/sfIsisImporterManager.class.php index b7c4608..bd799d3 100644 --- a/lib/sfIsisImporterManager.class.php +++ b/lib/sfIsisImporterManager.class.php @@ -61,7 +61,7 @@ class sfIsisImporterManager extends IsisConnector if (file_exists($config)) { - $this->log("Using Cinisis config file $config."); + $this->log("Using Cinisis config file $config.", 'debug'); $config = sfYaml::load($config); } else { diff --git a/lib/task/isisInfoTask.class.php b/lib/task/isisInfoTask.class.php index da4836c..1124773 100644 --- a/lib/task/isisInfoTask.class.php +++ b/lib/task/isisInfoTask.class.php @@ -4,6 +4,7 @@ class isisInfoTask extends mySfTask { protected function configure() { + $this->addArgument('database', sfCommandArgument::OPTIONAL, 'Optional database name'); $this->addOptions(array( new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'), new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'), @@ -36,6 +37,6 @@ EOF; } // Database information. - $isis->info($this, 'task'); + $isis->info($this, 'task', $arguments['database']); } } |