Module: Backup
- Defined in:
- lib/backup.rb,
lib/backup/model.rb,
lib/backup/binder.rb,
lib/backup/config.rb,
lib/backup/errors.rb,
lib/backup/logger.rb,
lib/backup/archive.rb,
lib/backup/cleaner.rb,
lib/backup/package.rb,
lib/backup/version.rb,
lib/backup/packager.rb,
lib/backup/pipeline.rb,
lib/backup/splitter.rb,
lib/backup/template.rb,
lib/backup/syncer/s3.rb,
lib/backup/dependency.rb,
lib/backup/storage/s3.rb,
lib/backup/cli/helpers.rb,
lib/backup/cli/utility.rb,
lib/backup/storage/ftp.rb,
lib/backup/storage/scp.rb,
lib/backup/syncer/base.rb,
lib/backup/storage/base.rb,
lib/backup/storage/sftp.rb,
lib/backup/syncer/cloud.rb,
lib/backup/checksum/base.rb,
lib/backup/database/base.rb,
lib/backup/database/riak.rb,
lib/backup/encryptor/gpg.rb,
lib/backup/notifier/base.rb,
lib/backup/notifier/mail.rb,
lib/backup/storage/local.rb,
lib/backup/storage/rsync.rb,
lib/backup/database/mysql.rb,
lib/backup/database/redis.rb,
lib/backup/encryptor/base.rb,
lib/backup/notifier/prowl.rb,
lib/backup/storage/cycler.rb,
lib/backup/checksum/shasum.rb,
lib/backup/compressor/base.rb,
lib/backup/compressor/gzip.rb,
lib/backup/compressor/lzma.rb,
lib/backup/storage/dropbox.rb,
lib/backup/compressor/bzip2.rb,
lib/backup/database/mongodb.rb,
lib/backup/notifier/hipchat.rb,
lib/backup/notifier/twitter.rb,
lib/backup/storage/ninefold.rb,
lib/backup/compressor/pbzip2.rb,
lib/backup/notifier/campfire.rb,
lib/backup/syncer/rsync/base.rb,
lib/backup/syncer/rsync/pull.rb,
lib/backup/syncer/rsync/push.rb,
lib/backup/configuration/base.rb,
lib/backup/encryptor/open_ssl.rb,
lib/backup/notifier/presently.rb,
lib/backup/storage/cloudfiles.rb,
lib/backup/syncer/cloud_files.rb,
lib/backup/syncer/rsync/local.rb,
lib/backup/database/postgresql.rb,
lib/backup/configuration/helpers.rb,
lib/backup/configuration/syncer/s3.rb,
lib/backup/configuration/storage/s3.rb,
lib/backup/configuration/storage/ftp.rb,
lib/backup/configuration/storage/scp.rb,
lib/backup/configuration/syncer/base.rb,
lib/backup/configuration/storage/base.rb,
lib/backup/configuration/storage/sftp.rb,
lib/backup/configuration/syncer/cloud.rb,
lib/backup/configuration/checksum/base.rb,
lib/backup/configuration/database/base.rb,
lib/backup/configuration/database/riak.rb,
lib/backup/configuration/encryptor/gpg.rb,
lib/backup/configuration/notifier/base.rb,
lib/backup/configuration/notifier/mail.rb,
lib/backup/configuration/storage/local.rb,
lib/backup/configuration/storage/rsync.rb,
lib/backup/configuration/database/mysql.rb,
lib/backup/configuration/database/redis.rb,
lib/backup/configuration/encryptor/base.rb,
lib/backup/configuration/notifier/prowl.rb,
lib/backup/configuration/checksum/shasum.rb,
lib/backup/configuration/compressor/base.rb,
lib/backup/configuration/compressor/gzip.rb,
lib/backup/configuration/compressor/lzma.rb,
lib/backup/configuration/storage/dropbox.rb,
lib/backup/configuration/compressor/bzip2.rb,
lib/backup/configuration/database/mongodb.rb,
lib/backup/configuration/notifier/hipchat.rb,
lib/backup/configuration/notifier/twitter.rb,
lib/backup/configuration/storage/ninefold.rb,
lib/backup/configuration/compressor/pbzip2.rb,
lib/backup/configuration/notifier/campfire.rb,
lib/backup/configuration/syncer/rsync/base.rb,
lib/backup/configuration/syncer/rsync/pull.rb,
lib/backup/configuration/syncer/rsync/push.rb,
lib/backup/configuration/encryptor/open_ssl.rb,
lib/backup/configuration/notifier/presently.rb,
lib/backup/configuration/storage/cloudfiles.rb,
lib/backup/configuration/syncer/cloud_files.rb,
lib/backup/configuration/syncer/rsync/local.rb,
lib/backup/configuration/database/postgresql.rb
Overview
Build the Backup Command Line Interface using Thor
Defined Under Namespace
Modules: CLI, Checksum, Cleaner, Compressor, Config, Configuration, Database, Encryptor, Errors, ErrorsHelper, Logger, Notifier, Packager, Storage, Syncer Classes: Archive, Binder, Dependency, Model, Package, Pipeline, Splitter, Template, Version
Constant Summary collapse
- LIBRARY_PATH =
Backup’s internal paths
File.join(File.dirname(__FILE__), 'backup')
- CLI_PATH =
File.join(LIBRARY_PATH, 'cli')
- STORAGE_PATH =
File.join(LIBRARY_PATH, 'storage')
- DATABASE_PATH =
File.join(LIBRARY_PATH, 'database')
- COMPRESSOR_PATH =
File.join(LIBRARY_PATH, 'compressor')
- CHECKSUM_PATH =
File.join(LIBRARY_PATH, 'checksum')
- ENCRYPTOR_PATH =
File.join(LIBRARY_PATH, 'encryptor')
- NOTIFIER_PATH =
File.join(LIBRARY_PATH, 'notifier')
- SYNCER_PATH =
File.join(LIBRARY_PATH, 'syncer')
- CONFIGURATION_PATH =
File.join(LIBRARY_PATH, 'configuration')
- TEMPLATE_PATH =
File.('../../templates', __FILE__)
Class Method Summary collapse
Instance Method Summary collapse
-
#lib ⇒ Object
Require Backup base files.
Class Method Details
.const_missing(const) ⇒ Object
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 |
# File 'lib/backup/config.rb', line 154 def const_missing(const) if const.to_s == 'CONFIG_FILE' Logger.warn Errors::ConfigError.new(<<-EOS) Configuration File Upgrade Needed Your configuration file, located at #{ Config.config_file } needs to be upgraded for this version of Backup. The reference to 'Backup::CONFIG_FILE' in your current config.rb file has been deprecated and needs to be replaced with 'Config.config_file'. You may update this reference in your config.rb manually, or generate a new config.rb using 'backup generate:config'. * Note: if you have global configuration defaults set in config.rb, be sure to transfer them to your new config.rb, should you choose to generate a new config.rb file. EOS return Config.config_file end super end |
Instance Method Details
#lib ⇒ Object
Require Backup base files
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 |
# File 'lib/backup.rb', line 200 %w{ model archive packager pipeline package cleaner splitter config binder template dependency logger version errors }.each {|lib| require File.join(LIBRARY_PATH, lib) } |