Sha256: a7db913d822e8e34268440aa73ce125352eeb21ecfbf3ed139f0cf7b02a1a625

Contents?: true

Size: 367 Bytes

Versions: 7

Compression:

Stored size: 367 Bytes

Contents

require 'redis_importer'

if defined?(Rails) && File.exists?(Rails.root.join("config/initializers", "local.rb"))
  require Rails.root.join("config/initializers", "local.rb")
end

namespace :redis_importer do
  desc 'Run import'
  task 'import' => :environment do
    ri = RedisImporter::RedisImporter.new

    if !ri.import
      fail "#{ri.errors}"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
redis_importer-1.1.7 lib/redis_importer/tasks.rb
redis_importer-1.1.6 lib/redis_importer/tasks.rb
redis_importer-1.1.5 lib/redis_importer/tasks.rb
redis_importer-1.1.4 lib/redis_importer/tasks.rb
redis_importer-1.1.3 lib/redis_importer/tasks.rb
redis_importer-1.1.2 lib/redis_importer/tasks.rb
redis_importer-1.1.1 lib/redis_importer/tasks.rb