You are here

function s3fs_drush_command in S3 File System 7.3

Same name and namespace in other branches
  1. 8.2 s3fs.drush.inc \s3fs_drush_command()
  2. 7 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' => dt('Refresh the S3 File System metadata cache.'),
    'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL,
    'aliases' => array(
      's3fs-rc',
    ),
    'callback' => 'drush_s3fs_refresh_cache',
  );
  $items['s3fs-copy-local'] = array(
    'description' => dt('Copy local files from your public and/or private file system(s) into your S3 bucket, if s3fs is configured to take them over.'),
    'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL,
    'aliases' => array(
      's3fs-cl',
    ),
    'callback' => 'drush_s3fs_copy_local',
  );
  return $items;
}