Switch examples to code-block style

This commit is contained in:
Steve Pulec
2011-12-30 19:24:28 -05:00
parent 73432c7368
commit 0b5a0efd92
+4 -4
View File
@@ -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