Merge lp:~tristan-rivoallan/vanilla-miner/vm-600135 into lp:vanilla-miner

Proposed by Tristan Rivoallan
Status: Merged
Merged at revision: 64
Proposed branch: lp:~tristan-rivoallan/vanilla-miner/vm-600135
Merge into: lp:vanilla-miner
Diff against target: 24 lines (+7/-0)
1 file modified
lib/task/minerExtractlinksTask.class.php (+7/-0)
To merge this branch: bzr merge lp:~tristan-rivoallan/vanilla-miner/vm-600135
Reviewer Review Type Date Requested Status
Tristan Rivoallan Approve
Review via email: mp+28922@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Tristan Rivoallan (tristan-rivoallan) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/task/minerExtractlinksTask.class.php'
2--- lib/task/minerExtractlinksTask.class.php 2010-06-29 17:28:46 +0000
3+++ lib/task/minerExtractlinksTask.class.php 2010-06-30 17:23:24 +0000
4@@ -29,6 +29,7 @@
5 new sfCommandOption('extraction-driver', null, sfCommandOption::PARAMETER_REQUIRED, 'Extraction driver class name', 'CI_Extractor_LussumoVanilla1'),
6 new sfCommandOption('incremental', null, sfCommandOption::PARAMETER_REQUIRED, 'If true, only extracts URLs from new and updated resources since last extraction', true),
7 new sfCommandOption('progress', null, sfCommandOption::PARAMETER_NONE, 'Displays a progress bar'),
8+ new sfCommandOption('and-expand', null, sfCommandOption::PARAMETER_NONE, 'Launches expansion on newly extracted links'),
9 ));
10
11 $this->namespace = 'miner';
12@@ -148,6 +149,12 @@
13 $this->logSection('extract', 'No resources to extract. Exiting.');
14 }
15
16+ // Run links expansion if user asked so
17+ if ($options['and-expand'])
18+ {
19+ $this->runTask('miner:expand-links', array(), array('progress' => $options['progress']));
20+ }
21+
22 // Record finish time and statistics
23 $databaseManager = new sfDatabaseManager($this->configuration);
24 $connection = $databaseManager->getDatabase($options['connection'])->getConnection();

Subscribers

People subscribed via source and target branches

to all changes: