You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2013/09/11 00:47:43 UTC

[1/3] git commit: Change wording in the changes file.

Updated Branches:
  refs/heads/trunk 837f768f9 -> d05449fcf


Change wording in the changes file.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/45984439
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/45984439
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/45984439

Branch: refs/heads/trunk
Commit: 4598443999a346e0c8444276e8e8471f5df5f444
Parents: 837f768
Author: Tomaz Muraus <to...@apache.org>
Authored: Wed Sep 11 00:21:51 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Wed Sep 11 00:21:51 2013 +0200

----------------------------------------------------------------------
 CHANGES | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/45984439/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 042af48..464477c 100644
--- a/CHANGES
+++ b/CHANGES
@@ -76,8 +76,8 @@ Changes with Apache Libcloud in development
       [sebastien goasguen]
 
     - Allow user to pass "args" argument to the ScriptDeployment class. This
-      argument tells which arguments get passed to the ScriptDeployment
-      script. (LIBCLOUD-394)
+      argument tells which command line arguments get passed to the 
+      ScriptDeployment script. (LIBCLOUD-394)
       [Tomaz Muraus]
 
   *) Storage


[3/3] git commit: docs: Add examples which show how to create a record with a custom TTL and record with a priority.

Posted by to...@apache.org.
docs: Add examples which show how to create a record with a custom TTL and
record with a priority.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/d05449fc
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/d05449fc
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/d05449fc

Branch: refs/heads/trunk
Commit: d05449fcfb22172f4d81021b6189f46ceb07d542
Parents: 783b5e7
Author: Tomaz Muraus <to...@apache.org>
Authored: Wed Sep 11 00:38:18 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Wed Sep 11 00:38:18 2013 +0200

----------------------------------------------------------------------
 docs/dns/examples.rst                            | 18 ++++++++++++++++++
 docs/examples/dns/create_record_custom_ttl.py    | 13 +++++++++++++
 docs/examples/dns/create_record_with_priority.py | 13 +++++++++++++
 3 files changed, 44 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/d05449fc/docs/dns/examples.rst
----------------------------------------------------------------------
diff --git a/docs/dns/examples.rst b/docs/dns/examples.rst
index a9d9fd5..795d9c4 100644
--- a/docs/dns/examples.rst
+++ b/docs/dns/examples.rst
@@ -10,3 +10,21 @@ public IP address.
 
 .. literalinclude:: /examples/dns/create_a_record_for_all_rackspace_nodes.py
    :language: python
+
+Create a record with a custom TTL
+---------------------------------
+
+This example shows how to create a record with a custom TTL. Keep in mind that
+not all of the providers support setting a custom, per record TTL.
+
+.. literalinclude:: /examples/dns/create_record_custom_ttl.py
+   :language: python
+
+Create a MX record and specify a priority
+-----------------------------------------
+
+Some record types such as ``MX`` and ``SRV`` allow you to specify priority. This
+example shows how to do that.
+
+.. literalinclude:: /examples/dns/create_record_with_priority.py
+   :language: python

http://git-wip-us.apache.org/repos/asf/libcloud/blob/d05449fc/docs/examples/dns/create_record_custom_ttl.py
----------------------------------------------------------------------
diff --git a/docs/examples/dns/create_record_custom_ttl.py b/docs/examples/dns/create_record_custom_ttl.py
new file mode 100644
index 0000000..4632a57
--- /dev/null
+++ b/docs/examples/dns/create_record_custom_ttl.py
@@ -0,0 +1,13 @@
+from libcloud.dns.providers import get_driver
+from libcloud.dns.types import Provider, RecordType
+
+CREDENTIALS_ZERIGO = ('email', 'api key')
+
+cls = get_driver(Provider.ZERIGO)
+driver = cls(*CREDENTIALS_ZERIGO)
+
+zone = [z for z in driver.list_zones() if z.domain == 'example.com'][0]
+
+extra = {'ttl': 900}
+record = zone.create_record(name='www', type=RecordType.A, data='127.0.0.1',
+                            extra=extra)

http://git-wip-us.apache.org/repos/asf/libcloud/blob/d05449fc/docs/examples/dns/create_record_with_priority.py
----------------------------------------------------------------------
diff --git a/docs/examples/dns/create_record_with_priority.py b/docs/examples/dns/create_record_with_priority.py
new file mode 100644
index 0000000..ddcbcaf
--- /dev/null
+++ b/docs/examples/dns/create_record_with_priority.py
@@ -0,0 +1,13 @@
+from libcloud.dns.providers import get_driver
+from libcloud.dns.types import Provider, RecordType
+
+CREDENTIALS_ZERIGO = ('email', 'api key')
+
+cls = get_driver(Provider.ZERIGO)
+driver = cls(*CREDENTIALS_ZERIGO)
+
+zone = [z for z in driver.list_zones() if z.domain == 'example.com'][0]
+
+extra = {'priority': 10}
+record = zone.create_record(name=None, type=RecordType.MX,
+                            data='aspmx.l.google.com', extra=extra)


[2/3] git commit: docs: Add "developer information" TOC to the documentation index page.

Posted by to...@apache.org.
docs: Add "developer information" TOC to the documentation index page.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/783b5e7e
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/783b5e7e
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/783b5e7e

Branch: refs/heads/trunk
Commit: 783b5e7e21d825b0f6724e8272dd91a3029bcc12
Parents: 4598443
Author: Tomaz Muraus <to...@apache.org>
Authored: Wed Sep 11 00:23:37 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Wed Sep 11 00:23:37 2013 +0200

----------------------------------------------------------------------
 docs/index.rst | 13 +++++++++++++
 1 file changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/783b5e7e/docs/index.rst
----------------------------------------------------------------------
diff --git a/docs/index.rst b/docs/index.rst
index 913f6c0..66587dc 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -33,6 +33,9 @@ Resource you can manage with Libcloud are divided in the following categories:
 Documentation
 =============
 
+Main
+----
+
 .. toctree::
     :glob:
     :maxdepth: 3
@@ -47,4 +50,14 @@ Documentation
     faq
     other/*
 
+Developer Information
+---------------------
+
+.. toctree::
+    :glob:
+    :maxdepth: 3
+
+    developer_information
+    development
+
 .. _`Apache 2.0 license`: https://www.apache.org/licenses/LICENSE-2.0.html