No commit activity in last 3 years
No release in over 3 years
A store for paperclip 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

Paperclip Swift Swauth

This gem is a Paperclip store for OpenStack Swift. This is different from the paperclip-swift library in the authentication. This library uses swauth for authentication.

Installation

gem install paperclip-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 User < ActiveRecord::Base
  has_attached_file :avatar,
    :storage => :swift_swauth
end

License

Apache 2.0. See LICENSE for details.