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

Carrierwave + Fog+ caching

Scenario: We have a few users on the site who have previously uploaded a logo for their site. Recently, we changed the dimensions of this logo and would like all accounts to reflect this change (we've also removed retina_rails from our app). So we…
user3720516
0
votes
1 answer

asset_sync/fog Unable to verify SSL certificate

I want to use the asset_sync gem to compile my Rails-assets locally and then upload them to my S3 bucket. But when I try to compile & upload them the rake task aborts because it's unable to verify the SSL-certificate. I'm struggling around for 3…
ofhouse
  • 3,047
  • 1
  • 36
  • 42
0
votes
1 answer

I can't seem to get pictures to upload with paperclip, I don't get an error after uploading

I'm not sure if its imagemagick or not! This is in my User.rb, I don't get any errors, Just a blank image! Please let me know how I can fix this! class User < ActiveRecord::Base has_secure_password validates :email, :name, presence: true,…
user4531850
0
votes
2 answers

Decrypting windows instance password

I have created a Windows Instance on AWS through FOG gem, I get the password through: connection.get_password_data(instance_id).body['passwordData'] This password is encrypted, base64-encoded password of the instance. How to decode and decrypt…
Kalyani
  • 21
  • 5
0
votes
1 answer

How to use Fog Library to create CDN in AWS

I am new in the DevOps world and my company uses Fog library to deploy EC2 instances for our Dev Environment. One of my company's products needs a CDN and I am trying to figure out how I can automate CDN using the same Fog Library. I found info at…
E.Z.
  • 139
  • 2
  • 14
0
votes
1 answer

Does Fog AWS S3 take time to refresh its index of files?

I have this code in an rspec test: specify 'Saves files to S3' do subject.upload expect(connection.directories.get(credentials[:bucket]).files.map(&:key)) .to include("#{directory}/groucho.jpg") end The subject.upload adds the file to S3…
Martin Streicher
  • 1,983
  • 1
  • 18
  • 18
0
votes
0 answers

How can I maintain images when switching from Rackspace to S3

I'm having performance issues with carrierwave uploads on images using Rackspace. There have been no other reasons or bugs that would identify what the issue is, and a quick test deploy using S3 solves the issues completely. Is there any way to…
keade
  • 137
  • 1
  • 11
0
votes
1 answer

RoR, Fog: Getting Started with Fog

I just installed the gem asset_sync and I am trying to get set up with my AWS account. When I run bundle exec rake assets:precompile I get the following errror: AssetSync::Config::Invalid: Fog provider can't be blank, Fog directory can't be blank I…
Thalatta
  • 4,510
  • 10
  • 48
  • 79
0
votes
1 answer

How can I export existing AWS ELB policies? undefined method 'reduce'

We want to export our ELB configurations for re-use. I can get the ELB configs with: all_elbs = Fog::AWS::ELB.load_balancers.all() But this returns a failure: all_policies = Fog::AWS::ELB.policies.all() #=>…
0
votes
2 answers

Range Based Fog in GLSL

I've found a number of posts stating that the fog fragment distance can easily be obtained using gl_Position.z or gl_FragCoord.z/gl_FragCoord.w. The problem is this makes a boundary where the fog begins. What I want to do is determine this…
0
votes
1 answer

How to protect one carrierwave image version from public access on Amazon S3

I have an S3 backed image model, using carrierwave and fog, I'm processing the images with rmagick and uploading different versions to Amazon S3, the original image and two smaller versions. I would like to have the two smaller versions publicly…
RuiMochila
  • 185
  • 1
  • 10
0
votes
1 answer

Fetching EC2 Instances in Batches/Pages with Fog

Is it possible to fetch EC2 in batches using the Fog gem? The Amazon API has support for NextToken, and MaxResults to enable this, but I can't seem to find this in Fog…
r-hall
  • 11
  • 2
0
votes
1 answer

Rails sitemap generator uploading to amazon s3 with fog and carrierwave

I simply cannot get it to work. I am following the tutorial here: https://github.com/kjvarga/sitemap_generator/wiki/Generate-Sitemaps-on-read-only-filesystems-like-Heroku I already have the sitemap working locally, however, now I have followed this…
0
votes
1 answer

gem for Rails log rotation and upload old logs to s3 bucket

Is there a gem that would handle log rotation for Rails 4 and upload old logs to S3 ? I'm googling for this for few hours and it sounds like something done by someone before (in gem form). Thank you
equivalent8
  • 13,754
  • 8
  • 81
  • 109
0
votes
1 answer

Delayed job to check if a carrierwave_direct upload has been completed and attached to a model

I'm using carrierwave_direct and delayed_job with user uploaded images. The process is: User drag & drops or selects a file. File is uploaded to S3 directly using carrierwave_direct to do all the form signing etc. User is presented with a dialog to…
Phasy
  • 13
  • 3