Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the library threadsafe #104

Open
heaven opened this issue Jan 9, 2015 · 2 comments
Open

Make the library threadsafe #104

heaven opened this issue Jan 9, 2015 · 2 comments

Comments

@heaven
Copy link

heaven commented Jan 9, 2015

Currently getting errors like: undefined methodclosed?' for nil:NilClass` when trying to run multiple threads

@aifreedom
Copy link

+1 here. Running into the same problem using the library.

@Nowaker
Copy link

Nowaker commented Sep 23, 2020

Don't bother with this library. Use Fog Storage instead.

@storage = Fog::Storage.new fog_config \
    provider: 'AWS',
    aws_access_key_id: '...',
    aws_secret_access_key: '...',
    endpoint: 'https://nyc3.digitaloceanspaces.com' # if you're using an S3-compatible service

bucket = @storage.directories.get 'bucket-name'

file = bucket.files.create \
    key: 'blah/my-file.png',
    body: File.open('/path/to/file'),
    public: true

Fog Storage is a modern, actively maintained library and is thread-safe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants