Sha256: f44c6eafeff9f8779476b6dd2399b8a5e1dac4d4c96a1b4ca5c1ee1ade5eaf34
Contents?: true
Size: 528 Bytes
Versions: 1
Compression:
Stored size: 528 Bytes
Contents
namespace :simple_importer do def importers require 'simple_importer' SimpleImporter.find_importers SimpleImporter.importers end importers.each do |i| desc i.desc task i.name do Rake::Task[:environment].invoke if Rake::Task.task_defined?(:environment) puts "Importing #{i.name}" i.run puts "Finished importing #{i.name}" end end desc "run all importers" task :import do importers.each do |i| Rake::Task["simple_importer:#{i.name}"].invoke end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_importer-0.1.0 | lib/simple_importer/tasks/simple_importer.rake |