Questions tagged [fog]

fog describes itself as 'the Ruby cloud services library'.

fog describes itself as 'the Ruby cloud services library'. It is available at https://fog.io/

498 questions
0
votes
1 answer

Setting ACL for a Pre Signed Object URL with Fog

I'm generating a fog pre-signed URL for AWS using the following snippet: bucket = "..." object = "demo.jpg" expires = Integer(Time.now + 4.hours) headers = {} options = { path_style: true } fog.put_object_url(bucket, object, expires, headers,…
Kevin Sylvestre
  • 37,288
  • 33
  • 152
  • 232
0
votes
1 answer

ruby-fog: Delete an item from the object storage in less than 3 requests

I started using fog storage for a project. I do the most simple actions: upload an object, get the object, delete the object. My code looks something like this: storage = get_storage(...) // S3 / OpenStack / ... dir = storage.directories.get(bucket)…
Gavriel
  • 18,880
  • 12
  • 68
  • 105
0
votes
1 answer

Heroku ArgumentError ( is not a recognized provider)

I am trying to upload profile pictures to Google Cloud using Paperclip and Fog gems. so far this what I have In my Gemfile gem "paperclip", git: "git://github.com/thoughtbot/paperclip.git" gem 'fog' In my user model has_attached_file :avatar, …
Harish
  • 1,469
  • 16
  • 43
0
votes
2 answers

Rails. Preview document from S3 server

I uploaded pdf documents on s3 using carrierwave and fog. Is there a way for users to preview content without downloading it?
FVG
  • 11
  • 2
0
votes
1 answer

fog-aws gem uses http or https calls?

AWS exposes both APIs(Http and HTTPS). fog-aws gem uses http or https calls? I am not able to find it anywhere in it's description.
Hardik
  • 3,815
  • 3
  • 35
  • 45
0
votes
1 answer

Rails: Uploading a file to AS3 using fog and resque

The Problem: I have a rails app that requires a user to upload some type of spreadsheet (csv, xslx, xsl etc) for processing which can be a costly operation so we've decided to send it off to a background service as a solution to this problem. The…
aarona
  • 35,986
  • 41
  • 138
  • 186
0
votes
0 answers

Error with Excon when uploading to rackspace with Fog

Very recently, uploading of files to Rackspace cloud has started erroring on my mac and one other mac in our office. The same code base works fine on Ubuntu servers and on a third mac in the office. The error reports an (Excon::Errors::SocketError)…
pvawser
  • 98
  • 1
  • 7
0
votes
1 answer

Chef aws driver tags don't work using Etc.getlogin

I am currently using Chef solo on a Windows machine. I used the fog driver before which created tags for my instances on AWS. Recently, I moved to the aws driver and noticed that aws driver does not handle tagging. I tried writing my own code to…
streetsoldier
  • 1,259
  • 1
  • 14
  • 32
0
votes
1 answer

Preserving (or explicitly setting) Last-Modified ("mtime") when creating files with Fog

I am trying to copy a file into the cloud (both to SoftLayer and to AWS) and I need to preserve the "Last-Modified" header, so when I retrieve it back from the clouds I would see the last_modified time I provided. I can't figure out how to do it. I…
Gavriel
  • 18,880
  • 12
  • 68
  • 105
0
votes
1 answer

Why do my S3 uploads with Fog via Carrierwave fail since switching to public by default?

I tried to configure CarrierWave so that S3 uploads would be public. So I changed my original config setup: config.fog_credentials = { :provider => 'AWS', :aws_access_key_id => ENV['AWS_ACCESS_KEY_ID'], …
Mick F
  • 7,312
  • 6
  • 51
  • 98
0
votes
1 answer

Carrierwave not resizing images on S3

On development, it's correctly creating a resized version of original image and storing both of them, but on s3, it's just uploading 2 identical versions without any kind of modification (apart from renaming it). There are no exceptions shown…
Sergey
  • 4,702
  • 6
  • 26
  • 32
0
votes
1 answer

cant see the aws-s3 url saved in rails database

I have successfully implemented image uploading using carrierwave, fog and Amazon S3. In my imageuploader am using only fog as storage. But when i check my database i can see that just the file name is written instead of the amazon url. In my views…
user4986992
0
votes
1 answer

ArgumentError - unknown SSL method `TLSv1_2'

I am trying to move my AWS integration over TLS instead of SSLv3, but I'm receiving an error when trying to set the config.fog_credentials as another SO post has suggested, but I am receiving the ArgumentError above (unknown SSL method 'TLSv1_2'. I…
avalente1
  • 246
  • 1
  • 5
  • 21
0
votes
0 answers

Forbidden access to S3 using paperclip and fog

When using fog via paperclip with the following configuration: config.paperclip_defaults = { :storage => :fog, :fog_credentials => { :provider => 'AWS', :aws_access_key_id => ENV['AWS_ACCESS_KEY_ID'], :aws_secret_access_key =>…
nimser
  • 620
  • 2
  • 9
  • 22
0
votes
1 answer

How to set ruby variables in ruby script to shell environment variables

I want to write a ruby script using fog (a wrapper for aws-sdk). Of course I could hard code my aws secret key and ID but would like to be able to have it set dynamically to my shell env variable since I manage multiple accounts. require…
brenguy
  • 21
  • 2