aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command
diff options
context:
space:
mode:
authorW. Trevor King <wking@tremily.us>2012-08-29 23:55:37 -0400
committerW. Trevor King <wking@tremily.us>2012-08-29 23:55:37 -0400
commit0336db8d4052a319f1d959a33fc847814551e3f8 (patch)
tree706d9f132199c3feb1621a2e324215ae9a2b535a /libbe/command
parent4db1a045a0606bead191a563abc54dfa8352efe0 (diff)
downloadbugseverywhere-0336db8d4052a319f1d959a33fc847814551e3f8.tar.gz
command:serve-storage: rename `be serve` -> `be serve-storage`.
This will help avoid confusion between be serve-storage and be serve-commands
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):