Sha256: b19f041d797975611ee1a43de88852c16dfe1e67268ea5d571cdbe19f295bc81

Contents?: true

Size: 476 Bytes

Versions: 17

Compression:

Stored size: 476 Bytes

Contents

# require "blog_importer.rb"

# desc 'Import blog from CSV'
# task :import_blog => :environment do
#   puts "Prior to running: #{Fuel::Post.count} blog posts in database"
#   puts "deleting #{Fuel::Post.count} posts..."
#   Fuel::Post.destroy_all
#   puts "0 should remain at this point...#{Fuel::Post.count} actually remain"
#   puts "importing new blog posts..."
#   BlogImporter.new.pull
#   puts "Success! There are now #{Fuel::Post.count} blog posts in database."
# end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
fuel-0.4.10 spec/dummy/lib/tasks/import_blog.rake
fuel-0.4.9 spec/dummy/lib/tasks/import_blog.rake
fuel-0.4.8 spec/dummy/lib/tasks/import_blog.rake
fuel-0.4.7 spec/dummy/lib/tasks/import_blog.rake
fuel-0.4.6 spec/dummy/lib/tasks/import_blog.rake
fuel-0.4.5 spec/dummy/lib/tasks/import_blog.rake
fuel-0.4.4 spec/dummy/lib/tasks/import_blog.rake
fuel-0.4.3 spec/dummy/lib/tasks/import_blog.rake
fuel-0.4.2 spec/dummy/lib/tasks/import_blog.rake
fuel-0.4.1 spec/dummy/lib/tasks/import_blog.rake
fuel-0.3.34 spec/dummy/lib/tasks/import_blog.rake
fuel-0.3.33 spec/dummy/lib/tasks/import_blog.rake
fuel-0.3.32 spec/dummy/lib/tasks/import_blog.rake
fuel-0.3.31 spec/dummy/lib/tasks/import_blog.rake
fuel-0.3.30 spec/dummy/lib/tasks/import_blog.rake
fuel-0.3.29 spec/dummy/lib/tasks/import_blog.rake
fuel-0.3.28 spec/dummy/lib/tasks/import_blog.rake