]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: fix the code-block in ruby.rst 5746/head
authorKefu Chai <kchai@redhat.com>
Tue, 1 Sep 2015 17:41:55 +0000 (01:41 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 1 Sep 2015 18:51:05 +0000 (02:51 +0800)
* and add the link to library homepage in the section titles

Signed-off-by: Kefu Chai <kchai@redhat.com>
doc/radosgw/s3/ruby.rst

index 0a62e3f425e020bfd5b0e9942add4bbdb84206fa..435b3c63083da3ab122c97dbabe2df98f2219c4d 100644 (file)
@@ -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
 ---------------------