Sha256: 92621625f01806426c3b87aa0c08036fc1340cff26b097d7d74b2dee8746a4b5
Contents?: true
Size: 803 Bytes
Versions: 2
Compression:
Stored size: 803 Bytes
Contents
require 'capistrano' unless Capistrano::Configuration.respond_to?(:instance) abort "bcms_content_syncing requires Capistrano 2" end module Cms module ContentSyncing unless included_modules.include? BrowserMediaConfiguration Capistrano::Configuration.instance(:must_exist).load do namespace :sync do desc "Sync the local database to production. (Wipes out database)" task :db do # Backup the database on the server # filename run("cd #{current_path} && #{rake} db:backup RAILS_ENV=production") filename = 'backup-latest.yml' download "#{current_path}/db/backup/#{filename}", "db/backup/#{filename}" system 'rake db:restore' end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bcms_content_syncing-1.0.1 | lib/bcms_content_syncing/cap_tasks.rb |
bcms_content_syncing-1.0.0 | lib/bcms_content_syncing/cap_tasks.rb |