You are here

function s3fs_drush_command in S3 File System 7

Same name and namespace in other branches
  1. 8.2 s3fs.drush.inc \s3fs_drush_command()
  2. 7.3 s3fs.drush.inc \s3fs_drush_command()
  3. 7.2 s3fs.drush.inc \s3fs_drush_command()

Implements hook_drush_command().

File

./s3fs.drush.inc, line 11
Defines a drush command that refreshes the S3 metadata cache.

Code

function s3fs_drush_command() {
  $items = array();
  $items['s3fs-refresh-cache'] = array(
    'description' => t("Refreshes the S3 File System metadata cache. Your Amazon Web Services credentials, and the name of your site's bucket, must be configured first."),
    'aliases' => array(
      's3fs-rc',
    ),
    'callback' => 'drush_s3fs_refresh_cache',
  );
  return $items;
}