No commit activity in last 3 years
No release in over 3 years
SNDA Cloud Storage support for Carrierwave
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.9
~> 2.6

Runtime

>= 0.5.7
>= 0.1.0
 Project Readme

CarrierWave for SNDA Cloud Storage

This gem adds support for SNDA Cloud Storage to CarrierWave, code base on carrierwave-aliyun

Installation

gem install carrierwave-grandcloud

Using Bundler

gem 'sndacs', :git => 'git://github.com/hui/sndacs-ruby.git'
gem 'carrierwave-grandcloud'

Configuration

You'll need to configure the to use this in config/initializes/carrierwave.rb

CarrierWave.configure do |config|
  config.storage = :grandcloud
  config.grandcloud_access_id = "xxxxxx"
  config.grandcloud_access_key = 'xxxxxx'
  # you need create this bucket first!
  config.grandcloud_bucket = "simple"

  # add this line if your bucket is private
  config.grandcloud_bucket_private = true
end