Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 612 Bytes

README.md

File metadata and controls

42 lines (31 loc) · 612 Bytes

Jackal Assets

Simple API to store and retrieve objects.

Usage

require 'jackal-assets'

object_store = Jackal::Assets::Store.new
object = object_store.get('item/i/want.json')

File.open('/tmp/fubar', 'w') do |f|
  f.write object.readpartial
  f.puts 'YAY'
end

object_store.put('my/updated/file.json', '/tmp/fubar')

Configuration

Configure

{
  "jackal": {
    "assets": {
      "connection": {
        "provider": "aws",
        "credentials": {
        }
      },
      "bucket": "BUCKET_NAME"
    }
  }
}

Info