Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.
/ casual_jacket Public archive

An importer library for receiving and understanding product data.

License

Notifications You must be signed in to change notification settings

acumenbrands/casual_jacket

Repository files navigation

CasualJacket

Casual Jacket

Product Import compliment for translating and caching spreadsheets as sets of data operations.

Configuration

Establish a connection to Redis:

CasualJacket.configure do |config|
  config.redis_host = 'your.redis_instance.biz:6379'
end

Configuration can also be supplied via YAML file:

CasualJacket.load!('path/to/yaml/file')

YAML example:

redis_host: your.redis_instance.biz:6379

General Usage

Importing a spreadsheet into the cache:

handle = "test import"
file   = "/tmp/products.csv"
legend = { "headername" => "translation" }

CasualJacket.cache_operations(handle, file, legend)

Retrieve operations from the cache:

CasualJacket.operations_for("test_import")

Utility Tasks

rake wine_lolly - Invoke a pry session within the CasualJacket module.

Rails Integration

  • Add casual_jacket to your Gemfile
  • Optionally supply config/casual_jacket.yml

About

An importer library for receiving and understanding product data.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages