You are here

function s3fs_drush_command in S3 File System 8.2

Same name and namespace in other branches
  1. 7.3 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 12
Defines a drush command that refreshes the S3 metadata cache.

Code

function s3fs_drush_command() {
  $items = array();
  $items['s3fs-copy-local'] = array(
    'description' => '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',
    'examples' => array(
      'drush s3fs-copy-local' => 'Copy local files from your public and/or private file system(s) into your S3 bucket.',
    ),
  );
  return $items;
}