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

excon gem dependency conflict between mandrill-api and fog. (Rails 3)

In my gemfile I have gem 'rails', '3.2.11' gem 'fog' gem 'mandrill-api' When I run bundle I receive this error Bundler could not find compatible versions for gem "excon": In Gemfile: mandrill-api (>= 0) ruby depends on excon (~> 0.15.4)…
wuliwong
  • 4,238
  • 9
  • 41
  • 69
0
votes
1 answer

Rails 4 carrierwave default_url not using cdn

I am using carrierwave to upload images to s3. And that is working fine and dandy. However the default_url is not. In my uploader I have the default_url set to use the rails asset pipeline. def default_url …
bfcoder
  • 3,042
  • 2
  • 28
  • 35
0
votes
1 answer

Carrierwave causes eoferror error

I have section in admin panel, where admin can crop images of articles. Cropped images saves only from several tries and often causes EOFError or Broken Pipe exception.
Voldemar Duletskiy
  • 981
  • 1
  • 11
  • 30
0
votes
0 answers

openssl error when getting servers from amazon

i have been using this since last 2 weeks, but today i got one error like hostname "ec2.sa-east-1.amazonaws.com" does not match the server certificate (OpenSSL::SSL::SSLError) @aws_credentials = { :provider => "AWS", :aws_access_key_id =>…
amtest
  • 690
  • 1
  • 6
  • 26
0
votes
1 answer

listing other than windows images from amazon using fog

I have been using fog for one of my project,i have used describe_images with filter parameters, but now i am getting only the windows images, so is there any way to get the other AMIs with changing the parameter(platform)?. lets an example 'platform…
amtest
  • 690
  • 1
  • 6
  • 26
0
votes
1 answer

Fog directory appends local system path with amazon url, when hosting images to s3 with paperclip gem

I am trying to host my website that have paperclip attachment images on aws-s3 with fog gem. But my fog directory takes the wrong path but it appends my local file system path with it. this is my code class RealEstate < ActiveRecord::Base …
Bloomberg
  • 2,317
  • 2
  • 25
  • 47
0
votes
1 answer

getting some difficulty to populate all servers from all regions with fog

I am using fog to manage all the instance from amazon,i have tried fog without the region, but the default region of fog is us-east. Is there a way to get the server list from all regions? like this compute = Fog::Compute.new( :provider => :aws, …
0
votes
1 answer

How to test fog/s3 timing out in rspec?

I have a small service class which simply copies some images around S3. To simplify this question, it looks a bit, but not exactly, like this: class BadgeUpdateJob < Struct.new(:badge) def perform source_filename =…
Chris S
  • 719
  • 1
  • 6
  • 13
0
votes
1 answer

Using fog, how do I change the value of disable_api_termination?

Here is what I have tried: @cloud = Fog::Compute::New() server = @cloud.servers.get('i-abcdef12') attrs = { "disable_api_termination" => true…
Knomad
  • 1
  • 1
0
votes
1 answer

Ruby Fog gem usage

I'm mucking about with the Fog gem and have figured out how to get started: 1.9.3-p545 :008 > c = Fog::Compute::Ecloud.new({ 1.9.3-p545 :009 > :base_path => '/cloudapi/spec', 1.9.3-p545 :010 > ecloud_authentication_method:…
theillien
  • 1,189
  • 3
  • 19
  • 33
0
votes
1 answer

Cant update paperclip attachment with fog gem to s3

I am trying to upload images to s3 but i am facing this error "Missing required arguments: aws_access_key_id, aws_secret_access_key" class MyModel < ActiveRecord::Base has_attached_file :attachment, :storage => :fog, :fog_credentials =>…
Bloomberg
  • 2,317
  • 2
  • 25
  • 47
0
votes
1 answer

Retrieving details from Amazon using fog in Ruby on Rails

I am currently working in a project with Rails, and I have faced the need to import the existing server details from Amazon using the fog library. I have tried some initial code to get the access to AWS, and at this point I have got the connection…
0
votes
1 answer

Caching Paperclip asset URLs to avoid network request when getting generated URL?

Is there an acceptable way to have Paperclip not make a network request each time you call model.attachment.url()? I'd like to cache the URLs for faster load speeds / being able to load my development environment, without needing connected wifi,…
Jordan Warbelow-Feldstein
  • 10,510
  • 12
  • 48
  • 79
0
votes
1 answer

Faking fog S3 file copy

I can't seem to reproduce a file copy in a testing environment. I'm trying to test that I can set the content type of a Fog AWS S3 file, but it looks like the file isn't changing when I try to update it. It works when not mocking. Fog.mock! file…
mscriven
  • 409
  • 4
  • 10
0
votes
1 answer

Set Content_Type with Fog on S3 without overwriting other metadata

I'm trying to reset content_type for all the mp3s in a bucket using copy (as outlined in Set content_type of Fog storage files on s3). However, this overwrites any existing values for the item, in particular, the storage_class and owner values.…
Bailey Smith
  • 2,853
  • 4
  • 27
  • 39