--- /dev/null
+"""
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+#
+# Copyright 2011 Cisco Systems, Inc. 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.
+#
+# @author: Sumit Naiksatam, Cisco Systems, Inc.
+#
+"""
from optparse import OptionParser
+sys.path.append(os.getcwd())
import quantum.client.cli as qcli
POSSIBLE_TOPDIR = os.path.normpath(os.path.join(os.path.abspath(sys.argv[0]),
"args": ["tenant-id", "instance-id"]}, }
-if __name__ == "__main__":
+def main():
import cli
usagestr = "Usage: %prog [OPTIONS] <command> [args]"
PARSER = OptionParser(usage=usagestr)
LOG.info("Command execution completed")
sys.exit(0)
+
+
+if __name__ == "__main__":
+ main()
package_data=PackageData,
data_files=DataFiles,
eager_resources=EagerResources,
+ entry_points={
+ 'console_scripts': [
+ 'cisco-quantum = quantum.plugins.cisco.client.cli:main'
+ ]
+ },
)
exclude = ['quantum.client', 'quantum.client.*', 'quantum.server',
'quantum.server.*', 'quantum.tests', 'quantum.tests.*',
- 'quantum.plugins.*']
+ 'quantum.plugins.*', 'quantum.plugins']
pkgs = find_packages('.', exclude=exclude)
pkgs = filter(lambda x: x.startswith("quantum"), pkgs)