Make savanna able to be executed/used as sahara

* add endpoint alias for cli;
* add saharaclient package with link to the savanna client.

In future we'll remove savanna endpoints.

Change-Id: Iec7fd8b13f7a6f1e1ab84a22b5175954189018a3
This commit is contained in:
Sergey Lukjanov
2014-03-10 19:41:24 +04:00
committed by Trevor McKay
parent 7691dcff6e
commit 8ef5137329
3 changed files with 27 additions and 2 deletions

0
saharaclient/__init__.py Normal file
View File

19
saharaclient/client.py Normal file
View File

@@ -0,0 +1,19 @@
# Copyright (c) 2014 Mirantis Inc.
#
# 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 savannaclient import client as savannaclient
Client = savannaclient.Client

View File

@@ -22,10 +22,16 @@ classifier =
setup-hooks = pbr.hooks.setup_hook
[files]
packages = savannaclient
packages =
savannaclient
saharaclient
[entry_points]
console_scripts = savanna = savannaclient.shell:main
console_scripts =
savanna = savannaclient.shell:main
# TODO(slukjanov): remove this code (temp to migrate to the new name)
sahara = savannaclient.shell:main
[build_sphinx]
all_files = 1