a9s_swift

a9s_swift is a small utility gem to ease up the usage of the anyines.com swift service within your applications. It enables a one-line configuration of the following libraries:

Dependencies

Installation

    gem install a9s_swift

    or

    gem 'a9s_swift' -> Gemfile
    bundle

Usage

rails applications with carrierwave or paperclip

Some example initializers are provided in the examples directory. Just copy the according file over to your rails application's app/config/initializers directory and start using the anynines swift service within your live applications.

Please make sure to bind a swift service instance to your application to enable access to the swift credentials.

fog

    con = Anynines::Swift::Utility.fog_connection # returns a fog connection to the a9s swift service
    con.directories

paperclip configuration featue

    Anynines::Swift::Utility.configure_paperclip("image_bucket") # create bucket, configure paperclip with a9s swift service

carrierwave configuration feature

    Anynines::Swift::Utility.configure_carrierwave("image_bucket") # create bucket, configure carrierwave with a9s swift service

Contributing to a9s_swift

Copyright

Copyright © 2014 Julian Weber, Anynines.com . See LICENSE.txt for further details.