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