Sha256: dd43549cc3778fef1a1f7e8a3384cb144d5a7a4633f8739f440c45dfac97a12e
Contents?: true
Size: 910 Bytes
Versions: 26
Compression:
Stored size: 910 Bytes
Contents
# Small hack to auto-run migrations during testing namespace :db do task :abort_if_pending_migrations => [:migrate] end namespace :comfortable_mexican_sofa do namespace :fixtures do desc 'Import Fixture data into database (options: FROM=example.local TO=example.com)' task :import => :environment do to = ENV['TO'] || ENV['FROM'] from = ENV['FROM'] puts "Importing CMS Fixtures from Folder [#{from}] to Site [#{to}] ..." ComfortableMexicanSofa::Fixtures.import_all(to, from) end desc 'Export database data into Fixtures (options: FROM=example.com TO=example.local)' task :export => :environment do to = ENV['TO'] || ENV['FROM'] from = ENV['FROM'] puts "Exporting CMS data from Site [#{from}] to Folder [#{to}] ..." ComfortableMexicanSofa::Fixtures.export_all(from, to) puts 'Done!' end end end
Version data entries
26 entries across 26 versions & 1 rubygems