Sha256: 71b0ee493d24a04a3797322ce40a2b735ccc1f43955aa2429edbab8c5df68051
Contents?: true
Size: 655 Bytes
Versions: 1
Compression:
Stored size: 655 Bytes
Contents
namespace :hypershield do task refresh: :environment do abort "Hypershield is not enabled in this environment. Do a dry run with: rake hypershield:refresh:dry_run" unless Hypershield.enabled $stderr.puts "[hypershield] Refreshing schemas" Hypershield.refresh $stderr.puts "[hypershield] Success!" end namespace :refresh do task dry_run: :environment do Hypershield.refresh(dry_run: true) end end end Rake::Task["db:migrate"].enhance do Rake::Task["hypershield:refresh"].invoke if Hypershield.enabled end Rake::Task["db:rollback"].enhance do Rake::Task["hypershield:refresh"].invoke if Hypershield.enabled end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hypershield-0.2.0 | lib/tasks/hypershield.rake |