[英]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的文档,我意识到这是不一样的,但这是一个很好的参考
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.