No commit activity in last 3 years
No release in over 3 years
A store for carrierwave that uses openstack swift. Authenication is assumed to be swauth.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

Carrierwave Swift Swauth

This gem is a Carrierwave store for OpenStack Swift. This library uses swauth for authentication.

Installation

gem install carrierwave-swift-swauth

Usage

You should specify the following variables in your environment. We don't like storing passwords in the plain.

export SWIFT_USER="user"
export SWIFT_PASSWORD="some-secret-password"
export SWIFT_URL="https://your-swift-server.com"
export SWIFT_TENANT="tenant-name"
export SWIFT_CONTAINER="container-name"

Set the storage to be swift_swauth. The usual Paperclip configuration should be applicable.

class AvatarUploader < CarrierWave::Uploader::Base
  :storage => :swift_swauth
end

License

Apache 2.0. See LICENSE for details.