Class: CloudFlock::App::FilesMigrate
- Inherits:
-
Object
- Object
- CloudFlock::App::FilesMigrate
- Defined in:
- lib/cloudflock/app/files-migrate.rb
Overview
Public: The FilesMigrate class provides the interface to perform migrations to and from Cloud Files containers, S3 buckets, and local file stores.
Constant Summary collapse
- UPLOAD_THREADS =
Default number of threads to be used to upload staged files.
20
- DOWNLOAD_THREADS =
Default number of threads to be used to download files to staging area.
20
Instance Method Summary collapse
-
#initialize ⇒ FilesMigrate
constructor
Public: Perform the steps necessary to migrate files from one file store to another.
Methods included from Rackspace
#define_rackspace_api, #define_rackspace_cloudservers_region, #define_rackspace_files_region, #define_rackspace_region, #define_rackspace_service_region
Constructor Details
#initialize ⇒ FilesMigrate
Public: Perform the steps necessary to migrate files from one file store to another.
22 23 24 25 26 27 28 29 30 |
# File 'lib/cloudflock/app/files-migrate.rb', line 22 def initialize = source_store = define_source dest_store = define_destination UI.spinner('Migrating files') do files_migrate(source_store, dest_store, ) end end |