commit df285bb3be22ea8a219ddd8c29d990542bbf7ef2
Author: Kostas Papadimitriou <kpap@grnet.gr>
Date:   Fri Nov 25 18:36:40 2011 +0200

    Better console script names
    
    Using snf- prefix for synnefo command line tools

diff --git a/runtests-venvs.sh b/runtests-venvs.sh
index 88e5c8e..e49ce53 100755
--- a/runtests-venvs.sh
+++ b/runtests-venvs.sh
@@ -49,7 +49,7 @@ cd env
 # avoid vncauthproxy errors
 rm bin/vncauthproxy.py
 echo "running django tests..." >&2
-synnefo-manage test aai admin api db helpdesk invitations logic userdata --settings=synnefo.settings.test
+snf-manage test aai admin api db helpdesk invitations logic userdata --settings=synnefo.settings.test
 cd ..
 deactivate
 
@@ -65,7 +65,7 @@ cd env
 # avoid vncauthproxy errors
 rm bin/vncauthproxy.py
 echo "running django tests..." >&2
-synnefo-manage test aai admin api db helpdesk invitations logic userdata --settings=synnefo.settings.test
+snf-manage test aai admin api db helpdesk invitations logic userdata --settings=synnefo.settings.test
 cd ..
 deactivate
 rm -rf env
diff --git a/snf-app/docs/src/configuration.rst b/snf-app/docs/src/configuration.rst
index 5cd344f..582dd2d 100644
--- a/snf-app/docs/src/configuration.rst
+++ b/snf-app/docs/src/configuration.rst
@@ -13,12 +13,12 @@ To ease up the configuration of the application Synnefo includes settings
 defined in ``/etc/synnefo/*.conf`` files. The location can be altered by 
 setting an enviromental variable named ``SYNNEFO_SETTINGS_DIR`` to the 
 appropriate path, or by using the ``--settings-dir`` option of the
-``synnefo-manage`` tool.
+``snf-manage`` tool.
 
 Synnefo package bundles a `Django` project with predefined common `settings` 
 and `urls` set. The corresponding  ``manage.py`` for the bundled project is 
-``synnefo-manage``. After the package installation the tool should be available 
-as a command from your system's terminal. Due to this nature of `synnefo-manage`
+``snf-manage``. After the package installation the tool should be available 
+as a command from your system's terminal. Due to this nature of `snf-manage`
 it is possible to alter settings not only using ``.conf`` files but also by
 providing a custom python module by using ``DJANGO_SETTINGS_MODULE``
 evnironmental variable or ``--settings`` option of the tool.
@@ -93,7 +93,7 @@ PostgreSQL
 Try it out. The following command will attempt to connect to the DB and
 print out DDL statements. It should not fail::
 
-    $ synnefo-manage sql db
+    $ snf-manage sql db
 
 
 .. _database-initialization:
@@ -103,16 +103,16 @@ Database initialization
 
 You need to initialize the Synnefo DB::
 
-    $ synnefo-manage syncdb
-    $ synnefo-manage migrate
+    $ snf-manage syncdb
+    $ snf-manage migrate
 
 and load fixtures {users,flavors,images}, 
 which make the API usable by end users by defining a sample set of users, 
 hardware configurations (flavors) and OS images::
 
-    $ synnefo-manage loaddata /path/to/users.json
-    $ synnefo-manage loaddata flavors
-    $ synnefo-manage loaddata images
+    $ snf-manage loaddata /path/to/users.json
+    $ snf-manage loaddata flavors
+    $ snf-manage loaddata images
 
 .. warning:: 
     Be sure to load a custom users.json and select a unique token 
diff --git a/snf-app/docs/src/deployment.rst b/snf-app/docs/src/deployment.rst
index 09b6485..dca2a95 100644
--- a/snf-app/docs/src/deployment.rst
+++ b/snf-app/docs/src/deployment.rst
@@ -48,7 +48,7 @@ messages from QUEUE nodes, and provides the context in which business logic
 functions run. It uses Django ORM to connect to the common DB and update the
 state of the system, based on notifications received from the rest of the
 infrastructure, over AMQP.
-Services: the Synnefo logic dispatcher [``synnefo-dispatcher``]
+Services: the Synnefo logic dispatcher [``snf-dispatcher``]
 
 
 .. _GANETI_NODES:
@@ -104,7 +104,7 @@ The default configuration should work directly without any modifications.
 
 For the time being The dispatcher must be run by hand::
 
-  $ synnefo-dispatcher
+  $ snf-dispatcher
 
 The dispatcher should run in at least 2 instances to ensure high
 (actually, increased) availability.
@@ -127,7 +127,7 @@ Static files
 * Change ``MEDIA_ROOT`` value in your settings to point to that directory.
 * Run the following command::
 
-    $ synnefo-manage link_static
+    $ snf-manage link_static
 
   the command will create symlinks of the appropriate static files inside the choosen 
   directory.
@@ -149,23 +149,23 @@ Using nginx
 
 run the fcgi server::
 
-    $ synnefo-manage runfcgi host=127.0.0.1 port=8015
+    $ snf-manage runfcgi host=127.0.0.1 port=8015
 
 
 Console scripts
 ---------------
 
-synnefo-manage
+snf-manage
 **************
 
-synnefo-dispatcher
+snf-dispatcher
 ******************
 
-synnefo-admin
+snf-admin
 *************
 
-synnefo-cloud
+snf-cloud
 *************
 
-synnefo-burnin
+snf-burnin
 **************
diff --git a/snf-app/docs/src/develop.rst b/snf-app/docs/src/develop.rst
index 755604c..fbb615d 100644
--- a/snf-app/docs/src/develop.rst
+++ b/snf-app/docs/src/develop.rst
@@ -99,9 +99,9 @@ your development environment::
 
 * Initialize database::
 
-  (synnefo-env)$ synnefo-manage syndb
-  (synnefo-env)$ synnefo-manage migrate
-  (synnefo-env)$ synnefo-manage loaddata users flavors images
+  (synnefo-env)$ snf-manage syndb
+  (synnefo-env)$ snf-manage migrate
+  (synnefo-env)$ snf-manage loaddata users flavors images
 
 
 Development tips
@@ -109,20 +109,20 @@ Development tips
 
 * Running a development web server::
 
-  (synnefo-env)$ synnefo-manage runserver
+  (synnefo-env)$ snf-manage runserver
 
   or, if you have django_extensions and werkzeug packages installed::
 
-  (synnefo-env)$ synnefo-manage runserver_plus
+  (synnefo-env)$ snf-manage runserver_plus
 
 
 * Opening a python console with synnefo environment initialized::
 
-  (synnefo-env)$ synnefo-manage shell
+  (synnefo-env)$ snf-manage shell
 
   or, if you have django_extensions package installed::
 
-  (synnefo-env)$ synnefo-manage shell_plus
+  (synnefo-env)$ snf-manage shell_plus
 
 
 South Database Migrations
@@ -134,8 +134,8 @@ Initial Migration
 To initialise south migrations in your database the following commands must be
 executed::
 
-    $ synnefo-manage syncdb       # Create / update the database with the south tables
-    $ synnefo-manage migrate db   # Perform migration in the database
+    $ snf-manage syncdb       # Create / update the database with the south tables
+    $ snf-manage migrate db   # Perform migration in the database
 
 Note that syncdb will create the latest models that exist in the db app, so some
 migrations may fail.  If you are sure a migration has already taken place you
@@ -143,11 +143,11 @@ must use the "--fake" option, to apply it.
 
 For example::
 
-    $ synnefo-manage migrate db 0001 --fake
+    $ snf-manage migrate db 0001 --fake
 
 To be sure that all migrations are applied type::
 
-    $ synnefo-manage migrate db --list
+    $ snf-manage migrate db --list
 
 All starred migrations are applied.
 
@@ -165,12 +165,12 @@ and/or if you drop the database and must recreate it from scratch. See
 Every time you make changes to the database and data migration is not required
 (WARNING: always perform this with extreme care)::
 
-    $ synnefo-manage schemamigration db --auto
+    $ snf-manage schemamigration db --auto
 
 The above will create the migration script. Now this must be applied to the live
 database::
 
-    $ synnefo-manage migrate db
+    $ snf-manage migrate db
 
 Consider this example (adding a field to the SynnefoUser model)::
 
@@ -240,11 +240,11 @@ write the script manually. The process is the following:
 
     4. To migrate the database to the latest version, we execute::
 
-        $ synnefo-manage migrate db
+        $ snf-manage migrate db
 
     To see which migrations are applied::
 
-          $ synnefo-manage migrate db --list
+          $ snf-manage migrate db --list
 
           db
             (*) 0001_initial
diff --git a/snf-app/docs/src/install.rst b/snf-app/docs/src/install.rst
index 4e478b0..ae3a20c 100644
--- a/snf-app/docs/src/install.rst
+++ b/snf-app/docs/src/install.rst
@@ -373,9 +373,9 @@ this should be enough for synnefo to get installed in your system-wide or
 ``virtualenv`` python installation and the following commands should be 
 available from the command line::
 
-    $ synnefo-manage
-    $ synnefo-dispatcher
-    $ synnefo-admin
+    $ snf-manage
+    $ snf-dispatcher
+    $ snf-admin
 
 Notice that Synnefo installation does not handle the creation of
 ``/etc/synnefo/`` directory which is the place where custom configuration 
diff --git a/snf-app/docs/src/upgrade.rst b/snf-app/docs/src/upgrade.rst
index ca4bf93..eeb31e9 100644
--- a/snf-app/docs/src/upgrade.rst
+++ b/snf-app/docs/src/upgrade.rst
@@ -12,13 +12,13 @@ consider the following when migration from a previously `source` deployment
 projects:
     
     * To keep consistency with future changes you should change ``python
-      manage.py`` calls with deployed ``synnefo-manage`` console script.
+      manage.py`` calls with deployed ``snf-manage`` console script.
       This includes automation scripts, service scripts etc.
 
       Same applies for calls to ``dispatcher.py``, ``snf-tools/admin.py``,
       ``snf-tools/burnin.py`` and ``snf-tools/cloud.py`` which are replaced
-      respectively by ``synnefo-dispatcher``, ``synnefo-admin``,
-      ``synnefo-burnin`` and ``synnefo-cloud``.
+      respectively by ``snf-dispatcher``, ``snf-admin``,
+      ``snf-burnin`` and ``snf-cloud``.
 
     * Copy custom settings files located in projects ``settings.d`` directory
       to ``/etc/synnefo/`` directory.
diff --git a/snf-app/setup.py b/snf-app/setup.py
index ac9e8cc..744269c 100644
--- a/snf-app/setup.py
+++ b/snf-app/setup.py
@@ -162,11 +162,11 @@ setup(
 
     entry_points = {
      'console_scripts': [
-         'synnefo-manage = synnefo.manage:main',
-         'synnefo-dispatcher = synnefo.logic.dispatcher:scriptmain',
-         'synnefo-burnin = synnefo.tools.burnin:main',
-         'synnefo-admin = synnefo.tools.admin:main',
-         'synnefo-cloud = synnefo.tools.cloud:main',
+         'snf-manage = synnefo.manage:main',
+         'snf-dispatcher = synnefo.logic.dispatcher:scriptmain',
+         'snf-burnin = synnefo.tools.burnin:main',
+         'snf-admin = synnefo.tools.admin:main',
+         'snf-cloud = synnefo.tools.cloud:main',
          ],
       },
     )
