Sha256: 5009d9578ad51b1c5a6242f0f655d73f12b9a5836af8ff3bb070fa183bbe0cc2
Contents?: true
Size: 670 Bytes
Versions: 6
Compression:
Stored size: 670 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: SITE=example.com)' task :import => :environment do |task, args| site = if ComfortableMexicanSofa.config.enable_multiple_sites Cms::Site.find_by_hostname(args[:site]) else Cms::Site.first end abort 'SITE is not found. Aborting.' if !site puts "Syncing for #{site.hostname}" ComfortableMexicanSofa::Fixtures.sync(site) puts 'Done!' end end end
Version data entries
6 entries across 6 versions & 1 rubygems