lib/multi_encoder/storage/aws.rb in multi_encoder-0.0.5 vs lib/multi_encoder/storage/aws.rb in multi_encoder-0.0.6

- old
+ new

@@ -24,11 +24,11 @@ end def aws_directory env = defined?(Rails) ? Rails.env : 'gem-dev' @aws_directory ||= connection.directories.create({ - key: "multi-encoder-#{env}-#{type}", + key: "#{Storage.aws_bucket_prefix}-#{env}-#{type}", public: true }) end def file_path @@ -62,11 +62,11 @@ end def connection ::Fog::Storage.new({ provider: 'AWS', - aws_access_key_id: ENV['AWS_ACCESS_KEY'], - aws_secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'] + aws_access_key_id: Storage.aws_access_key, + aws_secret_access_key: Storage.aws_secret_access_key }) end end end end