No release in over 3 years
Low commit activity in last 3 years
Provides Aliyun OSS storage for Shrine.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0.0.0
~> 5.0
~> 10.0

Runtime

~> 2.2
 Project Readme

Shrine::Storage::AliyunOSS

Provides Alibaba cloud object storage for Shrine.

Installation

Add this line to your application's Gemfile:

gem 'shrine-aliyun-oss'

Usage

require "shrine"
require "shrine/storage/aliyun_oss"

oss_options = {
  endpoint: "oss-<region-name>.aliyuncs.com",
  access_key_id: "<access_key_id>",
  access_key_secret: "<access_key_secret>",
  bucket: "<bucket-name>"
}

Shrine.storages = {
  cache: Shrine::Storage::AliyunOSS.new(prefix: "cache", **oss_options),
  store: Shrine::Storage::AliyunOSS.new(prefix: "store", **oss_options)
}

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/zillou/shrine-aliyun-oss.

License