From cbe85ec12635bd9a7ec39ec1ab08b018ee6b678f Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 2 Sep 2015 01:41:55 +0800 Subject: [PATCH] doc: fix the code-block in ruby.rst * and add the link to library homepage in the section titles Signed-off-by: Kefu Chai --- doc/radosgw/s3/ruby.rst | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/doc/radosgw/s3/ruby.rst b/doc/radosgw/s3/ruby.rst index 0a62e3f425e0..435b3c63083d 100644 --- a/doc/radosgw/s3/ruby.rst +++ b/doc/radosgw/s3/ruby.rst @@ -1,7 +1,7 @@ .. _ruby: -Ruby S3 Examples (aws-sdk gem ~>2) -================================== +Ruby `AWS::SDK`_ Examples (aws-sdk gem ~>2) +=========================================== Settings --------------------- @@ -141,6 +141,7 @@ This downloads the object ``poetry.pdf`` and saves it in ``/home/larry/documents/`` .. code-block:: ruby + s3_client.get_object(bucket: 'my-new-bucket', key: 'poetry.pdf', response_target: '/home/larry/documents/poetry.pdf') @@ -183,12 +184,12 @@ The output of this will look something like:: http://objects.dreamhost.com/my-bucket-name/hello.txt http://objects.dreamhost.com/my-bucket-name/secret_plans.txt?Signature=XXXXXXXXXXXXXXXXXXXXXXXXXXX&Expires=1316027075&AWSAccessKeyId=XXXXXXXXXXXXXXXXXXX -.. _`Aws::S3`: http://docs.aws.amazon.com/sdkforruby/api/Aws/S3/Client.html +.. _`AWS::SDK`: http://docs.aws.amazon.com/sdkforruby/api/Aws/S3/Client.html -Ruby S3 Examples (aws-s3 gem) -============================= +Ruby `AWS::S3`_ Examples (aws-s3 gem) +===================================== Creating a Connection --------------------- -- 2.47.3