function apachesolr_drush_solr_phpclient in Apache Solr Search 5.2
Same name and namespace in other branches
- 6.2 drush/apachesolr.drush.inc \apachesolr_drush_solr_phpclient()
1 string reference to 'apachesolr_drush_solr_phpclient'
- apachesolr_drush_command in ./
apachesolr.drush.inc - Implementation of hook_drush_command().
File
- ./
apachesolr.drush.inc, line 124 - drush integration for apachesolr.
Code
function apachesolr_drush_solr_phpclient() {
$args = func_get_args();
if ($args[0]) {
$path = $args[0];
}
else {
$path = drupal_get_path('module', 'apachesolr');
}
drush_op('chdir', $path);
if (drush_shell_exec('svn checkout -r22 http://solr-php-client.googlecode.com/svn/trunk/ SolrPhpClient')) {
drush_log(dt('SolrPhpClient has been downloaded to @path', array(
'@path' => $path,
)), 'success');
}
else {
drush_log(dt('Drush was unable to download the SolrPhpClient to @path', array(
'@path' => $path,
)), 'error');
}
}