From 0b5a0efd92211ef29a189c489fe2c6d85931f132 Mon Sep 17 00:00:00 2001 From: Steve Pulec Date: Fri, 30 Dec 2011 19:24:28 -0500 Subject: [PATCH] Switch examples to code-block style --- docs/scenarios/admin.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/scenarios/admin.rst b/docs/scenarios/admin.rst index b570d2b..6271511 100644 --- a/docs/scenarios/admin.rst +++ b/docs/scenarios/admin.rst @@ -10,7 +10,7 @@ fabric is more focused on application level tasks such as deployment. Install Fabric: -:: +.. code-block:: bash $ pip install fabric @@ -20,7 +20,7 @@ latter will ssh into each server, cd to our project directory, activate the virtual environment, pull the newest codebase, and restart the application server. -:: +.. code-block:: python from fabric.api import cd, env, prefix, run, task @@ -40,7 +40,7 @@ server. With the previous code saved in a file named fabfile.py, we can check memory usage with: -:: +.. code-block:: bash $ fab memory_usage [my_server1] Executing task 'memory' @@ -59,7 +59,7 @@ usage with: and we can deploy with: -:: +.. code-block:: bash $ fab deploy