aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/command')
-rw-r--r--libbe/command/serve_commands.py4
-rw-r--r--libbe/command/serve_storage.py (renamed from libbe/command/serve.py)10
2 files changed, 9 insertions, 5 deletions
diff --git a/libbe/command/serve_commands.py b/libbe/command/serve_commands.py
index 75d9c7a..d8598e2 100644
--- a/libbe/command/serve_commands.py
+++ b/libbe/command/serve_commands.py
@@ -144,7 +144,7 @@ class ServerApp (libbe.util.wsgi.WSGI_AppObject,
libbe.util.subproc.invoke(self.notify, stdin=message, shell=True)
-class Serve_Commands (libbe.util.wsgi.ServerCommand):
+class ServeCommands (libbe.util.wsgi.ServerCommand):
"""Serve commands over HTTP.
This allows you to run local `be` commands interfacing with remote
@@ -181,7 +181,7 @@ for example::
# alias for libbe.command.base.get_command_class()
-Serve_commands = Serve_Commands
+Serve_commands = ServeCommands
if libbe.TESTING:
diff --git a/libbe/command/serve.py b/libbe/command/serve_storage.py
index 28a8a81..966c932 100644
--- a/libbe/command/serve.py
+++ b/libbe/command/serve_storage.py
@@ -278,7 +278,7 @@ class ServerApp (libbe.util.wsgi.WSGI_AppObject,
libbe.util.subproc.invoke(self.notify, stdin=message, shell=True)
-class Serve (libbe.util.wsgi.ServerCommand):
+class ServeStorage (libbe.util.wsgi.ServerCommand):
"""Serve bug directory storage over HTTP.
This allows you to run local `be` commands interfacing with remote
@@ -288,7 +288,7 @@ class Serve (libbe.util.wsgi.ServerCommand):
:class:`ServerApp`.
"""
- name = 'serve'
+ name = 'serve-storage'
def _get_app(self, logger, storage, **kwargs):
return ServerApp(
@@ -298,7 +298,7 @@ class Serve (libbe.util.wsgi.ServerCommand):
return """
Example usage::
- $ be serve
+ $ be serve-storage
And in another terminal (or after backgrounding the server)::
@@ -314,6 +314,10 @@ for example::
"""
+# alias for libbe.command.base.get_command_class()
+Serve_storage = ServeStorage
+
+
if libbe.TESTING:
class ServerAppTestCase (libbe.util.wsgi.WSGITestCase):
def setUp(self):