简体   繁体   English

Rails 3,尝试使用aws-sdk gem,找不到方法的任何文档?

[英]rails 3, trying to use aws-sdk gem, cannot find any docs for methods?

Trying to use the Amazon aws-sdk gem to upload files to S3. 尝试使用Amazon aws-sdk gem将文件上传到S3。

I cannot find any docs on what methods are available to browse/create buckets and files. 我找不到有关可用于浏览/创建存储桶和文件的方法的任何文档。

The one and only sample they give on the github repo includes one example of creating a S3 bucket and writing a file, but contains no example of listing files in a bucket, setting permissions on a file in a bucket, or putting a file into an existing bucket, or how to copy a file referenced by a url into the bucket. 他们在github存储库上提供的唯一一个示例包括创建S3存储桶并写入文件的一个示例,但不包含列出存储桶中的文件,对存储桶中的文件设置权限或将文件放入存储桶中的示例。现有存储桶,或如何将url引用的文件复制到存储桶中。

Does anyone know of sample code and/or a list of methods available for using the aws-sdk gem for ruby? 有谁知道使用aws-sdk gem开发红宝石的示例代码和/或方法列表?

The best documentation I found was at: 我找到的最好的文档在:

http://rubydoc.info/github/aws/aws-sdk-ruby/master/frames http://rubydoc.info/github/aws/aws-sdk-ruby/master/frames

Click on the S3 link in the sidebar from there. 从此处单击侧栏中的S3链接。

Update : to clarify, the class descriptions, methods, etc. are in a pulldown menu from the S3 link in the sidebar. 更新 :澄清一下,类说明,方法等在侧栏中的S3链接的下拉菜单中。

I had to dig deep to find any useful documentation myself. 我不得不深入研究才能自己找到任何有用的文档。 Try these links: 试试这些链接:

http://docs.amazonwebservices.com/AWSRubySDK/latest/frames.html http://docs.amazonwebservices.com/AWSRubySDK/latest/frames.html

https://github.com/amazonwebservices/aws-sdk-for-ruby https://github.com/amazonwebservices/aws-sdk-for-ruby

http://rubydoc.info/github/amazonwebservices/aws-sdk-for-ruby/master/AWS/S3 http://rubydoc.info/github/amazonwebservices/aws-sdk-for-ruby/master/AWS/S3

The 3rd one is the most useful imo 第三个是最有用的imo

Here is (much better) documentation for the aws-s3 gem, which I realize isn't the same, but it's a good reference 这是(更好的)aws-s3 gem的文档,我意识到这是不一样的,但这是一个很好的参考

http://amazon.rubyforge.org/ http://amazon.rubyforge.org/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Rails 错误 - 无法加载此类文件 -- aws-sdk(您可能需要安装 aws-sdk gem) - Rails Error - cannot load such file -- aws-sdk (You may need to install the aws-sdk gem) 无法使用AWS-SDK gem启动Rails服务器 - Can't start Rails server with aws-sdk gem 在Rails中使用AWS-SDK Gem,CarrierWave和Sidekiq进行代码转换 - Transcoding with AWS-SDK Gem, CarrierWave, and Sidekiq in Rails Rails.root是否被Amazon AWS-SDK gem覆盖? - Rails.root being overwritten by Amazon AWS-SDK gem? 未定义的方法'presigned_post'AWS-SDK gem Rails 4 - Undefined method 'presigned_post' aws-sdk gem Rails 4 Rails aws-sdk无法删除Amazon S3上的文件 - Rails aws-sdk cannot delete file on Amazon S3 使用gem'aws-sdk'在Rails应用程序中添加对AWS govCloud的支持 - Add support for aws govCloud in rails applicatioin using gem 'aws-sdk' 如何在 ruby​​ on rails 中使用 aws-s3 或 aws-sdk gem 跨存储桶复制文件 - How to copy file across buckets using aws-s3 or aws-sdk gem in ruby on rails 如何防止AWS-SDK gem尝试运行.load_yaml_config? - How can I keep AWS-SDK gem from trying to run .load_yaml_config? Rails使用aws-sdk gem和heroku上的jQuery-File-Upload直接进入S3上传 - Rails direct to S3 upload using aws-sdk gem and jQuery-File-Upload on heroku
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM