Skip to content

carnivore-rb/jackal-assets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple asset persistence library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages