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

Version Path
georgia-0.7.6 lib/georgia/assets/cloud_files_connection.rb
georgia-0.7.5 lib/georgia/assets/cloud_files_connection.rb
georgia-0.7.4 lib/georgia/assets/cloud_files_connection.rb
georgia-0.7.3 lib/georgia/assets/cloud_files_connection.rb
georgia-0.7.2 lib/georgia/assets/cloud_files_connection.rb
georgia-0.7.1 lib/georgia/assets/cloud_files_connection.rb
georgia-0.7.0 lib/georgia/assets/cloud_files_connection.rb