From: Kefu Chai Date: Tue, 1 Sep 2015 17:41:55 +0000 (+0800) Subject: doc: fix the code-block in ruby.rst X-Git-Tag: v9.1.0~241^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F5746%2Fhead;p=ceph.git doc: fix the code-block in ruby.rst * and add the link to library homepage in the section titles Signed-off-by: Kefu Chai --- 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 ---------------------