function apachesolr_drush_solr_phpclient in Apache Solr Search 6.2
Same name and namespace in other branches
- 5.2 apachesolr.drush.inc \apachesolr_drush_solr_phpclient()
1 string reference to 'apachesolr_drush_solr_phpclient'
- apachesolr_drush_command in drush/
apachesolr.drush.inc - Implementation of hook_drush_command().
File
- drush/
apachesolr.drush.inc, line 137 - drush integration for apachesolr.
Code
function apachesolr_drush_solr_phpclient() {
$args = func_get_args();
if (isset($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');
}
}