Sha256: 35ed70cb4f5780643f32765a1a5feb3ed37ccba91b41178fd8610adb745867d6
Contents?: true
Size: 276 Bytes
Versions: 11
Compression:
Stored size: 276 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_content RAILS_ENV=#{ARGV[0]}") system("cap remote:restore_content RAILS_ENV=#{ARGV[1]} FROM=#{ARGV[0]}")
Version data entries
11 entries across 11 versions & 2 rubygems