Sha256: a43b6e3e8a8c53383b08f1f1f3deaa281633ae174e01f965ed0e7f7bb317b788
Contents?: true
Size: 567 Bytes
Versions: 22
Compression:
Stored size: 567 Bytes
Contents
namespace :backup do desc 'Restore data from git repo, last backup by default' task :restore, :tag do |task, args| on roles(:app) do within release_path do with rails_env: fetch(:stage) do execute :rake, "backup:restore #{args[:tag]}" end end end end end desc 'Backup data to a git repo, tagging it into the git repo' task :backup, :tag do |task, args| on roles(:app) do within release_path do with rails_env: "production" do execute :rake, "backup #{args[:tag]}" end end end end
Version data entries
22 entries across 22 versions & 1 rubygems