Make us client library independent for server side operations
Change-Id: Ib881a57a2c1ff856d011e0dc832cedd6281fd3e3
This commit is contained in:
parent
e0eeba656b
commit
016a629e12
|
@ -0,0 +1,21 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
# Copyright 2012 Bouvet ASA
|
||||||
|
#
|
||||||
|
# Author: Endre Karlson <endre.karlson@bouvet.no>
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
import sys
|
||||||
|
from moniker.manage import MonikerShell
|
||||||
|
|
||||||
|
shell = MonikerShell()
|
||||||
|
sys.exit(shell.run(sys.argv[1:]))
|
|
@ -0,0 +1,26 @@
|
||||||
|
# Copyright 2012 Managed I.T.
|
||||||
|
#
|
||||||
|
# Author: Kiall Mac Innes <kiall@managedit.ie>
|
||||||
|
#
|
||||||
|
# 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 cliff.app import App
|
||||||
|
from cliff.commandmanager import CommandManager
|
||||||
|
|
||||||
|
|
||||||
|
class MonikerShell(App):
|
||||||
|
def __init__(self):
|
||||||
|
super(MonikerShell, self).__init__(
|
||||||
|
description='Moniker Server Side Management CLI',
|
||||||
|
version='0.1',
|
||||||
|
command_manager=CommandManager('moniker.manage')
|
||||||
|
)
|
7
setup.py
7
setup.py
|
@ -52,6 +52,7 @@ setup(
|
||||||
'bin/moniker-central',
|
'bin/moniker-central',
|
||||||
'bin/moniker-api',
|
'bin/moniker-api',
|
||||||
'bin/moniker-agent',
|
'bin/moniker-agent',
|
||||||
|
'bin/moniker-manage'
|
||||||
],
|
],
|
||||||
cmdclass=common_setup.get_cmdclass(),
|
cmdclass=common_setup.get_cmdclass(),
|
||||||
entry_points=textwrap.dedent("""
|
entry_points=textwrap.dedent("""
|
||||||
|
@ -69,9 +70,9 @@ setup(
|
||||||
bind9 = moniker.backend.impl_bind9:Bind9Backend
|
bind9 = moniker.backend.impl_bind9:Bind9Backend
|
||||||
fake = moniker.backend.impl_fake:FakeBackend
|
fake = moniker.backend.impl_fake:FakeBackend
|
||||||
|
|
||||||
[moniker.cli]
|
[moniker.manage]
|
||||||
database init = moniker.cli.database:InitCommand
|
database init = moniker.manage.database:InitCommand
|
||||||
database sync = moniker.cli.database:SyncCommand
|
database sync = moniker.manage.database:SyncCommand
|
||||||
"""),
|
"""),
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Development Status :: 3 - Alpha',
|
'Development Status :: 3 - Alpha',
|
||||||
|
|
|
@ -3,7 +3,6 @@ eventlet
|
||||||
jsonschema>=0.6
|
jsonschema>=0.6
|
||||||
ipaddr
|
ipaddr
|
||||||
PasteDeploy
|
PasteDeploy
|
||||||
https://github.com/stackforge/python-monikerclient/tarball/master#egg=python-monikerclient
|
|
||||||
stevedore
|
stevedore
|
||||||
|
|
||||||
# From OpenStack Common
|
# From OpenStack Common
|
||||||
|
|
Loading…
Reference in New Issue