summaryrefslogtreecommitdiffstats
path: root/openstack/paste/commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'openstack/paste/commands.py')
-rw-r--r--openstack/paste/commands.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/openstack/paste/commands.py b/openstack/paste/commands.py
new file mode 100644
index 0000000..9751f18
--- /dev/null
+++ b/openstack/paste/commands.py
@@ -0,0 +1,36 @@
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
+# Copyright 2011 OpenStack LLC.
+# All Rights Reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+from paste.script import command
+from paste.script import create_distro
+
+class OpenstackCommand(create_distro.CreateDistroCommand):
+ summary = 'Create the file layout for a Openstack project'
+ description = """\
+ Create a new Openstack project. The project will be layed out according
+ to current Openstack preference.
+ """
+
+ # NOTE(jkoelker): Override the parser to wipe out the options
+ parser = command.Command.standard_parser(simulate=True,
+ no_interactive=True,
+ quiet=True,
+ overwrite=True)
+
+ def command(self):
+ # NOTE(jkoelker): Only support the *one* Openstack template
+ self.options.templates = ['openstack']