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

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