Sha256: 827a0a3fe9dd280193cb63ebbd4cc1c69450c9baccfba4e99528379edee57127

Contents?: true

Size: 266 Bytes

Versions: 11

Compression:

Stored size: 266 Bytes

Contents

#!/usr/bin/env ruby

if ARGV.size < 2
  puts "Improper invocation: capistrano-extensions-copy-production-db backup_env restore_env"
  exit 1
end

system("cap local:backup_db RAILS_ENV=#{ARGV[0]}")
system("cap remote:restore_db RAILS_ENV=#{ARGV[1]} FROM=#{ARGV[0]}")

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
jtrupiano-capistrano-extensions-0.1.3 bin/capistrano-extensions-sync-db
jtrupiano-capistrano-extensions-0.1.4 bin/capistrano-extensions-sync-db
jtrupiano-capistrano-extensions-0.1.6 bin/capistrano-extensions-sync-db
jtrupiano-capistrano-extensions-0.1.7 bin/capistrano-extensions-sync-db
jtrupiano-capistrano-extensions-0.1.8 bin/capistrano-extensions-sync-db
jtrupiano-capistrano-extensions-0.1.9 bin/capistrano-extensions-sync-db
capistrano-extensions-0.1.9 bin/capistrano-extensions-sync-db
capistrano-extensions-0.1.4 bin/capistrano-extensions-sync-db
capistrano-extensions-0.1.3 bin/capistrano-extensions-sync-db
capistrano-extensions-0.1.5 bin/capistrano-extensions-sync-db
capistrano-extensions-0.1.8 bin/capistrano-extensions-sync-db