Skip to content

Instantly share code, notes, and snippets.

View ieve-rothe's full-sized avatar

ieve ieve-rothe

View GitHub Profile
@ieve-rothe
ieve-rothe / Procfile
Created January 25, 2013 07:09 — forked from mojodna/Procfile
web: node app.js
worker: node consumer.js
@ieve-rothe
ieve-rothe / Import
Created July 22, 2011 02:52 — forked from BDQ/Import
namespace :spree do
desc "Export Products to CSV File"
task :export_products => :environment do
require 'fastercsv'
products = Product.find(:all)
puts "Exporting to #{RAILS_ROOT}/products.csv"
FasterCSV.open("#{RAILS_ROOT}/products.csv", "w") do |csv|
csv << ["id", "name", "description","sku", "master_price" ]