lib/tasks/hypershield.rake in hypershield-0.2.0 vs lib/tasks/hypershield.rake in hypershield-0.2.1

- old
+ new

@@ -1,14 +1,16 @@ namespace :hypershield do + desc "Refresh Hypershield views" 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 + desc "Print Hypershield SQL statements" task dry_run: :environment do Hypershield.refresh(dry_run: true) end end end