Installation
============
-Python package (recommended)
-----------------------------
+Python package
+--------------
You need the `pip <http://www.pip-installer.org/en/latest/installing.html>`_ to do this::
That's it!
-### Optional
-
-Activate auto completion::
-
- sudo ln -s $(python -c "import os, pkg_resources; print os.path.abspath(pkg_resources.resource_filename('mdk', 'tools/bash_completion'))")
-
-Activate ``gt`` and ``gtd`` commands::
-
- echo $(python -c "import os, pkg_resources; print '. ' + os.path.abspath(pkg_resources.resource_filename('mdk', 'tools/goto_instance'))") >> ~/.bashrc
- echo $(python -c "import os, pkg_resources; print '. ' + os.path.abspath(pkg_resources.resource_filename('mdk', 'tools/goto_instance.bash_completion'))") >> ~/.bashrc
-
Homebrew
--------
Git
---
-### 1. Clone the repository
+1. Clone the repository
+~~~~~~~~~~~~~~~~~~~~~~~
::
cd /opt
sudo git clone git://github.com/FMCorz/mdk.git moodle-sdk
-### 2. Install the dependencies
+2. Install the dependencies
+~~~~~~~~~~~~~~~~~~~~~~~~~~~
You will need the tool `pip <http://www.pip-installer.org/en/latest/installing.html>`_ to install the packages required by Python.
sudo pip install -r /opt/moodle-sdk/requirements.txt
-### 3. Make executable and accessible::
+3. Make executable and accessible
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
::
sudo chmod +x /opt/moodle-sdk/mdk.py
sudo ln -s /opt/moodle-sdk/mdk.py /usr/local/bin/mdk
-### 4. Set up the basics
+4. Set up the basics
+~~~~~~~~~~~~~~~~~~~~
Assuming that you are using Apache, which is set up to serve the files from /var/www, leave the default values as they are in ``mdk init``, except for your remote and the database passwords.
You're all set.
-### Optional
+Optional
+~~~~~~~~
To activate bash completion::