Sha256: 68f7c27cc5e0748a9edc59a7d087d1eda080a1b5e3e577f8938e712a26ff744d

Contents?: true

Size: 561 Bytes

Versions: 109

Compression:

Stored size: 561 Bytes

Contents

require 'ffaker'
require 'pathname'
require 'spree/sample'

namespace :spree_sample do
  desc 'Loads sample data'
  task load: :environment do
    if ARGV.include?('db:migrate')
      puts %Q{
Please run db:migrate separately from spree_sample:load.

Running db:migrate and spree_sample:load at the same time has been known to
cause problems where columns may be not available during sample data loading.

Migrations have been run. Please run 'rake spree_sample:load' by itself now.
      }
      exit(1)
    end

    SpreeSample::Engine.load_samples
  end
end

Version data entries

109 entries across 109 versions & 1 rubygems

Version Path
spree_sample-4.10.1 lib/tasks/sample.rake
spree_sample-4.10.0 lib/tasks/sample.rake
spree_sample-4.9.0 lib/tasks/sample.rake
spree_sample-4.8.3 lib/tasks/sample.rake
spree_sample-4.8.2 lib/tasks/sample.rake
spree_sample-4.7.3 lib/tasks/sample.rake
spree_sample-4.6.6 lib/tasks/sample.rake
spree_sample-4.5.5 lib/tasks/sample.rake
spree_sample-4.0.9 lib/tasks/sample.rake
spree_sample-4.1.15 lib/tasks/sample.rake
spree_sample-4.2.7 lib/tasks/sample.rake
spree_sample-4.3.3 lib/tasks/sample.rake
spree_sample-4.4.1 lib/tasks/sample.rake
spree_sample-4.5.4 lib/tasks/sample.rake
spree_sample-4.6.5 lib/tasks/sample.rake
spree_sample-4.7.1 lib/tasks/sample.rake
spree_sample-4.6.4 lib/tasks/sample.rake
spree_sample-4.7.0 lib/tasks/sample.rake
spree_sample-4.6.3 lib/tasks/sample.rake
spree_sample-4.6.2 lib/tasks/sample.rake