Sha256: 7fa839e6c467441ad93823a5927338cc7bf4874f92c9faa7ec20a9c0abf12253
Contents?: true
Size: 640 Bytes
Versions: 2
Compression:
Stored size: 640 Bytes
Contents
require 'yaml' namespace :db do desc 'Upload a scrubbed copy of the database as specified by config/scrub.yml to S3' task :scrub => :environment do logger = ENV["VERBOSE"] ? Logger.new(STDOUT) : Rails.logger logger = Logger.new(STDOUT) logger.level = ENV["VERBOSE"] ? Logger::DEBUG : Logger::WARN begin Brillo.scrub!(logger: logger) rescue CredentialsError => e puts e exit(1) end end desc 'Load a previously created scrubbed database copy from S3' task :load => :environment do begin Brillo.load! rescue CredentialsError => e puts e exit(1) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
brillo-1.1.0 | lib/tasks/brillo.rake |
brillo-1.0.0 | lib/tasks/brillo.rake |