Sha256: 924ecb934212b9ee39bd79c5002f9ee83cef45a1252f49b9d92267fc01a264da
Contents?: true
Size: 555 Bytes
Versions: 7
Compression:
Stored size: 555 Bytes
Contents
class CloudFilesConnection attr_accessor :connection def initialize @connection = CloudFiles::Connection.new(username: credentials[:rackspace_username], api_key: credentials[:rackspace_api_key]) puts "Successfully logged in to Rackspace Cloud files\n" end def credentials @credentials ||= CarrierWave::Uploader::Base.fog_credentials end def container @container ||= connection.container(CarrierWave::Uploader::Base.fog_directory) end def asset_host @asset_host ||= CarrierWave::Uploader::Base.asset_host end end
Version data entries
7 entries across 7 versions & 1 rubygems