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

Version Path
prun-ops-0.1.6 lib/capistrano/backup.rake
prun-ops-0.1.5 lib/capistrano/backup.rake
prun-ops-0.1.4 lib/capistrano/backup.rake
prun-ops-0.1.3 lib/capistrano/backup.rake
prun-ops-0.1.2 lib/capistrano/backup.rake
prun-ops-0.1.1 lib/capistrano/backup.rake
prun-ops-0.1.0 lib/capistrano/backup.rake
prun-ops-0.0.22 lib/capistrano/backup.rake
prun-ops-0.0.21 lib/capistrano/backup.rake
prun-ops-0.0.20 lib/capistrano/backup.rake
prun-ops-0.0.19 lib/capistrano/backup.rake
prun-ops-0.0.18 lib/capistrano/backup.rake
prun-ops-0.0.17 lib/capistrano/backup.rake
prun-ops-0.0.16 lib/capistrano/backup.rake
prun-ops-0.0.15 lib/capistrano/backup.rake
prun-ops-0.0.14 lib/capistrano/backup.rake
prun-ops-0.0.13 lib/capistrano/backup.rake
prun-ops-0.0.12 lib/capistrano/backup.rake
prun-ops-0.0.11 lib/capistrano/backup.rake
prun-ops-0.0.10 lib/capistrano/backup.rake