diff options
author | Jason Kölker <jason@koelker.net> | 2011-09-27 17:37:24 -0500 |
---|---|---|
committer | Jason Kölker <jason@koelker.net> | 2011-09-27 17:37:24 -0500 |
commit | 561048e4454a414e789053ac75dba8eac51db9ab (patch) | |
tree | 2293d43ece6b95463b1d5a423f8d5834c2ca3c2d /openstack | |
parent | 466ce09ef1b54afc340adfae59ce08fb8a6adb7e (diff) | |
download | oslo-561048e4454a414e789053ac75dba8eac51db9ab.tar.gz oslo-561048e4454a414e789053ac75dba8eac51db9ab.tar.xz oslo-561048e4454a414e789053ac75dba8eac51db9ab.zip |
add the openstack paster command to spit out the template
Diffstat (limited to 'openstack')
-rw-r--r-- | openstack/paste/commands.py | 36 |
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'] |