summaryrefslogtreecommitdiffstats
path: root/openstack/paste/commands.py
diff options
context:
space:
mode:
authorJason Kölker <jason@koelker.net>2011-09-28 09:44:00 -0500
committerJason Kölker <jason@koelker.net>2011-09-28 09:44:00 -0500
commit77c5535b88e1e8aa9eb13a7defcdfb7ed8e2c221 (patch)
treee990b79710dc4c9e09643727d1b769f083f82990 /openstack/paste/commands.py
parent9679568041b42a91c93e2b13aec5fa2a33912039 (diff)
downloadoslo-77c5535b88e1e8aa9eb13a7defcdfb7ed8e2c221.tar.gz
oslo-77c5535b88e1e8aa9eb13a7defcdfb7ed8e2c221.tar.xz
oslo-77c5535b88e1e8aa9eb13a7defcdfb7ed8e2c221.zip
remove paste templates from common
Diffstat (limited to 'openstack/paste/commands.py')
-rw-r--r--openstack/paste/commands.py49
1 files changed, 0 insertions, 49 deletions
diff --git a/openstack/paste/commands.py b/openstack/paste/commands.py
deleted file mode 100644
index 0ba62e9..0000000
--- a/openstack/paste/commands.py
+++ /dev/null
@@ -1,49 +0,0 @@
-# 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)
- parser.add_option('-o', '--output-dir',
- dest='output_dir',
- metavar='DIR',
- default='.',
- help="Write put the directory into DIR (default current directory)")
-
- def command(self):
- # NOTE(jkoelker): Only support the *one* Openstack template
- self.options.templates = ['openstack']
-
- # NOTE(jkoelekr): We fake out what we don't want
- self.options.list_templates = False
- self.options.list_variables = False
- self.options.config = False
- self.options.inspect_files = False
- self.options.svn_repository = False
- create_distro.CreateDistroCommand.command(self)